Cleanup and fix a race condition causing an ugly warning.
This commit is contained in:
parent
6d35511604
commit
cdadca0d0c
3 changed files with 21 additions and 55 deletions
|
@ -643,17 +643,6 @@ midori_browser_class_init (MidoriBrowserClass* class)
|
|||
G_TYPE_POINTER,
|
||||
G_TYPE_POINTER);
|
||||
|
||||
signals[STATUSBAR_TEXT_CHANGED] = g_signal_new (
|
||||
"statusbar-text-changed",
|
||||
G_TYPE_FROM_CLASS (class),
|
||||
(GSignalFlags)(G_SIGNAL_RUN_LAST),
|
||||
G_STRUCT_OFFSET (MidoriBrowserClass, statusbar_text_changed),
|
||||
0,
|
||||
NULL,
|
||||
g_cclosure_marshal_VOID__STRING,
|
||||
G_TYPE_NONE, 1,
|
||||
G_TYPE_STRING);
|
||||
|
||||
signals[ELEMENT_MOTION] = g_signal_new (
|
||||
"element-motion",
|
||||
G_TYPE_FROM_CLASS (class),
|
||||
|
|
|
@ -92,16 +92,6 @@ midori_web_view_get_property (GObject* object,
|
|||
GValue* value,
|
||||
GParamSpec* pspec);
|
||||
|
||||
/*static WebKitWebView*
|
||||
midori_web_view_create_web_view (WebKitWebView* web_view)
|
||||
{
|
||||
MidoriWebView* new_web_view = NULL;
|
||||
g_signal_emit (web_view, signals[NEW_WINDOW], 0, &new_web_view);
|
||||
if (new_web_view)
|
||||
return WEBKIT_WEB_VIEW (new_web_view);
|
||||
return WEBKIT_WEB_VIEW (midori_web_view_new ());
|
||||
}*/
|
||||
|
||||
static void
|
||||
midori_web_view_class_init (MidoriWebViewClass* class)
|
||||
{
|
||||
|
@ -192,16 +182,6 @@ midori_web_view_class_init (MidoriWebViewClass* class)
|
|||
G_TYPE_NONE, 1,
|
||||
G_TYPE_STRING);
|
||||
|
||||
/*WEBKIT_WEB_VIEW_CLASS (class)->create_web_view = g_signal_new ("create-web-view",
|
||||
G_TYPE_FROM_CLASS(class),
|
||||
(GSignalFlags)(G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION),
|
||||
G_STRUCT_OFFSET(MidoriWebViewClass, create_web_view),
|
||||
0,
|
||||
NULL,
|
||||
g_cclosure_marshal_VOID__OBJECT,
|
||||
G_TYPE_NONE, 1,
|
||||
MIDORI_TYPE_WEB_VIEW);*/
|
||||
|
||||
GObjectClass* gobject_class = G_OBJECT_CLASS (class);
|
||||
gobject_class->finalize = midori_web_view_finalize;
|
||||
gobject_class->set_property = midori_web_view_set_property;
|
||||
|
@ -243,7 +223,7 @@ midori_web_view_class_init (MidoriWebViewClass* class)
|
|||
"Statusbar Text",
|
||||
_("The text that is displayed in the statusbar"),
|
||||
"",
|
||||
flags));
|
||||
G_PARAM_READABLE));
|
||||
|
||||
g_object_class_override_property (gobject_class,
|
||||
PROP_SETTINGS,
|
||||
|
@ -346,7 +326,10 @@ static void
|
|||
webkit_web_view_statusbar_text_changed (MidoriWebView* web_view,
|
||||
const gchar* text)
|
||||
{
|
||||
g_object_set (web_view, "statusbar-text", text, NULL);
|
||||
MidoriWebViewPrivate* priv = web_view->priv;
|
||||
|
||||
katze_assign (priv->statusbar_text, g_strdup (text));
|
||||
g_object_notify (G_OBJECT (web_view), "statusbar-text");
|
||||
}
|
||||
|
||||
static void
|
||||
|
@ -692,9 +675,6 @@ midori_web_view_set_property (GObject* object,
|
|||
if (priv->proxy_xbel_item)
|
||||
katze_xbel_item_set_title (priv->proxy_xbel_item, title);
|
||||
break;
|
||||
case PROP_STATUSBAR_TEXT:
|
||||
katze_assign (priv->statusbar_text, g_value_dup_string (value));
|
||||
break;
|
||||
case PROP_SETTINGS:
|
||||
g_signal_handlers_disconnect_by_func (priv->settings,
|
||||
midori_web_view_settings_notify,
|
||||
|
@ -955,6 +935,9 @@ midori_web_view_get_proxy_tab_label (MidoriWebView* web_view)
|
|||
g_signal_connect (priv->proxy_tab_label, "button-release-event",
|
||||
G_CALLBACK (midori_web_view_tab_label_button_release_event),
|
||||
web_view);
|
||||
g_signal_connect (priv->tab_icon, "destroy",
|
||||
G_CALLBACK (gtk_widget_destroyed),
|
||||
&priv->tab_icon);
|
||||
g_signal_connect (priv->tab_close, "style-set",
|
||||
G_CALLBACK (midori_web_view_tab_close_style_set),
|
||||
web_view);
|
||||
|
|
|
@ -61,9 +61,6 @@ struct _MidoriWebViewClass
|
|||
(*load_done) (MidoriWebView* web_view,
|
||||
WebKitWebFrame* frame);
|
||||
void
|
||||
(*statusbar_text_changed) (MidoriWebView* web_view,
|
||||
const gchar* text);
|
||||
void
|
||||
(*element_motion) (MidoriWebView* web_view,
|
||||
const gchar* link_uri);
|
||||
void
|
||||
|
@ -74,9 +71,6 @@ struct _MidoriWebViewClass
|
|||
void
|
||||
(*new_window) (MidoriWebView* web_view,
|
||||
const gchar* uri);
|
||||
void
|
||||
(*create_web_view) (MidoriWebView* web_view,
|
||||
MidoriWebView* new_web_view);
|
||||
};
|
||||
|
||||
GType
|
||||
|
|
Loading…
Reference in a new issue