summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tvignaud@mandriva.org>2003-07-06 21:47:58 +0000
committerThierry Vignaud <tvignaud@mandriva.org>2003-07-06 21:47:58 +0000
commit380ec1a6fc2d67257afb1c1b2f8f1c62e8a5bb45 (patch)
treedaeb9b4516a6ae11a210bd708be3e575c66b7fa5
parent38040574f1e0d626326e1fff82e6cd95201da06e (diff)
downloadcontrol-center-380ec1a6fc2d67257afb1c1b2f8f1c62e8a5bb45.tar
control-center-380ec1a6fc2d67257afb1c1b2f8f1c62e8a5bb45.tar.gz
control-center-380ec1a6fc2d67257afb1c1b2f8f1c62e8a5bb45.tar.bz2
control-center-380ec1a6fc2d67257afb1c1b2f8f1c62e8a5bb45.tar.xz
control-center-380ec1a6fc2d67257afb1c1b2f8f1c62e8a5bb45.zip
use stock icons
-rwxr-xr-xcontrol-center10
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);