changeset 19815:eae5a8fdc055

... and the About dialog ...
author Gabriel Schulhof <nix@go-nix.ca>
date Wed, 08 Aug 2007 20:43:58 +0000
parents 9d198ce0ab65
children d082ddab1ccc
files pidgin/gtkdialogs.c pidgin/gtkdialogs.h
diffstat 2 files changed, 6 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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);
--- 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);