summaryrefslogtreecommitdiffstats
path: root/control-center3
diff options
context:
space:
mode:
authorDaouda Lo <daouda@mandriva.com>2001-02-07 05:09:17 +0000
committerDaouda Lo <daouda@mandriva.com>2001-02-07 05:09:17 +0000
commitb307ef3c9e9831f1b8edc0a831ef3fbac95f2d55 (patch)
treedabbc06647e68879fb1945769aaaeea4c630ee2e /control-center3
parent41a6c64cd20c97a9948dabb15a9c7daa9818834f (diff)
downloadcontrol-center-b307ef3c9e9831f1b8edc0a831ef3fbac95f2d55.tar
control-center-b307ef3c9e9831f1b8edc0a831ef3fbac95f2d55.tar.gz
control-center-b307ef3c9e9831f1b8edc0a831ef3fbac95f2d55.tar.bz2
control-center-b307ef3c9e9831f1b8edc0a831ef3fbac95f2d55.tar.xz
control-center-b307ef3c9e9831f1b8edc0a831ef3fbac95f2d55.zip
left tree launch appli correctly
Diffstat (limited to 'control-center3')
-rwxr-xr-xcontrol-center320
1 files changed, 13 insertions, 7 deletions
diff --git a/control-center3 b/control-center3
index 891d0a13..0d6744ab 100755
--- a/control-center3
+++ b/control-center3
@@ -184,13 +184,15 @@ map {
['Menudrake' , 'item.xpm',1] ,
['Drakfont', 'item.xpm', 0]);
-@tree_exec = ("drakboot", "drakfloppy", "DrakeLogo" , "XFDrake" , "harddrake-auth" , "mousedrake" , "printerdrake" , "keyboarddrake" , "userdrake", "draknet" ,
- "drakgw", "menudrake" , "drakfont");
-
-$treeitem_sub[1]->select_item(2);
-exec_treeitem(@tree_exec[4],1),;
-
-
+%tree_exec = ("Drakboot" => "drakeboot", "Drakfloppy" => "drakfloppy",
+ "Drakelogo" => "DrakeLogo" , "xfdrake" => "XFDrake" ,
+ "Hardrake" => "harddrake-auth" , "Mousedrake" => "mousedrake" ,
+ "Printdrake" => "printerdrake" , "Kbddrake" => "keyboarddrake" ,
+ "Userdrake" => "userdrake" , "Draknet" => "draknet" ,
+ "Drakgw" => "drakgw" , "Menudrake" => "menudrake" , "Drakfont" => "drakfont"
+ );
+
+#exec_treeitem("harddrake-auth",4);
my $rc = "control-center.rc";
Gtk::Rc->parse($rc);
$window_global->show_all;
@@ -240,6 +242,9 @@ sub create_tree_item()
$treebox = xpm_label_box($window_global,$pixmap,$label);
$treeitem->add($treebox);
$treebox->show();
+ if ($tree_depth_max == 0) {
+ $treeitem->signal_connect('select', sub { exec_treeitem($tree_exec{$label},1);});
+ }
$parent_tree->append($treeitem);
$treeitem->show();
@@ -290,6 +295,7 @@ sub xpm_label_box
sub exec_treeitem {
my ($exec_string,$num) = @_;
+
if ($exec_string) {
my $socket = new Gtk::Socket;
$socket->show;