summaryrefslogtreecommitdiffstats
path: root/clock.pl
diff options
context:
space:
mode:
authorThierry Vignaud <tvignaud@mandriva.org>2003-07-16 12:26:12 +0000
committerThierry Vignaud <tvignaud@mandriva.org>2003-07-16 12:26:12 +0000
commit9d929806c31b8b0738f32942ba8ff7cf5c3fbdb3 (patch)
treec468746998fd125570a8e48205621c7401803f5d /clock.pl
parent2449a13d7debd99fef26e48840856334f8712333 (diff)
downloadcontrol-center-9d929806c31b8b0738f32942ba8ff7cf5c3fbdb3.tar
control-center-9d929806c31b8b0738f32942ba8ff7cf5c3fbdb3.tar.gz
control-center-9d929806c31b8b0738f32942ba8ff7cf5c3fbdb3.tar.bz2
control-center-9d929806c31b8b0738f32942ba8ff7cf5c3fbdb3.tar.xz
control-center-9d929806c31b8b0738f32942ba8ff7cf5c3fbdb3.zip
use stock icons and std layout
Diffstat (limited to 'clock.pl')
-rwxr-xr-xclock.pl22
1 files changed, 11 insertions, 11 deletions
diff --git a/clock.pl b/clock.pl
index 9ebf93c5..3c2fe318 100755
--- a/clock.pl
+++ b/clock.pl
@@ -75,7 +75,17 @@ $my_win->{window}->add(gtkpack_(Gtk2::VBox->new(0,0),
),
),
0, gtkadd(gtkset_layout(Gtk2::HButtonBox->new, 'end'),
- gtksignal_connect(Gtk2::Button->new(N("OK")),
+ gtksignal_connect(Gtk2::Button->new_from_stock('gtk-cancel'), clicked => sub { ugtk2->exit(0) }),
+ $button_reset = gtksignal_connect(Gtk2::Button->new_from_stock('gtk-revert-to-saved'), clicked => sub {
+ $its_reset = 1;
+ $timer = Glib::Timeout->add(120, \&update_time);
+ Repaint($drawing_area, 1);
+ $calendar->select_month($old_month, $old_year);
+ $calendar->select_day($old_day);
+ $button_reset->set_sensitive(0);
+ $its_reset = 0;
+ }),
+ gtksignal_connect(Gtk2::Button->new_from_stock('gtk-ok'),
clicked => sub {
my ($year, $month, $day) = $calendar->get_date;
$month++;
@@ -86,16 +96,6 @@ $my_win->{window}->add(gtkpack_(Gtk2::VBox->new(0,0),
system("dcop kicker Panel restart") if $ENV{DESKTOP} eq 'kde';
ugtk2->exit(0);
}),
- gtksignal_connect(Gtk2::Button->new(N("Cancel")), clicked => sub { ugtk2->exit(0) }),
- $button_reset = gtksignal_connect(Gtk2::Button->new(N("Reset")), clicked => sub {
- $its_reset = 1;
- $timer = Glib::Timeout->add(120, \&update_time);
- Repaint($drawing_area, 1);
- $calendar->select_month($old_month, $old_year);
- $calendar->select_day($old_day);
- $button_reset->set_sensitive(0);
- $its_reset = 0;
- })
)
)
);