# HG changeset patch # User Yoshiki Yazawa # Date 1217002704 -32400 # Node ID fbe526b2088596e05fd7e2bb652e4adb2e6f2490 # Parent e65f812113404b6d3ca015e5cb4d970cf4990c9e revised handler for destroy signal in config dialog. diff -r e65f81211340 -r fbe526b20885 pidgin-twitter.c --- a/pidgin-twitter.c Sat Jul 26 00:41:23 2008 +0900 +++ b/pidgin-twitter.c Sat Jul 26 01:18:24 2008 +0900 @@ -2565,6 +2565,14 @@ purple_prefs_set_int(pref, position); } +static void +disconnect_prefs_cb(GtkObject *object, gpointer data) +{ + PurplePlugin *plugin = (PurplePlugin *)data; + + purple_prefs_disconnect_by_handle(plugin); +} + static GtkWidget * prefs_get_frame(PurplePlugin *plugin) { @@ -2601,10 +2609,8 @@ gtk_container_remove(GTK_CONTAINER(window), notebook); - /* it may cause crash when dispose configure window --yaz */ - /* xxx find the better way */ -// g_signal_connect(notebook, "destroy", -// G_CALLBACK(gtk_widget_destroyed), ¬ebook); + g_signal_connect(notebook, "destroy", + G_CALLBACK(disconnect_prefs_cb), plugin); /***********************/