Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
jami-daemon
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
savoirfairelinux
jami-daemon
Commits
0a99eab1
Commit
0a99eab1
authored
13 years ago
by
Tristan Matthews
Browse files
Options
Downloads
Patches
Plain Diff
* #5981: unused webwidget removed
parent
cb57b888
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
sflphone-client-gnome/src/widget/webwidget.c
+0
-87
0 additions, 87 deletions
sflphone-client-gnome/src/widget/webwidget.c
sflphone-client-gnome/src/widget/webwidget.h
+0
-68
0 additions, 68 deletions
sflphone-client-gnome/src/widget/webwidget.h
with
0 additions
and
155 deletions
sflphone-client-gnome/src/widget/webwidget.c
deleted
100644 → 0
+
0
−
87
View file @
cb57b888
/*
* Copyright (C) 2010 Savoir-Faire Linux Inc.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*
* Additional permission under GNU GPL version 3 section 7:
*
* If you modify this program, or any covered work, by linking or
* combining it with the OpenSSL project's OpenSSL library (or a
* modified version of that library), containing parts covered by the
* terms of the OpenSSL or SSLeay licenses, Savoir-Faire Linux Inc.
* grants you additional permission to convey the resulting work.
* Corresponding Source for a non-source form of such a combination
* shall include the source code for the parts of OpenSSL used as well
* as that of the covered work.
*/
#include
"imwidget.h"
#include
<JavaScriptCore/JavaScript.h>
static
void
im_widget_init
(
IMWidget
*
im
);
static
void
im_widget_class_init
(
IMWidgetClass
*
klass
);
GType
im_widget_get_type
(
void
)
{
static
GType
im_widget_type
=
0
;
if
(
!
im_widget_type
)
{
static
const
GTypeInfo
im_widget_info
=
{
sizeof
(
IMWidgetClass
),
NULL
,
/* base_init */
NULL
,
/* base_finalize */
(
GClassInitFunc
)
im_widget_class_init
,
NULL
,
/* class_finalize */
NULL
,
/* class_data */
sizeof
(
IMWidget
),
0
,
(
GInstanceInitFunc
)
im_widget_init
,
NULL
/* value_table */
};
im_widget_type
=
g_type_register_static
(
WEBKIT_TYPE_WEB_VIEW
,
"IMWidget"
,
&
im_widget_info
,
0
);
}
return
im_widget_type
;
}
static
void
im_widget_class_init
(
IMWidgetClass
*
klass
)
{
}
static
void
im_widget_init
(
IMWidget
*
im
)
{
/* Load our initial webpage on startup */
webkit_web_view_open
(
WEBKIT_WEB_VIEW
(
im
),
"file://"
DATA_DIR
"/webkit/im.html"
);
/* Instantiate our local webkit related variables */
im
->
web_frame
=
webkit_web_view_get_main_frame
(
WEBKIT_WEB_VIEW
(
im
));
im
->
js_context
=
webkit_web_frame_get_global_context
(
im
->
web_frame
);
im
->
js_global
=
JSContextGetGlobalObject
(
im
->
js_context
);
}
GtkWidget
*
im_widget_new
()
{
return
GTK_WIDGET
(
g_object_new
(
IM_WIDGET_TYPE
,
NULL
));
}
This diff is collapsed.
Click to expand it.
sflphone-client-gnome/src/widget/webwidget.h
deleted
100644 → 0
+
0
−
68
View file @
cb57b888
/*
* Copyright (C) 2010 Savoir-Faire Linux Inc.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*
* Additional permission under GNU GPL version 3 section 7:
*
* If you modify this program, or any covered work, by linking or
* combining it with the OpenSSL project's OpenSSL library (or a
* modified version of that library), containing parts covered by the
* terms of the OpenSSL or SSLeay licenses, Savoir-Faire Linux Inc.
* grants you additional permission to convey the resulting work.
* Corresponding Source for a non-source form of such a combination
* shall include the source code for the parts of OpenSSL used as well
* as that of the covered work.
*/
#ifndef __WEB_WIDGET_H__
#define __WEB_WIDGET_H__
#include
<gtk/gtk.h>
#include
<webkit/webkit.h>
G_BEGIN_DECLS
#define WEB_WIDGET_TYPE (im_widget_get_type())
#define WEB_WIDGET(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), WEB_WIDGET_TYPE, WebWidget))
#define IM_WIDGET_CLASS(vtable) (G_TYPE_CHECK_CLASS_CAST((vtable), IM_WIDGET_TYPE, WebWidgetClass))
#define IS_IM_WIDGET(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), IM_WIDGET_TYPE))
#define IS_IM_WIDGET_CLASS(vtable) (G_TYPE_CHECK_CLASS_TYPE((vtable), IM_WIDGET_TYPE))
#define IM_WIDGET_GET_CLASS(inst) (G_TYPE_INSTANCE_GET_CLASS((inst), IM_WIDGET_TYPE, WebWidgetClass))
typedef
struct
_WebWidget
WebWidget
;
typedef
struct
_WebWidgetClass
WebWidgetClass
;
struct
_WebWidget
{
WebKitWebView
parent_instance
;
/* Private */
WebKitWebFrame
*
web_frame
;
// Our web frame
JSGlobalContextRef
js_context
;
// The frame's global JS context
JSObjectRef
js_global
;
// The frame's global context JS object
};
struct
_WebWidgetClass
{
WebKitWebViewClass
parent_class
;
};
GType
im_widget_get_type
(
void
)
G_GNUC_CONST
;
GtkWidget
*
im_widget_new
(
void
);
G_END_DECLS
#endif
/* __IM_WIDGET_H__ */
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment