diff options
author | Thierry Vignaud <tv@mandriva.org> | 2007-08-08 11:45:25 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mandriva.org> | 2007-08-08 11:45:25 +0000 |
commit | 34b54ae4468e77bc6ffe5fa8360b398080f7a074 (patch) | |
tree | 124ea1f9a7caa8df8c87201cf4adb899471356f1 | |
parent | 563e23b756dc09241437ff11e124fec744073b2b (diff) | |
download | control-center-34b54ae4468e77bc6ffe5fa8360b398080f7a074.tar control-center-34b54ae4468e77bc6ffe5fa8360b398080f7a074.tar.gz control-center-34b54ae4468e77bc6ffe5fa8360b398080f7a074.tar.bz2 control-center-34b54ae4468e77bc6ffe5fa8360b398080f7a074.tar.xz control-center-34b54ae4468e77bc6ffe5fa8360b398080f7a074.zip |
cleanup code by killing last workarounds for expert mode
-rwxr-xr-x | control-center | 30 |
1 files changed, 2 insertions, 28 deletions
diff --git a/control-center b/control-center index a8bbba3b..0f0d78d5 100755 --- a/control-center +++ b/control-center @@ -1062,7 +1062,7 @@ my %options = ( my $mdk_rel = common::mandrake_release(); -my ($notebook_global, $saved_pos_while_in_menu); +my ($notebook_global); my $release = mandrake_release_info(); @@ -1208,21 +1208,6 @@ my %tool_callbacks; my ($page_count); -sub really_refresh_tree() { - my $pos = $notebook_global->get_current_page; - $notebook_global->show_all; - $notebook_global->queue_draw; - # workaround buggy gtk+: - $notebook_global->set_current_page($page_count-$_-1) foreach 0..$page_count-1; - # restore previous position: - if ($pos != -1) { - $notebook_global->set_current_page($pos); - } elsif ($saved_pos_while_in_menu) { - $notebook_global->set_current_page($saved_pos_while_in_menu); - undef $saved_pos_while_in_menu; - } - $notebook_global->window and $notebook_global->window->thaw_updates; -} sub request_url { my ($_document, $url, $stream) = @_; @@ -1234,13 +1219,6 @@ sub request_url { my $align = lang::text_direction_rtl() ? "right" : "justify"; my $align2 = lang::text_direction_rtl() ? "right" : "left"; -sub refresh_tree { - my ($mode) = @_; - if ($mode && $page_count) { # this is not initial tree filling bug "expert mode" swtich - $notebook_global->window->freeze_updates; - $notebook_global->remove_page(-1) foreach 0..$page_count-1; - $page_count = 0; - } foreach (@tree) { my ($text, $icon, $subtree) = @$_; @@ -1344,12 +1322,8 @@ foreach (@tree) { ); # $w_ret->vscrollbar->set_size_request(19, undef); - add2notebook($banner_notebook, "", Gtk2::Banner->new($icon, $text)) if !$mode; + add2notebook($banner_notebook, "", Gtk2::Banner->new($icon, $text)); } - really_refresh_tree() if $mode; -} - -refresh_tree(0); my %icons = ( ); |