aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <thierry.vignaud@gmail.com>2013-11-19 21:37:28 +0100
committerThierry Vignaud <thierry.vignaud@gmail.com>2013-12-05 14:16:07 +0100
commita3aa57737c09fd4972bf3c15dc7689a544b1ca4f (patch)
treea3115f687f72ef0cb13022d060e8f73d05cc32cc
parentf6dc934fdc80c05904fc4ab107acf94eba5622d8 (diff)
downloadrpmdrake-a3aa57737c09fd4972bf3c15dc7689a544b1ca4f.tar
rpmdrake-a3aa57737c09fd4972bf3c15dc7689a544b1ca4f.tar.gz
rpmdrake-a3aa57737c09fd4972bf3c15dc7689a544b1ca4f.tar.bz2
rpmdrake-a3aa57737c09fd4972bf3c15dc7689a544b1ca4f.tar.xz
rpmdrake-a3aa57737c09fd4972bf3c15dc7689a544b1ca4f.zip
fix computing root_window size
-rwxr-xr-xMageiaUpdate2
-rwxr-xr-xrpmdrake2
2 files changed, 2 insertions, 2 deletions
diff --git a/MageiaUpdate b/MageiaUpdate
index f111c31e..4dbe3d35 100755
--- a/MageiaUpdate
+++ b/MageiaUpdate
@@ -138,7 +138,7 @@ sub run_treeview_dialog {
my ($list, $info, $update_button);
- my $rootwin_height = second(gtkroot()->get_size);
+ my $rootwin_height = second(mygtk3::root_window_size());
my $is_small_screen = $rootwin_height <= 480;
compute_main_window_size($w);
diff --git a/rpmdrake b/rpmdrake
index 9b4477f3..3259476c 100755
--- a/rpmdrake
+++ b/rpmdrake
@@ -679,7 +679,7 @@ sub run_treeview_dialog {
gtkpack_(
gtknew('VBox', spacing => 3),
0, $menu,
- if_(second(gtkroot()->get_size) >= 600, 0, getbanner()),
+ if_(second(mygtk3::root_window_size()) >= 600, 0, getbanner()),
1, gtkadd(
gtknew('Frame', border_width => 3, shadow_type => 'none'),
gtkpack_(