From 6c53e24da02222759810179f083a95977f0606c7 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Mon, 10 Dec 2012 03:13:58 +0000 Subject: (create_widget) add support for 'advanced_title' (needed for next commit) --- perl-install/interactive.pm | 1 + perl-install/interactive/gtk.pm | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/perl-install/interactive.pm b/perl-install/interactive.pm index 2a17f5c22..34ae7a4de 100644 --- a/perl-install/interactive.pm +++ b/perl-install/interactive.pm @@ -31,6 +31,7 @@ use do_pkgs; #- advanced_label => (deprecated) force the name of the "Advanced" button #- advanced_label_close => (deprecated) force the name of the "Basic" button #- advanced_state => (deprecated) if set to 1, force the "Advanced" part of the dialog to be opened initially +#- advanced_title => (deprecated) title of the advanced item popup dialog (else reusing main title) #- callbacks => (deprecated) functions called when something happen: complete advanced ok_disabled #- ask_from_ takes a list of entries with fields: diff --git a/perl-install/interactive/gtk.pm b/perl-install/interactive/gtk.pm index 9ca5b3b72..74dbad3fc 100644 --- a/perl-install/interactive/gtk.pm +++ b/perl-install/interactive/gtk.pm @@ -442,7 +442,7 @@ sub create_widget { $w = gtknew('HBox', children_tight => [ gtknew('Install_Button', text => $e->{text}, clicked => sub { - ask_fromW($o, { title => $common->{title} || N("Advanced") }, $children) } + ask_fromW($o, { title => $common->{advanced_title} || $common->{title} || N("Advanced") }, $children) } ) ]); } elsif ($e->{type} =~ /list/) { -- cgit v1.2.1