# HG changeset patch # User Richard Laager # Date 1146551796 0 # Node ID 963703ee5f919956f1a40447f35725e6d305786b # Parent f65e8d30ae53d02cb2bd4cd22e1700cf89e7e3b7 [gaim-migrate @ 16125] SF Bug #1480097 We weren't setting the parent of the "Configure Plugin" dialog properly if you double-clicked on the item instead of clicking the button. committer: Tailor Script diff -r f65e8d30ae53 -r 963703ee5f91 src/gtkplugin.c --- a/src/gtkplugin.c Tue May 02 01:49:54 2006 +0000 +++ b/src/gtkplugin.c Tue May 02 06:36:36 2006 +0000 @@ -500,7 +500,7 @@ } static void -show_plugin_prefs_cb(GtkTreeView *view, GtkTreePath *path, GtkTreeViewColumn *column, gpointer null) +show_plugin_prefs_cb(GtkTreeView *view, GtkTreePath *path, GtkTreeViewColumn *column, GtkWidget *dialog) { GtkTreeSelection *sel; GtkTreeIter iter; @@ -518,7 +518,7 @@ return; /* Now show the pref-dialog for the plugin */ - plugin_dialog_response_cb(NULL, GAIM_RESPONSE_CONFIGURE, sel); + plugin_dialog_response_cb(dialog, GAIM_RESPONSE_CONFIGURE, sel); } void gaim_gtk_plugin_dialog_show() @@ -561,7 +561,7 @@ event_view = gtk_tree_view_new_with_model(GTK_TREE_MODEL(ls)); g_signal_connect(G_OBJECT(event_view), "row-activated", - G_CALLBACK(show_plugin_prefs_cb), event_view); + G_CALLBACK(show_plugin_prefs_cb), plugin_dialog); gaim_signal_connect(gaim_plugins_get_handle(), "plugin-load", plugin_dialog, GAIM_CALLBACK(plugin_load_cb), event_view);