[gnome-commander] advrename: make dialog transient



commit ebd607f3dced18b425b69dcd8adeed021b1047b7
Author: Piotr Eljasiak <epiotr src gnome org>
Date:   Sat Aug 20 14:44:15 2011 +0200

    advrename: make dialog transient

 src/dialogs/gnome-cmd-advrename-dialog.cc |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/dialogs/gnome-cmd-advrename-dialog.cc b/src/dialogs/gnome-cmd-advrename-dialog.cc
index f5b3e73..85c95c0 100644
--- a/src/dialogs/gnome-cmd-advrename-dialog.cc
+++ b/src/dialogs/gnome-cmd-advrename-dialog.cc
@@ -34,6 +34,7 @@
 #include "gnome-cmd-file.h"
 #include "gnome-cmd-advrename-profile-component.h"
 #include "gnome-cmd-manage-profiles-dialog.h"
+#include "gnome-cmd-main-win.h"
 #include "utils.h"
 #include "tags/gnome-cmd-tags.h"
 
@@ -672,6 +673,7 @@ void GnomeCmdAdvrenameDialog::update_new_filenames()
 GnomeCmdAdvrenameDialog::GnomeCmdAdvrenameDialog(GnomeCmdData::AdvrenameConfig &cfg): defaults(cfg)
 {
     gtk_window_set_default_size (*this, cfg.width, cfg.height);
+    gtk_window_set_transient_for (*this, *main_win);
 
     gtk_dialog_add_action_widget (*this,
                                   priv->create_button_with_menu (_("Profiles..."), &cfg),



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]