diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2003-08-05 14:08:18 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2003-08-05 14:08:18 +0000 |
commit | f0e226d2ee9b2a3b2cf122d4be445f9920fef59e (patch) | |
tree | 29532a5b5c9422bb59e9b27f8d5b07dc64ebd0a5 /perl-install/standalone/drakbackup | |
parent | ccd20f76c6ecc6abc844aef0d21f111022b6fc61 (diff) | |
download | drakx-f0e226d2ee9b2a3b2cf122d4be445f9920fef59e.tar drakx-f0e226d2ee9b2a3b2cf122d4be445f9920fef59e.tar.gz drakx-f0e226d2ee9b2a3b2cf122d4be445f9920fef59e.tar.bz2 drakx-f0e226d2ee9b2a3b2cf122d4be445f9920fef59e.tar.xz drakx-f0e226d2ee9b2a3b2cf122d4be445f9920fef59e.zip |
remove stock icons (per IHM team request)
Diffstat (limited to 'perl-install/standalone/drakbackup')
-rwxr-xr-x | perl-install/standalone/drakbackup | 142 |
1 files changed, 71 insertions, 71 deletions
diff --git a/perl-install/standalone/drakbackup b/perl-install/standalone/drakbackup index 8c8ade181..5e5530c6d 100755 --- a/perl-install/standalone/drakbackup +++ b/perl-install/standalone/drakbackup @@ -1957,7 +1957,7 @@ sub advanced_where_net_types { 0, gtkpack_(new Gtk2::HBox(0,5), 0, gtkset_sensitive(my $check_use_expect = new Gtk2::CheckButton(N("Use Expect for SSH")), ($where_net && $net_proto eq 'ssh')), 0, gtkset_sensitive(my $check_xfer_keys = new Gtk2::CheckButton(N("Create/Transfer\nbackup keys for SSH")), ($where_net && $net_proto eq 'ssh')), - 0, gtkset_sensitive(my $button_xfer_keys = Gtk2::Button->new_from_stock(N(" Transfer \nNow")), $xfer_keys), + 0, gtkset_sensitive(my $button_xfer_keys = Gtk2::Button->new(N(" Transfer \nNow")), $xfer_keys), 0, gtkset_sensitive(my $check_user_keys = new Gtk2::CheckButton(N("Other (not drakbackup)\nkeys in place already")), ($where_net && $net_proto eq 'ssh')), ), 0, new Gtk2::HSeparator, @@ -2117,7 +2117,7 @@ sub advanced_where_cd { 0, new Gtk2::VBox(0, 5), 0, gtkpack_(new Gtk2::HBox(0,10), 0, gtkset_sensitive(new Gtk2::Label(N("Erase your RW media (1st Session)")), $cdrw && $where_cd), - 0, gtkset_sensitive(my $button_erase_now = Gtk2::Button->new_from_stock(N(" Erase Now ")), $cdrw), + 0, gtkset_sensitive(my $button_erase_now = Gtk2::Button->new(N(" Erase Now ")), $cdrw), 1, new Gtk2::VBox(0, 5), 0, gtkset_sensitive(my $check_cdrw_erase = new Gtk2::CheckButton(), $cdrw && $where_cd), ), @@ -2608,7 +2608,7 @@ sub wizard_step2() { 0, gtkpack_(new Gtk2::HBox(0, 15), 0, my $check_wizard_hd = new Gtk2::CheckButton(N("on Hard Drive")), 1, new Gtk2::VBox(0, 5), - 0, gtkset_sensitive(gtksignal_connect(Gtk2::Button->new_from_stock(N("Configure")), clicked => sub { + 0, gtkset_sensitive(gtksignal_connect(Gtk2::Button->new(N("Configure")), clicked => sub { destroy_widget(); to_ok(); advanced_where_hd(\&wizard_step2); @@ -2618,7 +2618,7 @@ sub wizard_step2() { 0, gtkpack_(new Gtk2::HBox(0, 15), 0, my $check_wizard_net = new Gtk2::CheckButton(N("across Network")), 1, new Gtk2::VBox(0, 5), - 0, gtkset_sensitive(gtksignal_connect(Gtk2::Button->new_from_stock(N("Configure")), clicked => sub { + 0, gtkset_sensitive(gtksignal_connect(Gtk2::Button->new(N("Configure")), clicked => sub { destroy_widget(); to_ok(); advanced_where_net_types(\&wizard_step2); @@ -2628,7 +2628,7 @@ sub wizard_step2() { 0, gtkpack_(new Gtk2::HBox(0, 15), 0, my $check_wizard_cd = new Gtk2::CheckButton(N("on CDROM")), 1, new Gtk2::VBox(0, 5), - 0, gtkset_sensitive(gtksignal_connect(Gtk2::Button->new_from_stock(N("Configure")), clicked => sub { + 0, gtkset_sensitive(gtksignal_connect(Gtk2::Button->new(N("Configure")), clicked => sub { destroy_widget(); advanced_where_cd(\&wizard_step2); }), $where_cd), @@ -2636,7 +2636,7 @@ sub wizard_step2() { 0, gtkpack_(new Gtk2::HBox(0, 15), 0, my $check_wizard_tape = new Gtk2::CheckButton(N("on Tape Device")), 1, new Gtk2::VBox(0, 5), - 0, gtkset_sensitive(gtksignal_connect(Gtk2::Button->new_from_stock(N("Configure")), clicked => sub { + 0, gtkset_sensitive(gtksignal_connect(Gtk2::Button->new(N("Configure")), clicked => sub { destroy_widget(); advanced_where_tape(\&wizard_step2); }), $where_tape), @@ -2682,7 +2682,7 @@ sub wizard() { 0, my $check_wizard_user = new Gtk2::CheckButton(N("Backup Users")), 0, gtkpack_(new Gtk2::HBox(0, 15), 1, new Gtk2::VBox(0, 5), - 0, gtksignal_connect(Gtk2::Button->new_from_stock(N("Select user manually")), clicked => sub { + 0, gtksignal_connect(Gtk2::Button->new(N("Select user manually")), clicked => sub { destroy_widget(); advanced_what_user(\&wizard); }), @@ -2957,7 +2957,7 @@ sub show_backup_details { 1, create_scrolled_window($text), ), 0, gtkadd(gtkset_layout(new Gtk2::HButtonBox, 'spread'), - gtksignal_connect(Gtk2::Button->new_from_stock(N("Done")), clicked => sub { + gtksignal_connect(Gtk2::Button->new(N("Done")), clicked => sub { destroy_widget(); $function->() }), ), @@ -3182,7 +3182,7 @@ sub restore_step_user() { my @user_list_tmp; my $restore_row = new Gtk2::HBox(0,5); my $b = new Gtk2::CheckButton($name_complet); - my $details = Gtk2::Button->new_from_stock(" Details "); + my $details = Gtk2::Button->new(" Details "); $restore_row->pack_start($b, 1, 1, 0); $restore_row->pack_end(new Gtk2::VBox(1,5), 0, 0, 0); @@ -3255,7 +3255,7 @@ sub restore_step_sys() { 0, gtkpack_(new Gtk2::HBox(0,10), 1, N("please choose the date to restore"), 0, $combo_restore_step_sys, - 0, my $details = Gtk2::Button->new_from_stock(" Details "), + 0, my $details = Gtk2::Button->new(" Details "), 0, new Gtk2::HBox(0,10), ), 1, new Gtk2::VBox(0,10), @@ -3348,7 +3348,7 @@ sub restore_other_media() { # 0, new Gtk2::VBox(0, 6), # 1, gtkpack(new Gtk2::HBox(0,10), # new Gtk2::VBox(0, 6), -# gtkset_sensitive(gtksignal_connect(Gtk2::Button->new_from_stock("Network"), clicked => sub { +# gtkset_sensitive(gtksignal_connect(Gtk2::Button->new("Network"), clicked => sub { # destroy_widget(); # restore_find_net(\&restore_other_media);}), !$other_media_hd), # new Gtk2::VBox(0, 6), @@ -3406,7 +3406,7 @@ sub restore_step2() { 0, gtkpack_(new Gtk2::HBox(0,10), 0, my $check_restore_other_src = new Gtk2::CheckButton(N("Select another media to restore from")), 1, new Gtk2::HBox(0,10), - 0, gtkset_sensitive(gtksignal_connect(Gtk2::Button->new_from_stock(N("Other Media")), clicked => sub { + 0, gtkset_sensitive(gtksignal_connect(Gtk2::Button->new(N("Other Media")), clicked => sub { destroy_widget(); restore_other_media(); }), $restore_other_src), @@ -3588,7 +3588,7 @@ sub catalog_restore() { 1, create_scrolled_window($tree_files), ), 0, gtkpack_(new Gtk2::HBox(1, 10), - 1, gtksignal_connect(Gtk2::Button->new_from_stock(N("Restore Selected\nCatalog Entry")), clicked => sub { + 1, gtksignal_connect(Gtk2::Button->new(N("Restore Selected\nCatalog Entry")), clicked => sub { if ($cat_entry) { my $media_check = restore_catalog_entry($cat_entry, ()); if ($media_check) { @@ -3597,7 +3597,7 @@ sub catalog_restore() { } } }), - 1, gtksignal_connect(Gtk2::Button->new_from_stock(N("Restore Selected\nFiles")), clicked => sub { + 1, gtksignal_connect(Gtk2::Button->new(N("Restore Selected\nFiles")), clicked => sub { my $files = @restore_files; #- grab the array before the widget clears it my @passed_files = @restore_files; @@ -3613,7 +3613,7 @@ sub catalog_restore() { 0, new Gtk2::Label("Restore To Path"), 0, $restore_path_entry = new Gtk2::Entry(), ), - 1, gtksignal_connect(Gtk2::Button->new_from_stock(N("Change\nRestore Path")), clicked => sub { + 1, gtksignal_connect(Gtk2::Button->new(N("Change\nRestore Path")), clicked => sub { filedialog_generic("Path To Restore To", \$restore_path_entry, \$restore_path); }), ), @@ -4000,12 +4000,12 @@ sub restore_box() { 1, gtkpack_(new Gtk2::VBox(0,10), 1, new Gtk2::VBox(0,10), 1, new Gtk2::VBox(0,10), - 1, gtksignal_connect(Gtk2::Button->new_from_stock(N("Search for files to restore")), clicked => sub { + 1, gtksignal_connect(Gtk2::Button->new(N("Search for files to restore")), clicked => sub { $retore_box->destroy; button_box_file_restore(); find_files_to_restore() }), - 1, gtksignal_connect(Gtk2::Button->new_from_stock(N("Restore all backups")), clicked => sub { + 1, gtksignal_connect(Gtk2::Button->new(N("Restore all backups")), clicked => sub { $retore_box->destroy; button_box_restore(); @user_list_to_restore2 = sort @user_backuped; @@ -4014,7 +4014,7 @@ sub restore_box() { $restore_user = 1; restore_do() }), - 1, gtksignal_connect(Gtk2::Button->new_from_stock(N("Custom Restore")), clicked => sub { + 1, gtksignal_connect(Gtk2::Button->new(N("Custom Restore")), clicked => sub { $retore_box->destroy; button_box_restore(); restore_step2(); @@ -4057,15 +4057,15 @@ sub restore_find_media_box() { 1, gtkpack(new Gtk2::HBox(0, 15), new Gtk2::VBox(0, 5), gtkpack(new Gtk2::VBox(0, 10), - gtkset_sensitive(gtksignal_connect(Gtk2::Button->new_from_stock(N("CD in place - continue.")), clicked => sub { + gtkset_sensitive(gtksignal_connect(Gtk2::Button->new(N("CD in place - continue.")), clicked => sub { $good_restore_path = 1; interactive_mode_box("restore"); }), $mount_media), $new_path_entry = gtkset_sensitive(new Gtk2::Entry(), $mount_media), - gtkset_sensitive(gtksignal_connect(Gtk2::Button->new_from_stock(N("Browse to new restore repository.")), clicked => sub { + gtkset_sensitive(gtksignal_connect(Gtk2::Button->new(N("Browse to new restore repository.")), clicked => sub { filedialog_generic("Directory To Restore From", \$new_path_entry, \$path_to_find_restore); }), $mount_media), - gtksignal_connect(Gtk2::Button->new_from_stock(N("Restore From Catalog")), clicked => sub { + gtksignal_connect(Gtk2::Button->new(N("Restore From Catalog")), clicked => sub { $box2->destroy; catalog_restore(); }), @@ -4117,18 +4117,18 @@ sub button_box_adv() { $button_box_tmp->destroy; gtkpack($button_box, $button_box_tmp = gtkpack_(new Gtk2::HButtonBox, - 0, gtksignal_connect(Gtk2::Button->new_from_stock('gtk-help'), clicked => sub { + 0, gtksignal_connect(Gtk2::Button->new(N("Help")), clicked => sub { adv_help(); }), - 0, gtksignal_connect(Gtk2::Button->new_from_stock('gtk-cancel'), clicked => sub { + 0, gtksignal_connect(Gtk2::Button->new(N("Cancel")), clicked => sub { interactive_mode_box(); }), 1, new Gtk2::HBox(0, 1), - 0, gtksignal_connect(Gtk2::Button->new_from_stock('gtk-go-back'), clicked => sub { + 0, gtksignal_connect(Gtk2::Button->new(N("<- Previous")), clicked => sub { destroy_widget(); $previous_widget->(); }), - 0, gtksignal_connect(Gtk2::Button->new_from_stock('gtk-save'), clicked => sub { + 0, gtksignal_connect(Gtk2::Button->new(N("Save")), clicked => sub { destroy_widget(); unless (check_pkg_needs()) { save_conf_file(); @@ -4144,19 +4144,19 @@ sub button_box_restore_main() { gtkpack($button_box, $button_box_tmp = gtkpack_(gtkpack_(new Gtk2::HButtonBox, - 0, gtksignal_connect(Gtk2::Button->new_from_stock('gtk-help'), clicked => sub { + 0, gtksignal_connect(Gtk2::Button->new(N("Help")), clicked => sub { adv_help(); }), - 0, gtksignal_connect(Gtk2::Button->new_from_stock('gtk-cancel'), clicked => sub { + 0, gtksignal_connect(Gtk2::Button->new(N("Cancel")), clicked => sub { destroy_widget(); interactive_mode_box(); }), 1, new Gtk2::HBox(0, 1), - 0, gtksignal_connect(Gtk2::Button->new_from_stock('gtk-go-back'), clicked => sub { + 0, gtksignal_connect(Gtk2::Button->new(N("<- Previous")), clicked => sub { destroy_widget(); interactive_mode_box() }), - 0, gtksignal_connect(Gtk2::Button->new_from_stock('gtk-ok'), clicked => sub { + 0, gtksignal_connect(Gtk2::Button->new(N("Ok")), clicked => sub { destroy_widget(); interactive_mode_box() }), ), @@ -4169,10 +4169,10 @@ sub button_box_file_restore() { gtkpack($button_box, $button_box_tmp = gtkpack_(gtkpack_(new Gtk2::HButtonBox, - 0, gtksignal_connect(Gtk2::Button->new_from_stock('gtk-help'), clicked => sub { + 0, gtksignal_connect(Gtk2::Button->new(N("Help")), clicked => sub { adv_help(); }), - 0, gtksignal_connect(Gtk2::Button->new_from_stock('gtk-cancel'), clicked => sub { + 0, gtksignal_connect(Gtk2::Button->new(N("Cancel")), clicked => sub { destroy_widget(); restore_box(); }), @@ -4188,7 +4188,7 @@ sub button_box_log_main() { gtkpack($button_box, $button_box_tmp = gtkpack_(gtkpack_(new Gtk2::HButtonBox, 1, new Gtk2::HBox(0, 1), - 0, gtksignal_connect(Gtk2::Button->new_from_stock('gtk-ok'), clicked => sub { + 0, gtksignal_connect(Gtk2::Button->new(N("Ok")), clicked => sub { destroy_widget(); interactive_mode_box() }), ), @@ -4202,19 +4202,19 @@ sub button_box_backup_end() { gtkpack($button_box, $button_box_tmp = gtkpack_(new Gtk2::HButtonBox, - 0, gtksignal_connect(Gtk2::Button->new_from_stock('gtk-help'), clicked => sub { + 0, gtksignal_connect(Gtk2::Button->new(N("Help")), clicked => sub { adv_help() }), - 0, gtksignal_connect(Gtk2::Button->new_from_stock('gtk-cancel'), clicked => sub { + 0, gtksignal_connect(Gtk2::Button->new(N("Cancel")), clicked => sub { destroy_widget(); interactive_mode_box() }), 1, new Gtk2::HBox(0, 1), - 0, gtksignal_connect(Gtk2::Button->new_from_stock('gtk-go-back'), clicked => sub { + 0, gtksignal_connect(Gtk2::Button->new(N("<- Previous")), clicked => sub { destroy_widget(); $previous_widget->() }), - 0, gtksignal_connect(Gtk2::Button->new_from_stock(N("Build Backup")), clicked => sub { + 0, gtksignal_connect(Gtk2::Button->new(N("Build Backup")), clicked => sub { destroy_widget(); build_backup_status(); build_backup_files(); @@ -4228,19 +4228,19 @@ sub button_box_wizard_end() { gtkpack($button_box, $button_box_tmp = gtkpack_(new Gtk2::HButtonBox, - 0, gtksignal_connect(Gtk2::Button->new_from_stock('gtk-help'), clicked => sub { + 0, gtksignal_connect(Gtk2::Button->new(N("Help")), clicked => sub { adv_help(); }), - 0, gtksignal_connect(Gtk2::Button->new_from_stock('gtk-cancel'), clicked => sub { + 0, gtksignal_connect(Gtk2::Button->new(N("Cancel")), clicked => sub { destroy_widget(); interactive_mode_box(); }), 1, new Gtk2::HBox(0, 1), - 0, gtksignal_connect(Gtk2::Button->new_from_stock('gtk-go-back'), clicked => sub { + 0, gtksignal_connect(Gtk2::Button->new(N("<- Previous")), clicked => sub { destroy_widget(); $previous_widget->(); }), - 0, gtksignal_connect(Gtk2::Button->new_from_stock('gtk-save'), clicked => sub { + 0, gtksignal_connect(Gtk2::Button->new(N("Save")), clicked => sub { destroy_widget(); save_conf_file(); interactive_mode_box(); @@ -4254,15 +4254,15 @@ sub button_box_restore_end() { gtkpack($button_box, $button_box_tmp = gtkpack_(new Gtk2::HButtonBox, - 0, gtksignal_connect(Gtk2::Button->new_from_stock('gtk-help'), clicked => sub { + 0, gtksignal_connect(Gtk2::Button->new(N("Help")), clicked => sub { adv_help(); }), - 0, gtksignal_connect(Gtk2::Button->new_from_stock('gtk-cancel'), clicked => sub { + 0, gtksignal_connect(Gtk2::Button->new(N("Cancel")), clicked => sub { destroy_widget(); interactive_mode_box(); }), 1, new Gtk2::HBox(0, 1), - 0, gtksignal_connect(Gtk2::Button->new_from_stock('gtk-go-back'), clicked => sub { + 0, gtksignal_connect(Gtk2::Button->new(N("<- Previous")), clicked => sub { destroy_widget(); $previous_widget->(); }), @@ -4281,7 +4281,7 @@ sub button_box_build_backup_end() { $button_box_tmp = gtkpack_(new Gtk2::HButtonBox, 1, new Gtk2::HBox(0, 5), 1, new Gtk2::HBox(0, 5), - 0, gtksignal_connect(Gtk2::Button->new_from_stock('gtk-ok'), clicked => sub { + 0, gtksignal_connect(Gtk2::Button->new(N("Ok")), clicked => sub { # destroy_widget(); interactive_mode_box(); }), @@ -4296,10 +4296,10 @@ sub button_box_restore_pbs_end() { $button_box_tmp = gtkpack_(new Gtk2::HButtonBox, 1, new Gtk2::HBox(0, 5), 1, new Gtk2::HBox(0, 5), - 1, gtksignal_connect(Gtk2::Button->new_from_stock('gtk-help'), clicked => sub { + 1, gtksignal_connect(Gtk2::Button->new(N("Help")), clicked => sub { adv_help(); }), - 0, gtksignal_connect(Gtk2::Button->new_from_stock('gtk-ok'), clicked => sub { + 0, gtksignal_connect(Gtk2::Button->new(N("Ok")), clicked => sub { destroy_widget(); interactive_mode_box(); }), @@ -4312,19 +4312,19 @@ sub button_box_build_backup() { gtkpack($button_box, $button_box_tmp = gtkpack_(new Gtk2::HButtonBox, - 1, gtksignal_connect(Gtk2::Button->new_from_stock('gtk-help'), clicked => sub { + 1, gtksignal_connect(Gtk2::Button->new(N("Help")), clicked => sub { adv_help(); }), - 1, gtksignal_connect(Gtk2::Button->new_from_stock('gtk-cancel'), clicked => sub { + 1, gtksignal_connect(Gtk2::Button->new(N("Cancel")), clicked => sub { destroy_widget(); interactive_mode_box(); }), 1, new Gtk2::HBox(0, 0), - 0, gtksignal_connect(Gtk2::Button->new_from_stock('gtk-go-back'), clicked => sub { + 0, gtksignal_connect(Gtk2::Button->new(N("<- Previous")), clicked => sub { destroy_widget(); $previous_widget->(); }), - 1, gtksignal_connect(Gtk2::Button->new_from_stock('gtk-go-forward'), clicked => sub { + 1, gtksignal_connect(Gtk2::Button->new(N("Next ->")), clicked => sub { destroy_widget(); $next_widget->(); }), @@ -4338,19 +4338,19 @@ sub button_box_restore() { gtkpack($button_box, $button_box_tmp = gtkpack_(new Gtk2::HButtonBox, - 1, gtksignal_connect(Gtk2::Button->new_from_stock('gtk-help'), clicked => sub { + 1, gtksignal_connect(Gtk2::Button->new(N("Help")), clicked => sub { adv_help(); }), - 1, gtksignal_connect(Gtk2::Button->new_from_stock('gtk-cancel'), clicked => sub { + 1, gtksignal_connect(Gtk2::Button->new(N("Cancel")), clicked => sub { destroy_widget(); interactive_mode_box(); }), 1, new Gtk2::HBox(0, 0), - 0, gtksignal_connect(Gtk2::Button->new_from_stock('gtk-go-back'), clicked => sub { + 0, gtksignal_connect(Gtk2::Button->new(N("<- Previous")), clicked => sub { destroy_widget(); $previous_widget->(); }), - 1, gtksignal_connect(Gtk2::Button->new_from_stock('gtk-go-forward'), clicked => sub { + 1, gtksignal_connect(Gtk2::Button->new(N("Next ->")), clicked => sub { destroy_widget(); $next_widget->(); }), @@ -4367,20 +4367,20 @@ sub button_box_find_media { gtkpack($button_box, $button_box_tmp = gtkpack_(new Gtk2::HButtonBox, - 1, gtksignal_connect(Gtk2::Button->new_from_stock('gtk-help'), clicked => sub { + 1, gtksignal_connect(Gtk2::Button->new(N("Help")), clicked => sub { $central_widget = \$box2; adv_help(); }), - 1, gtksignal_connect(Gtk2::Button->new_from_stock('gtk-cancel'), clicked => sub { + 1, gtksignal_connect(Gtk2::Button->new(N("Cancel")), clicked => sub { $central_widget = \$box2; interactive_mode_box(); }), 1, new Gtk2::HBox(0, 0), - 0, gtksignal_connect(Gtk2::Button->new_from_stock('gtk-go-back'), clicked => sub { + 0, gtksignal_connect(Gtk2::Button->new(N("<- Previous")), clicked => sub { $central_widget = \$box2; interactive_mode_box(); }), - 1, gtkset_sensitive(gtksignal_connect(Gtk2::Button->new_from_stock('gtk-go-forward'), clicked => sub { + 1, gtkset_sensitive(gtksignal_connect(Gtk2::Button->new(N("Next ->")), clicked => sub { interactive_mode_box("restore"); }), $mount_media), ), @@ -4392,19 +4392,19 @@ sub button_box_wizard() { gtkpack($button_box, $button_box_tmp = gtkpack_(new Gtk2::HButtonBox, - 1, gtksignal_connect(Gtk2::Button->new_from_stock('gtk-help'), clicked => sub { + 1, gtksignal_connect(Gtk2::Button->new(N("Help")), clicked => sub { adv_help() }), - 1, gtksignal_connect(Gtk2::Button->new_from_stock('gtk-cancel'), clicked => sub { + 1, gtksignal_connect(Gtk2::Button->new(N("Cancel")), clicked => sub { destroy_widget(); interactive_mode_box() }), 1, new Gtk2::HBox(0, 0), - 0, gtksignal_connect(Gtk2::Button->new_from_stock($next_widget ? 'gtk-go-back' : 'gtk-ok'), clicked => sub { + 0, gtksignal_connect(Gtk2::Button->new($next_widget ? N("<- Previous") : N("Ok")), clicked => sub { destroy_widget(); $previous_widget ? $previous_widget->() : $next_widget->(); }), - if_($next_widget, 1, gtksignal_connect(Gtk2::Button->new_from_stock('gtk-go-forward'), clicked => sub { + if_($next_widget, 1, gtksignal_connect(Gtk2::Button->new(N("Next ->")), clicked => sub { destroy_widget(); $next_widget ? $next_widget->() : $previous_widget->(); })), @@ -4417,10 +4417,10 @@ sub button_box_main() { gtkpack($button_box, $button_box_tmp = gtkpack(Gtk2::HButtonBox->new, - gtksignal_connect(Gtk2::Button->new_from_stock('gtk-help'), clicked => sub { + gtksignal_connect(Gtk2::Button->new(N("Help")), clicked => sub { adv_help() }), - gtksignal_connect(Gtk2::Button->new_from_stock('gtk-close'), clicked => sub { ugtk2->exit(0) }), + gtksignal_connect(Gtk2::Button->new(N("Close")), clicked => sub { ugtk2->exit(0) }), ), ); } @@ -4470,7 +4470,7 @@ sub install_rpm { $box_what_user = gtkpack_(new Gtk2::VBox(0, 15), 0, N("The following packages need to be installed:\n") . join(' ', @list_of_rpm_to_install), 0, new Gtk2::HSeparator, - 0, gtksignal_connect(Gtk2::Button->new_from_stock(N("Install")), clicked => sub { + 0, gtksignal_connect(Gtk2::Button->new(N("Install")), clicked => sub { system("/usr/sbin/urpmi --X @list_of_rpm_to_install"); destroy_widget(); $previous_widget->(); @@ -4798,33 +4798,33 @@ sub interactive_mode_box { 1, new Gtk2::VBox(0, 5), 1, gtkpack_(new Gtk2::VBox(0, 5), 1, new Gtk2::VBox(0, 5), - 0, gtksignal_connect(Gtk2::Button->new_from_stock(N("Wizard Configuration")), clicked => sub { + 0, gtksignal_connect(Gtk2::Button->new(N("Wizard Configuration")), clicked => sub { destroy_widget(); read_conf_file(); wizard(); }), - 0, gtksignal_connect(Gtk2::Button->new_from_stock(N("Advanced Configuration")), clicked => sub { + 0, gtksignal_connect(Gtk2::Button->new(N("Advanced Configuration")), clicked => sub { button_box_adv(); destroy_widget(); advanced_box(); }), - 0, gtksignal_connect(Gtk2::Button->new_from_stock(N("View Configuration")), clicked => sub { + 0, gtksignal_connect(Gtk2::Button->new(N("View Configuration")), clicked => sub { destroy_widget(); build_backup_box_see_conf("interactive"); }), - 0, gtksignal_connect(Gtk2::Button->new_from_stock(N("View Last Log")), clicked => sub { + 0, gtksignal_connect(Gtk2::Button->new(N("View Last Log")), clicked => sub { $results = cat_($log_file); button_box_log_main(); show_status(); }), - 0, gtksignal_connect(Gtk2::Button->new_from_stock(N("Backup Now")), clicked => sub { + 0, gtksignal_connect(Gtk2::Button->new(N("Backup Now")), clicked => sub { if ($cfg_file_exist) { build_backup_box(); } else { message_noconf_box(); } }), - 0, gtksignal_connect(Gtk2::Button->new_from_stock(N("Restore")), clicked => sub { + 0, gtksignal_connect(Gtk2::Button->new(N("Restore")), clicked => sub { destroy_widget(); restore_box(); }), |