diff options
author | Thierry Vignaud <tv@mandriva.org> | 2008-08-18 13:49:54 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mandriva.org> | 2008-08-18 13:49:54 +0000 |
commit | 08bc82916cc01cd8dbd4b551748207c906fb4e09 (patch) | |
tree | 4f503aaa8c39df8e4e7ae894c3724ae457a28411 /perl-install | |
parent | 4c5fecca3010be9265f15df26a763f1e308ca7dc (diff) | |
download | drakx-08bc82916cc01cd8dbd4b551748207c906fb4e09.tar drakx-08bc82916cc01cd8dbd4b551748207c906fb4e09.tar.gz drakx-08bc82916cc01cd8dbd4b551748207c906fb4e09.tar.bz2 drakx-08bc82916cc01cd8dbd4b551748207c906fb4e09.tar.xz drakx-08bc82916cc01cd8dbd4b551748207c906fb4e09.zip |
(_gtk__Install_Title) factorize installer titles creation
Diffstat (limited to 'perl-install')
-rw-r--r-- | perl-install/interactive/gtk.pm | 2 | ||||
-rw-r--r-- | perl-install/mygtk2.pm | 6 | ||||
-rw-r--r-- | perl-install/ugtk2.pm | 2 |
3 files changed, 8 insertions, 2 deletions
diff --git a/perl-install/interactive/gtk.pm b/perl-install/interactive/gtk.pm index bb2013ed4..94e941448 100644 --- a/perl-install/interactive/gtk.pm +++ b/perl-install/interactive/gtk.pm @@ -840,7 +840,7 @@ sub wait_messageW { title => $title, pop_it => defined $o->{pop_wait_messages} ? $o->{pop_wait_messages} : !$::isInstall, modal => 1, - $::isInstall ? (banner => gtknew('Title2', text => $message, widget_name => 'Banner')) : (), + $::isInstall ? (banner => gtknew('Install_Title', text => $message)) : (), no_Window_Manager => exists $o->{no_Window_Manager} ? $o->{no_Window_Manager} : !$::isStandalone, child => gtknew('VBox', padding => 4, border_width => 10, children => [ 1, $to_modify, diff --git a/perl-install/mygtk2.pm b/perl-install/mygtk2.pm index 184dc1312..dc45a4a82 100644 --- a/perl-install/mygtk2.pm +++ b/perl-install/mygtk2.pm @@ -385,6 +385,12 @@ sub title1_to_markup { : '<b><big>' . $label . '</big></b>'; } +sub _gtk__Install_Title { + my ($w, $opts) = @_; + $opts->{widget_name} = 'Banner'; + _gtk__Title2($w, $opts); +} + sub _gtk__Title1 { my ($w, $opts) = @_; $opts ||= {}; diff --git a/perl-install/ugtk2.pm b/perl-install/ugtk2.pm index 39e0e5658..3c7dbc2ba 100644 --- a/perl-install/ugtk2.pm +++ b/perl-install/ugtk2.pm @@ -735,7 +735,7 @@ sub new { 'MagicWindow', title => $title || '', pop_it => $o->{pop_it}, - $::isInstall ? (banner => gtknew('Title2', text => $title || get_default_step_items(), widget_name => 'Banner')) : (), + $::isInstall ? (banner => gtknew('Install_Title', text => $title || get_default_step_items())) : (), $::isStandalone && $banner_title && $icon ? (banner => Gtk2::Banner->new($icon, $banner_title)) : (), width => $opts{width}, height => $opts{height}, default_width => $opts{default_width}, default_height => $opts{default_height}, modal => (!$o->{pop_it} && !$::isInstall) && ($opts{modal} || $grab || $o->{grab}) || $o->{modal}, |