changeset 19798:13a779fe3f1e

Making dialogs properly transient.
author Gabriel Schulhof <nix@go-nix.ca>
date Tue, 24 Jul 2007 18:08:23 +0000
parents 1b032e320dbf
children d5e2a4897bbc
files pidgin/gtkplugin.c
diffstat 1 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/pidgin/gtkplugin.c	Tue Jul 24 06:58:30 2007 +0000
+++ b/pidgin/gtkplugin.c	Tue Jul 24 18:08:23 2007 +0000
@@ -30,6 +30,7 @@
 #include "debug.h"
 #include "prefs.h"
 #include "request.h"
+#include "gtkblist.h"
 
 #include <string.h>
 
@@ -521,16 +522,20 @@
 	GtkCellRenderer *rend, *rendt;
 	GtkTreeViewColumn *col;
 	GtkTreeSelection *sel;
+	PidginBuddyList *blist;
 
 	if (plugin_dialog != NULL) {
 		gtk_window_present(GTK_WINDOW(plugin_dialog));
 		return;
 	}
 
+	blist = pidgin_blist_get_default_gtk_blist();
+
 	plugin_dialog = gtk_dialog_new_with_buttons(_("Plugins"),
-						    NULL,
+						    NULL == blist ? NULL : NULL == blist->window ? NULL : blist->window,
 						    GTK_DIALOG_NO_SEPARATOR,
 						    NULL);
+
 	pref_button = gtk_dialog_add_button(GTK_DIALOG(plugin_dialog),
 						_("Configure Pl_ugin"), PIDGIN_RESPONSE_CONFIGURE);
 	gtk_dialog_add_button(GTK_DIALOG(plugin_dialog),