diff options
author | Yves Duret <yduret@mandriva.com> | 2001-06-20 13:57:03 +0000 |
---|---|---|
committer | Yves Duret <yduret@mandriva.com> | 2001-06-20 13:57:03 +0000 |
commit | 4fd8628576533d4549dfa15e31612c34673be1b2 (patch) | |
tree | db7e8b815508c617b6f05d1a98b5f01ecdf10954 | |
parent | 570abb94b78febc2cb55452dbcb14b69680f1114 (diff) | |
download | control-center-4fd8628576533d4549dfa15e31612c34673be1b2.tar control-center-4fd8628576533d4549dfa15e31612c34673be1b2.tar.gz control-center-4fd8628576533d4549dfa15e31612c34673be1b2.tar.bz2 control-center-4fd8628576533d4549dfa15e31612c34673be1b2.tar.xz control-center-4fd8628576533d4549dfa15e31612c34673be1b2.zip |
updated test
-rwxr-xr-x | control-center | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/control-center b/control-center index 19b4a2d4..cba2fd93 100755 --- a/control-center +++ b/control-center @@ -282,7 +282,7 @@ sub splash_warning { my $lab = new Gtk::Label($label); my $style1 = new Gtk::Style; - $win_about->vbox->pack_start( $lab, 1, 1, 0 ); + $win_about->vbox->pack_start($lab, 1, 1, 0); $win_about->show_all(); $win_about->set_modal(1); @@ -322,8 +322,7 @@ sub create_tree_item { } else { $treeitem->signal_connect(button_press_event => sub { $expanded ? $treeitem->collapse : $treeitem->expand; $expanded = !$expanded }); $treeitem->signal_connect(select => sub { $treeitem_old and $$treeitem_old->collapse(); $treeitem->expand(); $treeitem_old=\$treeitem; - $expanded=1; - }); + $expanded=1; }); } $parent_tree->append($treeitem); $treeitem->show_all(); @@ -339,7 +338,7 @@ sub create_tree_item { } sub xpm_label_box { - my ( $parent, $xpm_filename, $label_text, $is_last ) = @_; + my ($parent, $xpm_filename, $label_text, $is_last) = @_; # Create box for xpm and label my $box = new Gtk::HBox( 0, 0 ); my $box2; @@ -377,16 +376,16 @@ sub exec_treeitem { } if (!$tree_launched{$label}->[0]) { - if ($label eq _("Printer") && -e "/usr/bin/kups") { -# if ($label eq _("Printer") && -e "/usr/bin/mozilla") { +# if ($label eq _("Printer") && -e "/usr/bin/kups") { + if ($label eq _("Printer") && -e "/usr/bin/mozilla") { my $socket = new Gtk::Socket; $notebook_global->append_page($socket, new Gtk::Label("")); $nb_pages++; $tree_launched{$label}->[0]=$nb_pages; $notebook_global->set_page($nb_pages); $socket->realize; - $socket->steal(launch_wait("kups", "kups")); -# $socket->steal(launch_wait("xchat", "xchat")); +# $socket->steal(launch_wait("kups", "kups")); + $socket->steal(launch_wait("xchat", "xchat")); $notebook_global->show_all(); $notebook_global->set_page($nb_pages); return; |