# HG changeset patch # User Gabriel Schulhof # Date 1185300503 0 # Node ID 13a779fe3f1e2593995c7eb376b7df74630935a6 # Parent 1b032e320dbfc3d7866fffbf52062625e43731b9 Making dialogs properly transient. diff -r 1b032e320dbf -r 13a779fe3f1e pidgin/gtkplugin.c --- 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 @@ -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),