Mercurial > pidgin
changeset 20612:ec247a10b12b
Making pidgin_dialogs_about _with_parent
author | Gabriel Schulhof <nix@go-nix.ca> |
---|---|
date | Sat, 22 Sep 2007 20:31:46 +0000 |
parents | 5c2fdf2b0669 |
children | 87d559926330 |
files | pidgin/gtkblist.c pidgin/gtkdialogs.c pidgin/gtkdialogs.h pidgin/plugins/perl/common/GtkDialogs.xs |
diffstat | 4 files changed, 19 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/pidgin/gtkblist.c Sat Sep 22 19:23:36 2007 +0000 +++ b/pidgin/gtkblist.c Sat Sep 22 20:31:46 2007 +0000 @@ -3106,9 +3106,9 @@ { N_("/Help/Online _Help"), "F1", gtk_blist_show_onlinehelp_cb, 0, "<StockItem>", GTK_STOCK_HELP }, { N_("/Help/_Debug Window"), NULL, toggle_debug, 0, "<Item>", NULL }, #if GTK_CHECK_VERSION(2,6,0) - { N_("/Help/_About"), NULL, pidgin_blist_show_with_parent, (int)pidgin_dialogs_about, "<StockItem>", GTK_STOCK_ABOUT }, + { N_("/Help/_About"), NULL, pidgin_blist_show_with_parent, (int)pidgin_dialogs_about_with_parent, "<StockItem>", GTK_STOCK_ABOUT }, #else - { N_("/Help/_About"), NULL, pidgin_dialogs_about, 0, "<Item>", NULL }, + { N_("/Help/_About"), NULL, pidgin_blist_show_with_parent, (int)pidgin_dialogs_about_with_parent, "<Item>", NULL }, #endif };
--- a/pidgin/gtkdialogs.c Sat Sep 22 19:23:36 2007 +0000 +++ b/pidgin/gtkdialogs.c Sat Sep 22 20:31:46 2007 +0000 @@ -326,7 +326,14 @@ } #endif -void pidgin_dialogs_about(GtkWindow *parent) +void pidgin_dialogs_about(void) +{ + PidginBuddyList *blist = pidgin_blist_get_default_gtk_blist(); + + pidgin_dialogs_about_with_parent(blist ? GTK_WINDOW(blist->window) : NULL); +} + +void pidgin_dialogs_about_with_parent(GtkWindow *parent) { GtkWidget *hbox; GtkWidget *vbox;
--- a/pidgin/gtkdialogs.h Sat Sep 22 19:23:36 2007 +0000 +++ b/pidgin/gtkdialogs.h Sat Sep 22 20:31:46 2007 +0000 @@ -32,7 +32,8 @@ /* Functions in gtkdialogs.c (these should actually stay in this file) */ void pidgin_dialogs_destroy_all(void); -void pidgin_dialogs_about(GtkWindow *parent); +void pidgin_dialogs_about(void); +void pidgin_dialogs_about_with_parent(GtkWindow *parent); void pidgin_dialogs_im(void); void pidgin_dialogs_im_with_user(PurpleAccount *, const char *); void pidgin_dialogs_info(void);
--- a/pidgin/plugins/perl/common/GtkDialogs.xs Sat Sep 22 19:23:36 2007 +0000 +++ b/pidgin/plugins/perl/common/GtkDialogs.xs Sat Sep 22 20:31:46 2007 +0000 @@ -9,7 +9,13 @@ void pidgin_dialogs_about() CODE: - pidgin_dialogs_about(NULL); + pidgin_dialogs_about_with_parent(NULL); + +void +pidgin_dialogs_about_with_parent(parent) + GtkWindow * parent +CODE: + pidgin_dialogs_about(parent); void pidgin_dialogs_im()