diff options
Diffstat (limited to 'perl-install')
-rw-r--r-- | perl-install/ugtk2.pm | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/perl-install/ugtk2.pm b/perl-install/ugtk2.pm index 5de8205d3..27fb63207 100644 --- a/perl-install/ugtk2.pm +++ b/perl-install/ugtk2.pm @@ -1333,6 +1333,17 @@ sub get_path_str { $path->to_string; } +# likewise gtk-1.2 function +sub toggle_expansion { + my ($self, $path, $open_all) = @_; + if ($self->row_expanded($path)) { + $self->collapse_row($path); + } else { + $self->expand_row($path, $open_all || 0); + } +} + + package Gtk2::Label; sub set { my ($label) = shift; |