diff options
author | Thierry Vignaud <tv@mandriva.org> | 2008-08-27 17:49:25 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mandriva.org> | 2008-08-27 17:49:25 +0000 |
commit | 4b10c6011989c1fd1aacb033ec5e2f08f0103eab (patch) | |
tree | a3323f34562b968859ec74fae9b3d99816eb6a7e /perl-install | |
parent | 044f268d6f6a2478865219900670370a00b4c58c (diff) | |
download | drakx-4b10c6011989c1fd1aacb033ec5e2f08f0103eab.tar drakx-4b10c6011989c1fd1aacb033ec5e2f08f0103eab.tar.gz drakx-4b10c6011989c1fd1aacb033ec5e2f08f0103eab.tar.bz2 drakx-4b10c6011989c1fd1aacb033ec5e2f08f0103eab.tar.xz drakx-4b10c6011989c1fd1aacb033ec5e2f08f0103eab.zip |
(get_main_window_size) split it out of set_main_window_size()
Diffstat (limited to 'perl-install')
-rw-r--r-- | perl-install/mygtk2.pm | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/perl-install/mygtk2.pm b/perl-install/mygtk2.pm index ccd22522e..0031f3ef6 100644 --- a/perl-install/mygtk2.pm +++ b/perl-install/mygtk2.pm @@ -1198,13 +1198,18 @@ sub _allow_scroll_TextView_to_bottom { }; } + +sub get_main_window_size() { + my ($width, $height) = $::real_windowwidth ? ($::real_windowwidth, $::real_windowheight) : $::isWizard ? (540, 360) : (600, 400); +} + sub get_label_width() { first(mygtk2::get_main_window_size()) - 50; } sub set_main_window_size { my ($window) = @_; - my ($width, $height) = $::real_windowwidth ? ($::real_windowwidth, $::real_windowheight) : $::isWizard ? (540, 360) : (600, 400); + my ($width, $height) = get_main_window_size(); $window->set_size_request($width, $height); } |