From c434a72446ef4840c9154982a43c3cfcc9d3101f Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Mon, 27 Jan 2003 08:33:22 +0000 Subject: Gtk2::Dialog are already modal --- control-center | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/control-center b/control-center index c145b4a3..086ecaca 100755 --- a/control-center +++ b/control-center @@ -475,11 +475,11 @@ foreach (@tree) { }); $darea_left->signal_connect(button_release_event => sub { return if $left_locked; - if ($pending_app) { - return if !splash_warning(N("The modifications done in the current module won't be saved."), 1); - kill_children(); - sig_usr1(); - } + if ($pending_app) { + return if !splash_warning(N("The modifications done in the current module won't be saved."), 1); + kill_children(); + sig_usr1(); + } # deselect previously selected darea if ($index_sav != -1) { @@ -786,7 +786,7 @@ sub new_dialog { $dialog->set_title($title); $dialog->action_area->pack_start(gtkadd(Gtk2::HButtonBox->new, gtksignal_connect(Gtk2::Button->new(N("Close")), clicked => sub { $dialog->destroy })),0,0,0) unless $no_button; - gtkset_modal($dialog, 1); + $dialog; } sub more_themes { -- cgit v1.2.1