# HG changeset patch # User Gabriel Schulhof # Date 1190499010 0 # Node ID f90f334a58f0d11e2dd699989d988e1e70da88bb # Parent bf2fbd06eaf2a45558253fecced2868656306193 Doing plugin dialog diff -r bf2fbd06eaf2 -r f90f334a58f0 pidgin/gtkblist.c --- a/pidgin/gtkblist.c Sat Sep 22 21:58:29 2007 +0000 +++ b/pidgin/gtkblist.c Sat Sep 22 22:10:10 2007 +0000 @@ -3092,7 +3092,7 @@ { N_("/_Tools"), NULL, NULL, 0, "", NULL }, { N_("/Tools/Buddy _Pounces"), NULL, pidgin_pounces_manager_show, 0, "", NULL }, { N_("/Tools/_Certificates"), NULL, pidgin_certmgr_show, 0, "", NULL }, - { N_("/Tools/Plu_gins"), "U", pidgin_blist_show_with_parent, (int)pidgin_plugin_dialog_show, "", PIDGIN_STOCK_TOOLBAR_PLUGINS }, + { N_("/Tools/Plu_gins"), "U", pidgin_blist_show_with_parent, (int)pidgin_plugin_dialog_show_with_parent, "", PIDGIN_STOCK_TOOLBAR_PLUGINS }, { N_("/Tools/Pr_eferences"), "P", pidgin_prefs_show, 0, "", GTK_STOCK_PREFERENCES }, { N_("/Tools/Pr_ivacy"), NULL, pidgin_privacy_dialog_show, 0, "", NULL }, { "/Tools/sep2", NULL, NULL, 0, "", NULL }, diff -r bf2fbd06eaf2 -r f90f334a58f0 pidgin/gtkplugin.c --- a/pidgin/gtkplugin.c Sat Sep 22 21:58:29 2007 +0000 +++ b/pidgin/gtkplugin.c Sat Sep 22 22:10:10 2007 +0000 @@ -514,7 +514,12 @@ plugin_dialog_response_cb(dialog, PIDGIN_RESPONSE_CONFIGURE, sel); } -void pidgin_plugin_dialog_show(GtkWindow *parent) +void pidgin_plugin_dialog_show() +{ + pidgin_plugin_dialog_show_with_parent(NULL); +} + +void pidgin_plugin_dialog_show_with_parent(GtkWindow *parent) { GtkWidget *sw; GtkWidget *event_view; diff -r bf2fbd06eaf2 -r f90f334a58f0 pidgin/gtkplugin.h --- a/pidgin/gtkplugin.h Sat Sep 22 21:58:29 2007 +0000 +++ b/pidgin/gtkplugin.h Sat Sep 22 22:10:10 2007 +0000 @@ -75,6 +75,11 @@ /** * Shows the Plugins dialog */ -void pidgin_plugin_dialog_show(GtkWindow *parent); +void pidgin_plugin_dialog_show(void); + +/** + * Shows the Plugins dialog, transient to a parent window + */ +void pidgin_plugin_dialog_show_with_parent(GtkWindow *parent); #endif /* _PIDGINPLUGIN_H_ */ diff -r bf2fbd06eaf2 -r f90f334a58f0 pidgin/plugins/perl/common/GtkPlugin.xs --- a/pidgin/plugins/perl/common/GtkPlugin.xs Sat Sep 22 21:58:29 2007 +0000 +++ b/pidgin/plugins/perl/common/GtkPlugin.xs Sat Sep 22 22:10:10 2007 +0000 @@ -11,5 +11,7 @@ void pidgin_plugin_dialog_show() -CODE: - pidgin_plugin_dialog_show(NULL); + +void +pidgin_plugin_dialog_show_with_parent(parent) + void * parent