From 14c1d70f64e4dea1b711e2b52b7cd0aa0548beb4 Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Fri, 29 Jun 2007 16:34:44 +0200 Subject: [PATCH] Use stock icons where applicable. --- submit/contest | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/submit/contest b/submit/contest index 3f9e6c3..811a0f1 100755 --- a/submit/contest +++ b/submit/contest @@ -45,14 +45,17 @@ $title_lab->set_markup("" . $conn->{"Contest"} . "") # The row of buttons my $b_submit = Gtk2::Button->new('Submit'); +$b_submit->set_image(Gtk2::Image->new_from_stock('gtk-apply', 'button')); $b_submit->signal_connect(clicked => sub { submit(0) }); $b_submit->set_sensitive(0); my $b_check = Gtk2::Button->new('Check'); +$b_check->set_image(Gtk2::Image->new_from_stock('gtk-find', 'button')); $b_check->signal_connect(clicked => sub { submit(1) }); $b_check->set_sensitive(0); my $b_refresh = Gtk2::Button->new('Refresh'); +$b_refresh->set_image(Gtk2::Image->new_from_stock('gtk-refresh', 'button')); $b_refresh->signal_connect(clicked => sub { start_refresh_timer(1) }); my $button_box = Gtk2::HBox->new; @@ -281,7 +284,7 @@ sub end_submit($) { } sub finish_submit() { - my $button = Gtk2::Button->new('Return'); + my $button = Gtk2::Button->new_from_stock('gtk-close'); $button->signal_connect(clicked => sub { end_submit(1) }); $bbutton_box = Gtk2::HButtonBox->new; @@ -477,10 +480,10 @@ sub submit($) { $subwin->signal_connect("delete-event" => sub { end_submit(0); return 0; }); my $bb_submit = Gtk2::Button->new($check_only ? 'Check' : 'Submit'); + $bb_submit->set_image(Gtk2::Image->new_from_stock('gtk-apply', 'button')); $bb_submit->signal_connect(clicked => \&do_submit); - #$bb_submit->set_sensitive(0); - my $bb_cancel = Gtk2::Button->new('Cancel'); + my $bb_cancel = Gtk2::Button->new_from_stock('gtk-cancel'); $bb_cancel->signal_connect(clicked => sub { end_submit(1) }); $bbutton_box = Gtk2::HButtonBox->new; -- 2.39.5