Mercurial > pidgin
changeset 13716:963703ee5f91
[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 <tailor@pidgin.im>
author | Richard Laager <rlaager@wiktel.com> |
---|---|
date | Tue, 02 May 2006 06:36:36 +0000 |
parents | f65e8d30ae53 |
children | 3b3430042849 |
files | src/gtkplugin.c |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- 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);