diff options
author | Thierry Vignaud <thierry.vignaud@gmail.com> | 2013-11-03 15:03:46 +0100 |
---|---|---|
committer | Thierry Vignaud <thierry.vignaud@gmail.com> | 2013-11-24 23:28:14 +0100 |
commit | 453c92141b25585059d7d8d7925dbe880ab26c30 (patch) | |
tree | f05444700e701a6ff8004daf00432e049cdc3efd /perl-install/mygtk3.pm | |
parent | 53dba361fafaae5dbc07c0409cd7160f6f621f01 (diff) | |
download | drakx-453c92141b25585059d7d8d7925dbe880ab26c30.tar drakx-453c92141b25585059d7d8d7925dbe880ab26c30.tar.gz drakx-453c92141b25585059d7d8d7925dbe880ab26c30.tar.bz2 drakx-453c92141b25585059d7d8d7925dbe880ab26c30.tar.xz drakx-453c92141b25585059d7d8d7925dbe880ab26c30.zip |
add basic support for Builder widget
Diffstat (limited to 'perl-install/mygtk3.pm')
-rw-r--r-- | perl-install/mygtk3.pm | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/perl-install/mygtk3.pm b/perl-install/mygtk3.pm index 1e78a7baa..6fcc192de 100644 --- a/perl-install/mygtk3.pm +++ b/perl-install/mygtk3.pm @@ -552,6 +552,18 @@ sub _gtk__ActionGroup { $w; } +sub _gtk__Builder { + my ($w, $opts, $_class, $action) = @_; + + if (!$w) { + $w = Gtk3::Builder->new; + $w->add_from_file(delete $opts->{file}) if exists $opts->{file}; + $w->add_from_string(delete $opts->{string}) if exists $opts->{string}; + $w->connect_signals(undef); + } + $w; +} + sub _gtk__UIManager { my ($w, $opts, $_class, $action) = @_; |