From c65f94cad17d1a57466f7c496b71b1665c53363a Mon Sep 17 00:00:00 2001 From: damien Date: Thu, 1 Mar 2001 00:52:19 +0000 Subject: updated --- control-center3 | 38 ++++++++++++++++++++++++++++++++++---- pixmaps/anim_1.png | Bin 0 -> 1355 bytes pixmaps/anim_2.png | Bin 0 -> 1323 bytes pixmaps/anim_3.png | Bin 0 -> 1355 bytes pixmaps/anim_4.png | Bin 0 -> 1066 bytes pixmaps/anim_5.png | Bin 0 -> 1281 bytes pixmaps/anim_6.png | Bin 0 -> 1301 bytes pixmaps/anim_7.png | Bin 0 -> 1309 bytes pixmaps/anim_8.png | Bin 0 -> 1253 bytes 9 files changed, 34 insertions(+), 4 deletions(-) create mode 100644 pixmaps/anim_1.png create mode 100644 pixmaps/anim_2.png create mode 100644 pixmaps/anim_3.png create mode 100644 pixmaps/anim_4.png create mode 100644 pixmaps/anim_5.png create mode 100644 pixmaps/anim_6.png create mode 100644 pixmaps/anim_7.png create mode 100644 pixmaps/anim_8.png diff --git a/control-center3 b/control-center3 index d74246f9..7bddbb88 100755 --- a/control-center3 +++ b/control-center3 @@ -47,7 +47,7 @@ my $_docdir = "/usr/share/doc"; my %pixmaps_global; my $xpm_path="$_iconsdir"; -my $xpm_path_l="$_iconsdir"; #./pixmaps"; +my $xpm_path_l="./pixmaps"; my $tree_depth_max = 1; my @treeitem_sub; @@ -115,6 +115,9 @@ $hpane_global->pack2($notebook_global,0,1); my ($pix_splash_map, $pix_splash_mask) = gtkcreate_png("$xpm_path_l/splash.png"); +my @anim; +($anim[$_]->[0], $anim[$_]->[1]) = gtkcreate_png("$xpm_path_l/anim_" . ($_ + 1) . ".png") foreach (0..7); + my $vbox_about = new Gtk::VBox(0,0); my $darea1= new Gtk::DrawingArea(); $darea1->size(540,460); @@ -172,6 +175,10 @@ $window_global->show_all; $SIG{USR1} = sub { $notebook_global->set_page(0); }; # embedded applications will send me that signal in order to "hide" them $SIG{TERM} = sub { quit_global(); }; # embedded applications will send me that signal in order to quit the cc. +my $global_vbox; +my $global_time_tag; +my $global_socket; +$SIG{USR2} = sub { $$global_vbox->hide; Gtk->timeout_remove($global_time_tag); $$global_socket->show; }; my $pix_dbl = new Gtk::Gdk::Pixmap($darea1->window, 540,460); draw_exposed($pix_dbl); @@ -343,7 +350,7 @@ sub create_tree_item $treebox->show(); if ($tree_depth_max == 0) { # $treeitem->signal_connect('clicked', sub { exec_treeitem($label, $tree_exec{$label});}); - $treeitem->signal_connect('select', sub { print "EEEEE\n"; exec_treeitem($label, $tree_exec{$label}); }); + $treeitem->signal_connect('select', sub { exec_treeitem($label, $tree_exec{$label}); }); } else { $treeitem->signal_connect('select', sub { $treeitem_old and $$treeitem_old->collapse(); $treeitem->expand(); $treeitem_old=\$treeitem; #$treeitem->deselect(); @@ -422,12 +429,35 @@ sub exec_treeitem { if ($tree_launched{$label}==-1) { my $vbox = new Gtk::VBox(0, 0); $vbox->show; + my $vbox2 = new Gtk::VBox(0, 0); + $vbox2->show; + $global_vbox=\$vbox2; + $vbox->pack_start($vbox2,0,0,0); + my $hbox = new Gtk::HBox(0, 0); + $hbox->show; + $vbox2->pack_start($hbox,0,0,0); + my $darea1= new Gtk::DrawingArea(); + $darea1->size(70,70); + $darea1->set_usize(70,70); + $hbox->pack_start($darea1,1,0,0); + $darea1->show; + my $anim_nb=0; + $global_time_tag = Gtk->timeout_add(120, sub { + $darea1->window->draw_pixmap + ($darea1->style->white_gc, + $anim[$anim_nb]->[0], 0, 0, + ($darea1->allocation->[2]-70)/2, ($darea1->allocation->[3]-70)/2, + 70, 70); + $anim_nb++; + $anim_nb > 7 and $anim_nb=0; + 1; + }); # my $label = new Gtk::Label "Please be patient"; # $vbox->pack_start( $label, 0, 0, 0); # $label->show; my $socket = new Gtk::Socket; - $vbox->pack_start( $socket, 1, 1, 0); - $socket->show; + $global_socket = \$socket; + $vbox->pack_start($socket, 1, 1, 0); $notebook_global->append_page($vbox, ""); $socket->realize; # $label->destroy; diff --git a/pixmaps/anim_1.png b/pixmaps/anim_1.png new file mode 100644 index 00000000..7727dfd2 Binary files /dev/null and b/pixmaps/anim_1.png differ diff --git a/pixmaps/anim_2.png b/pixmaps/anim_2.png new file mode 100644 index 00000000..acc171df Binary files /dev/null and b/pixmaps/anim_2.png differ diff --git a/pixmaps/anim_3.png b/pixmaps/anim_3.png new file mode 100644 index 00000000..d89ad7d0 Binary files /dev/null and b/pixmaps/anim_3.png differ diff --git a/pixmaps/anim_4.png b/pixmaps/anim_4.png new file mode 100644 index 00000000..48797b72 Binary files /dev/null and b/pixmaps/anim_4.png differ diff --git a/pixmaps/anim_5.png b/pixmaps/anim_5.png new file mode 100644 index 00000000..772f8655 Binary files /dev/null and b/pixmaps/anim_5.png differ diff --git a/pixmaps/anim_6.png b/pixmaps/anim_6.png new file mode 100644 index 00000000..bea6211a Binary files /dev/null and b/pixmaps/anim_6.png differ diff --git a/pixmaps/anim_7.png b/pixmaps/anim_7.png new file mode 100644 index 00000000..94250df2 Binary files /dev/null and b/pixmaps/anim_7.png differ diff --git a/pixmaps/anim_8.png b/pixmaps/anim_8.png new file mode 100644 index 00000000..da44869c Binary files /dev/null and b/pixmaps/anim_8.png differ -- cgit v1.2.1