summaryrefslogtreecommitdiffstats
path: root/control-center
diff options
context:
space:
mode:
authorThierry Vignaud <thierry.vignaud@gmail.com>2013-11-18 02:46:00 +0100
committerThierry Vignaud <thierry.vignaud@gmail.com>2015-12-20 10:25:03 +0100
commit83c2966b6e3382d77fb924bdd2cc95827434127b (patch)
treeef629d29ce231cfdebfd2f40ee0e1b0207bfdb01 /control-center
parent94af399f6f116f31ae75b0058378e5a4fef152b0 (diff)
downloadcontrol-center-83c2966b6e3382d77fb924bdd2cc95827434127b.tar
control-center-83c2966b6e3382d77fb924bdd2cc95827434127b.tar.gz
control-center-83c2966b6e3382d77fb924bdd2cc95827434127b.tar.bz2
control-center-83c2966b6e3382d77fb924bdd2cc95827434127b.tar.xz
control-center-83c2966b6e3382d77fb924bdd2cc95827434127b.zip
fix computing root_window size
Diffstat (limited to 'control-center')
-rwxr-xr-xcontrol-center2
1 files changed, 1 insertions, 1 deletions
diff --git a/control-center b/control-center
index 0e796769..c81d872c 100755
--- a/control-center
+++ b/control-center
@@ -46,7 +46,7 @@ my (%tool_pids, %tool_feedback, $gurpmi_pid);
my ($conffile, $class_install) = ('/etc/mcc.conf', '/etc/sysconfig/system');
-my ($rootwin_width, $rootwin_height) = gtkroot()->get_size;
+my ($rootwin_width, $rootwin_height) = mygtk3::root_window_size();
my $default_width = $rootwin_width <= 800 ? 720 : 800;
my $default_height = $rootwin_height <= 480 ? 420 : $rootwin_height <= 600 ? 523 : 600;