changeset 20618:f90f334a58f0

Doing plugin dialog
author Gabriel Schulhof <nix@go-nix.ca>
date Sat, 22 Sep 2007 22:10:10 +0000
parents bf2fbd06eaf2
children b93d1ad9cf02
files pidgin/gtkblist.c pidgin/gtkplugin.c pidgin/gtkplugin.h pidgin/plugins/perl/common/GtkPlugin.xs
diffstat 4 files changed, 17 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- 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, "<Branch>", NULL },
 	{ N_("/Tools/Buddy _Pounces"), NULL, pidgin_pounces_manager_show, 0, "<Item>", NULL },
 	{ N_("/Tools/_Certificates"), NULL, pidgin_certmgr_show, 0, "<Item>", NULL },
-	{ N_("/Tools/Plu_gins"), "<CTL>U", pidgin_blist_show_with_parent, (int)pidgin_plugin_dialog_show, "<StockItem>", PIDGIN_STOCK_TOOLBAR_PLUGINS },
+	{ N_("/Tools/Plu_gins"), "<CTL>U", pidgin_blist_show_with_parent, (int)pidgin_plugin_dialog_show_with_parent, "<StockItem>", PIDGIN_STOCK_TOOLBAR_PLUGINS },
 	{ N_("/Tools/Pr_eferences"), "<CTL>P", pidgin_prefs_show, 0, "<StockItem>", GTK_STOCK_PREFERENCES },
 	{ N_("/Tools/Pr_ivacy"), NULL, pidgin_privacy_dialog_show, 0, "<Item>", NULL },
 	{ "/Tools/sep2", NULL, NULL, 0, "<Separator>", NULL },
--- 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;
--- 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_ */
--- 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