summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordamien <damien@mandriva.com>2001-03-01 00:52:19 +0000
committerdamien <damien@mandriva.com>2001-03-01 00:52:19 +0000
commitc65f94cad17d1a57466f7c496b71b1665c53363a (patch)
tree23a95fd1f54964a16009eea8b419c8251981928a
parent39c6a0c9f01796f04fc6b32460037f30d427356f (diff)
downloadcontrol-center-c65f94cad17d1a57466f7c496b71b1665c53363a.tar
control-center-c65f94cad17d1a57466f7c496b71b1665c53363a.tar.gz
control-center-c65f94cad17d1a57466f7c496b71b1665c53363a.tar.bz2
control-center-c65f94cad17d1a57466f7c496b71b1665c53363a.tar.xz
control-center-c65f94cad17d1a57466f7c496b71b1665c53363a.zip
updated
-rwxr-xr-xcontrol-center338
-rw-r--r--pixmaps/anim_1.pngbin0 -> 1355 bytes
-rw-r--r--pixmaps/anim_2.pngbin0 -> 1323 bytes
-rw-r--r--pixmaps/anim_3.pngbin0 -> 1355 bytes
-rw-r--r--pixmaps/anim_4.pngbin0 -> 1066 bytes
-rw-r--r--pixmaps/anim_5.pngbin0 -> 1281 bytes
-rw-r--r--pixmaps/anim_6.pngbin0 -> 1301 bytes
-rw-r--r--pixmaps/anim_7.pngbin0 -> 1309 bytes
-rw-r--r--pixmaps/anim_8.pngbin0 -> 1253 bytes
9 files changed, 34 insertions, 4 deletions
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
--- /dev/null
+++ b/pixmaps/anim_1.png
Binary files differ
diff --git a/pixmaps/anim_2.png b/pixmaps/anim_2.png
new file mode 100644
index 00000000..acc171df
--- /dev/null
+++ b/pixmaps/anim_2.png
Binary files differ
diff --git a/pixmaps/anim_3.png b/pixmaps/anim_3.png
new file mode 100644
index 00000000..d89ad7d0
--- /dev/null
+++ b/pixmaps/anim_3.png
Binary files differ
diff --git a/pixmaps/anim_4.png b/pixmaps/anim_4.png
new file mode 100644
index 00000000..48797b72
--- /dev/null
+++ b/pixmaps/anim_4.png
Binary files differ
diff --git a/pixmaps/anim_5.png b/pixmaps/anim_5.png
new file mode 100644
index 00000000..772f8655
--- /dev/null
+++ b/pixmaps/anim_5.png
Binary files differ
diff --git a/pixmaps/anim_6.png b/pixmaps/anim_6.png
new file mode 100644
index 00000000..bea6211a
--- /dev/null
+++ b/pixmaps/anim_6.png
Binary files differ
diff --git a/pixmaps/anim_7.png b/pixmaps/anim_7.png
new file mode 100644
index 00000000..94250df2
--- /dev/null
+++ b/pixmaps/anim_7.png
Binary files differ
diff --git a/pixmaps/anim_8.png b/pixmaps/anim_8.png
new file mode 100644
index 00000000..da44869c
--- /dev/null
+++ b/pixmaps/anim_8.png
Binary files differ