From 331742480333c9090d1a7244c565cf02a009dd9d Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Fri, 22 Nov 2013 18:42:41 +0100 Subject: OptionMenu has been deprecated prior to Gtk3 --- bin/draknfs | 4 ++-- bin/draksambashare | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'bin') diff --git a/bin/draknfs b/bin/draknfs index 21ee663..c00b7c8 100755 --- a/bin/draknfs +++ b/bin/draknfs @@ -242,9 +242,9 @@ sub add_modify_entry { undef $i; undef $iter; $_ = gtknew('Entry') foreach $dir, $options; - $_ = Gtk3::OptionMenu->new foreach $lr, $luserid, $lsecure, $lsync, $lsubtree_check; + $_ = Gtk3::ComboBoxText->new foreach $lr, $luserid, $lsecure, $lsync, $lsubtree_check; - $access = Gtk3::ComboBox->new; + $access = Gtk3::ComboBoxText->new; # $access = gtknew('ComboBox'); my @access_list = get_access_list(); # foreach (@access_list) { diff --git a/bin/draksambashare b/bin/draksambashare index 81851ea..536d8cd 100755 --- a/bin/draksambashare +++ b/bin/draksambashare @@ -526,7 +526,7 @@ sub modify_printers_entry { $share_name = Gtk3::Label->new; $_ = Gtk3::Entry->new foreach $dir, $comment, $print_command, $write_list, $printing, $lpq_command, $create_mode; - $_ = Gtk3::OptionMenu->new foreach $browseable, $printable, $guest_ok, $writable, $use_client_driver, $inherit_permissions; + $_ = Gtk3::ComboBoxText->new foreach $browseable, $printable, $guest_ok, $writable, $use_client_driver, $inherit_permissions; $_->set_popdown_strings(@yesno) foreach $browseable, $printable, $guest_ok, $writable, $use_client_driver, $inherit_permissions; @@ -661,7 +661,7 @@ sub modify_entry { $share_name = Gtk3::Label->new; $_ = Gtk3::Entry->new foreach $dir, $comment, $create_mask, $directory_mask, $hide_files; $_ = Gtk3::Entry->new foreach $read_list, $write_list, $admin_users, $valid_users, $force_group, $force_create_mode; - $_ = Gtk3::OptionMenu->new foreach $browseable, $public, $writable, $default_case, $preserve_case, $hide_dot_files, $inherit_permissions; + $_ = Gtk3::ComboBoxText->new foreach $browseable, $public, $writable, $default_case, $preserve_case, $hide_dot_files, $inherit_permissions; $default_case->set_popdown_strings(@default_case); $_->set_popdown_strings(@yesno) foreach $browseable, $public, $writable, $hide_dot_files, $preserve_case, $inherit_permissions; -- cgit v1.2.1