# HG changeset patch # User Gabriel Schulhof # Date 1187392968 0 # Node ID b9a6c3f5490387f1e7696afd698464da59a3ade7 # Parent 8cef5a905bc529e1bf9280fb3da3129780ac6db8 Stringing pounce windows diff -r 8cef5a905bc5 -r b9a6c3f54903 pidgin/gtkpounce.c --- 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); diff -r 8cef5a905bc5 -r b9a6c3f54903 pidgin/gtkpounce.h --- 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.