aboutsummaryrefslogtreecommitdiffstats
path: root/MageiaUpdate
diff options
context:
space:
mode:
authorThierry Vignaud <thierry.vignaud@gmail.com>2013-11-19 21:37:27 +0100
committerThierry Vignaud <thierry.vignaud@gmail.com>2013-12-05 14:16:06 +0100
commit4473fb769b8aa88daede1eaaa4c65e74cbd17401 (patch)
tree51a78dff3cad962195a7a729fcc887d2d73c0c3f /MageiaUpdate
parentcc91f03150dba941470fd80c10211eaead298c89 (diff)
downloadrpmdrake-4473fb769b8aa88daede1eaaa4c65e74cbd17401.tar
rpmdrake-4473fb769b8aa88daede1eaaa4c65e74cbd17401.tar.gz
rpmdrake-4473fb769b8aa88daede1eaaa4c65e74cbd17401.tar.bz2
rpmdrake-4473fb769b8aa88daede1eaaa4c65e74cbd17401.tar.xz
rpmdrake-4473fb769b8aa88daede1eaaa4c65e74cbd17401.zip
use Gtk3 namespace instead of Gtk2
Diffstat (limited to 'MageiaUpdate')
-rwxr-xr-xMageiaUpdate20
1 files changed, 10 insertions, 10 deletions
diff --git a/MageiaUpdate b/MageiaUpdate
index 6192c5d9..df1bbd09 100755
--- a/MageiaUpdate
+++ b/MageiaUpdate
@@ -39,7 +39,7 @@ use Rpmdrake::widgets;
use mygtk3 qw(gtknew); #- do not import anything else, especially gtkadd() which conflicts with ugtk3 one
use ugtk3 qw(:all);
-use Gtk2::SimpleList;
+use Gtk3::SimpleList;
# make Rpmdrake::gui aware MageiaUpdate do not use the same columns ids as rpmdrake:
%pkg_columns = (
@@ -151,7 +151,7 @@ sub run_treeview_dialog {
0, gtknew('Title2', label => N("Here is the list of software package updates"), width => 600),
1, create_vpaned(
gtknew('ScrolledWindow', width => $typical_width*0.9, height => $is_small_screen ? 150 : 200,
- child => $list = Gtk2::SimpleList->new(
+ child => $list = Gtk3::SimpleList->new(
" " => 'pixbuf',
" " . " " . " " => 'bool', #N("Selected")
'' => 'hidden',
@@ -164,19 +164,19 @@ sub run_treeview_dialog {
),
gtknew('ScrolledWindow', width => $typical_width*0.9,
- child => $info = Gtk2::Mdv::TextView->new, height => $is_small_screen ? 150 : 190,
+ child => $info = Gtk3::Mdv::TextView->new, height => $is_small_screen ? 150 : 190,
),
resize1 => 1,
),
- 0, gtkset_size_request(Gtk2::HSeparator->new, -1, 5),
+ 0, gtkset_size_request(Gtk3::HSeparator->new, -1, 5),
0, gtkpack_(
gtknew('HBox', spacing => 20),
0, gtksignal_connect(
- Gtk2::Button->new(but_(N("Help"))),
+ Gtk3::Button->new(but_(N("Help"))),
clicked => sub { rpmdrake::open_help($MODE) },
),
0, gtksignal_connect(
- Gtk2::Button->new(but_(N("Select all"))),
+ Gtk3::Button->new(but_(N("Select all"))),
clicked => sub {
toggle_all({
widgets => {
@@ -189,7 +189,7 @@ sub run_treeview_dialog {
),
1, gtknew('Label'),
0, my $action_button = gtksignal_connect(
- $update_button = Gtk2::Button->new(but_(N("Update"))),
+ $update_button = Gtk3::Button->new(but_(N("Update"))),
clicked => sub {
my $res = do_action({ tree_mode => 'all_updates' }, $callback_action);
$initialized = 0 if !$res;
@@ -197,14 +197,14 @@ sub run_treeview_dialog {
},
),
0, gtksignal_connect(
- Gtk2::Button->new(but_(N("Quit"))),
+ Gtk3::Button->new(but_(N("Quit"))),
clicked => \&quit,
),
),
- #0, $statusbar = Gtk2::Statusbar->new,
+ #0, $statusbar = Gtk3::Statusbar->new,
),
);
- $statusbar = Gtk2::Statusbar->new;
+ $statusbar = Gtk3::Statusbar->new;
$list->get_model->set_sort_func($pkg_columns{image} + 1, sub {
my ($store, $treeiter1, $treeiter2) = @_;