Mercurial > pidgin
changeset 32202:afd256914830
Destroy the inspector window when a tab is closed. This prevents
a crash if you try to use the inspector without the tab open.
Also, remove an unused variable.
author | Elliott Sales de Andrade <qulogic@pidgin.im> |
---|---|
date | Wed, 21 Sep 2011 21:10:14 +0000 |
parents | c6da05c40daa |
children | 64793e55488e |
files | pidgin/plugins/webkit.c |
diffstat | 1 files changed, 1 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/pidgin/plugins/webkit.c Wed Sep 21 07:43:16 2011 +0000 +++ b/pidgin/plugins/webkit.c Wed Sep 21 21:10:14 2011 +0000 @@ -46,6 +46,7 @@ gtk_window_set_title(GTK_WINDOW(win), title); g_free(title); gtk_window_set_default_size(GTK_WINDOW(win), 600, 400); + g_signal_connect_swapped(G_OBJECT(gtkconv->tab_cont), "destroy", G_CALLBACK(gtk_widget_destroy), win); view = webkit_web_view_new(); gtk_container_add(GTK_CONTAINER(win), view); @@ -91,14 +92,12 @@ GtkWidget *webview = gtkconv->webview; GtkWidget *win; WebKitWebSettings *settings; - WebKitWebInspector *inspector; win = g_object_get_data(G_OBJECT(webview), "inspector-window"); gtk_widget_destroy(win); g_object_set_data(G_OBJECT(webview), "inspector-window", NULL); settings = webkit_web_view_get_settings(WEBKIT_WEB_VIEW(webview)); - inspector = webkit_web_view_get_inspector(WEBKIT_WEB_VIEW(webview)); g_object_set(G_OBJECT(settings), "enable-developer-extras", FALSE, NULL); }