From: <rl...@us...> - 2006-05-02 06:36:41
|
Revision: 16125 Author: rlaager Date: 2006-05-01 23:36:36 -0700 (Mon, 01 May 2006) ViewCVS: http://svn.sourceforge.net/gaim/?rev=16125&view=rev Log Message: ----------- 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. Modified Paths: -------------- trunk/src/gtkplugin.c Modified: trunk/src/gtkplugin.c =================================================================== --- trunk/src/gtkplugin.c 2006-05-02 02:05:43 UTC (rev 16124) +++ trunk/src/gtkplugin.c 2006-05-02 06:36:36 UTC (rev 16125) @@ -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); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |