summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2007-08-08 11:45:09 +0000
committerThierry Vignaud <tv@mandriva.org>2007-08-08 11:45:09 +0000
commit563e23b756dc09241437ff11e124fec744073b2b (patch)
tree7410b4594e9d0ee7c9a37ddf45a825e16f683f70
parent787e564b66e59236b720837632c8da0ddd892151 (diff)
downloadcontrol-center-563e23b756dc09241437ff11e124fec744073b2b.tar
control-center-563e23b756dc09241437ff11e124fec744073b2b.tar.gz
control-center-563e23b756dc09241437ff11e124fec744073b2b.tar.bz2
control-center-563e23b756dc09241437ff11e124fec744073b2b.tar.xz
control-center-563e23b756dc09241437ff11e124fec744073b2b.zip
simplify code by killing code workarounding toggling expert mode while
a tools is embedded (not displaying back main window while embedded, was #13416)
-rwxr-xr-xcontrol-center7
1 files changed, 2 insertions, 5 deletions
diff --git a/control-center b/control-center
index 63ec1851..a8bbba3b 100755
--- a/control-center
+++ b/control-center
@@ -1206,7 +1206,7 @@ my ($index, $left_locked) = (0, 0);
my %tool_callbacks;
-my ($page_count, $need_to_refresh);
+my ($page_count);
sub really_refresh_tree() {
my $pos = $notebook_global->get_current_page;
@@ -1346,8 +1346,7 @@ foreach (@tree) {
add2notebook($banner_notebook, "", Gtk2::Banner->new($icon, $text)) if !$mode;
}
- $need_to_refresh = defined($emb_socket);
- really_refresh_tree() if $mode && !$need_to_refresh;
+ really_refresh_tree() if $mode;
}
refresh_tree(0);
@@ -1542,8 +1541,6 @@ sub create_hidden_socket {
Gtk2::HSeparator->new,
),
1, gtksignal_connect($emb_socket = Gtk2::Socket->new, 'plug-removed' => sub {
- # handle expert mode switch:
- really_refresh_tree() if $need_to_refresh;
$menu->show if $application_driven_menu;
$banner->destroy;
child_just_exited();