changeset 19883:b9a6c3f54903

Stringing pounce windows
author Gabriel Schulhof <nix@go-nix.ca>
date Fri, 17 Aug 2007 23:22:48 +0000
parents 8cef5a905bc5
children 7df68a6e5220
files pidgin/gtkpounce.c pidgin/gtkpounce.h
diffstat 2 files changed, 5 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/pidgin/gtkpounce.c	Fri Aug 17 23:21:02 2007 +0000
+++ b/pidgin/gtkpounce.c	Fri Aug 17 23:22:48 2007 +0000
@@ -1317,7 +1317,7 @@
 }
 
 void
-pidgin_pounces_manager_show(void)
+pidgin_pounces_manager_show(GtkWindow *parent)
 {
 	PouncesManager *dialog;
 	GtkWidget *bbox;
@@ -1329,6 +1329,7 @@
 
 	if (pounces_manager != NULL) {
 		gtk_window_present(GTK_WINDOW(pounces_manager->window));
+		gtk_window_set_transient_for(GTK_WINDOW(pounces_manager->window), parent);
 		return;
 	}
 
@@ -1339,6 +1340,7 @@
 
 	dialog->window = win = pidgin_create_window(_("Buddy Pounces"), PIDGIN_HIG_BORDER, "pounces", TRUE);
 	gtk_window_set_default_size(GTK_WINDOW(win), width, height);
+	gtk_window_set_transient_for(GTK_WINDOW(win), parent);
 
 	g_signal_connect(G_OBJECT(win), "delete_event",
 					 G_CALLBACK(pounces_manager_destroy_cb), dialog);
--- a/pidgin/gtkpounce.h	Fri Aug 17 23:21:02 2007 +0000
+++ b/pidgin/gtkpounce.h	Fri Aug 17 23:22:48 2007 +0000
@@ -34,13 +34,13 @@
  * @param name       The optional name to pounce on.
  * @param cur_pounce The current buddy pounce, if editing an existing one.
  */
-void pidgin_pounce_editor_show(PurpleAccount *account, const char *name,
+void pidgin_pounce_editor_show(GtkWindow *parent, PurpleAccount *account, const char *name,
 								PurplePounce *cur_pounce);
 
 /**
  * Shows the pounces manager window.
  */
-void pidgin_pounces_manager_show(void);
+void pidgin_pounces_manager_show(GtkWindow *parent);
 
 /**
  * Hides the pounces manager window.