# HG changeset patch # User Gabriel Schulhof # Date 1186605838 0 # Node ID eae5a8fdc055751eeb16fe361adc5bf3cb9d9fc2 # Parent 9d198ce0ab657f012a228ef5c257435f374c40a3 ... and the About dialog ... diff -r 9d198ce0ab65 -r eae5a8fdc055 pidgin/gtkdialogs.c --- a/pidgin/gtkdialogs.c Wed Aug 08 19:47:05 2007 +0000 +++ b/pidgin/gtkdialogs.c Wed Aug 08 20:43:58 2007 +0000 @@ -314,7 +314,7 @@ g_object_unref(G_OBJECT(pixmap)); } -void pidgin_dialogs_about() +void pidgin_dialogs_about(GtkWindow *parent) { GtkWidget *hbox; GtkWidget *vbox; @@ -331,11 +331,15 @@ GdkPixbuf *pixbuf; if (about != NULL) { + if (parent) + gtk_window_set_transient_for(GTK_WINDOW(about), parent); gtk_window_present(GTK_WINDOW(about)); return; } PIDGIN_DIALOG(about); + if (parent) + gtk_window_set_transient_for(GTK_WINDOW(about), parent); tmp = g_strdup_printf(_("About %s"), PIDGIN_NAME); gtk_window_set_title(GTK_WINDOW(about), tmp); g_free(tmp); diff -r 9d198ce0ab65 -r eae5a8fdc055 pidgin/gtkdialogs.h --- a/pidgin/gtkdialogs.h Wed Aug 08 19:47:05 2007 +0000 +++ b/pidgin/gtkdialogs.h Wed Aug 08 20:43:58 2007 +0000 @@ -31,7 +31,7 @@ /* Functions in gtkdialogs.c (these should actually stay in this file) */ void pidgin_dialogs_destroy_all(void); -void pidgin_dialogs_about(void); +void pidgin_dialogs_about(GtkWindow *parent); void pidgin_dialogs_im(void); void pidgin_dialogs_im_with_user(PurpleAccount *, const char *); void pidgin_dialogs_info(void);