diff options
author | Thierry Vignaud <tvignaud@mandriva.org> | 2003-07-16 12:26:12 +0000 |
---|---|---|
committer | Thierry Vignaud <tvignaud@mandriva.org> | 2003-07-16 12:26:12 +0000 |
commit | 9d929806c31b8b0738f32942ba8ff7cf5c3fbdb3 (patch) | |
tree | c468746998fd125570a8e48205621c7401803f5d | |
parent | 2449a13d7debd99fef26e48840856334f8712333 (diff) | |
download | control-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
-rwxr-xr-x | clock.pl | 22 |
1 files changed, 11 insertions, 11 deletions
@@ -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; - }) ) ) ); |