diff options
-rwxr-xr-x | control-center | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/control-center b/control-center index 9d1b1956..1cb8d984 100755 --- a/control-center +++ b/control-center @@ -363,7 +363,7 @@ gtkadd($window_global, 0, Gtk2::Label->new(N("Please wait...")), 1, Gtk2::HBox->new(0, 0), 0, gtkadd(gtkset_layout(gtkset_border_width(Gtk2::HButtonBox->new, 10), 'end'), - gtksignal_connect(Gtk2::Button->new(N("Cancel")), clicked => sub { Gtk2->timeout_remove($timeout) if $timeout; &child_just_exited() }), + gtksignal_connect(Gtk2::Button->new_from_stock('gtk-cancel'), clicked => sub { Gtk2->timeout_remove($timeout) if $timeout; &child_just_exited() }), ), ), ), @@ -836,12 +836,12 @@ sub splash_warning { gtkpack__($window->action_area, gtkadd(Gtk2::HButtonBox->new, - gtksignal_connect(Gtk2::Button->new($o_cancel_button ? N("OK") : N("Close")), clicked => sub { $ret = 1; Gtk2->main_quit }), - if_($o_cancel_button, gtksignal_connect(Gtk2::Button->new(N("Cancel")), clicked => sub { Gtk2->main_quit })), + gtksignal_connect(Gtk2::Button->new_from_stock($o_cancel_button ? 'gtk-ok' : 'gtk-close"'), clicked => sub { $ret = 1; Gtk2->main_quit }), + if_($o_cancel_button, gtksignal_connect(Gtk2::Button->new_from_stock('gtk-cancel'), clicked => sub { Gtk2->main_quit })), ) ); gtkpack($window->vbox, - gtkcreate_img("warning"), + Gtk2::Image->new_from_stock('gtk-dialog-warning', 'dialog'), Gtk2::Label->new($label), ); $window->show_all; @@ -857,7 +857,7 @@ sub new_dialog { $dialog->set_position('center-on-parent'); $dialog->set_title($title); $dialog->action_area->pack_start(gtkadd(Gtk2::HButtonBox->new, - gtksignal_connect(Gtk2::Button->new(N("Close")), clicked => sub { $dialog->destroy }) + gtksignal_connect(Gtk2::Button->new_from_stock('gtk-close'), clicked => sub { $dialog->destroy }) ), 0,0,0) unless $o_no_button; gtkset_modal($dialog, 1); |