summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
authorThierry Vignaud <tvignaud@mandriva.org>2003-07-09 19:24:45 +0000
committerThierry Vignaud <tvignaud@mandriva.org>2003-07-09 19:24:45 +0000
commit9ed9f3eb6898522f47002e7db7714d48cb8c2112 (patch)
treec2d0d36df473a7b5c702a70c669219af8d8cc86a /perl-install
parentecdcfe03ae26bf55597d6b435316e0978702f162 (diff)
downloaddrakx-9ed9f3eb6898522f47002e7db7714d48cb8c2112.tar
drakx-9ed9f3eb6898522f47002e7db7714d48cb8c2112.tar.gz
drakx-9ed9f3eb6898522f47002e7db7714d48cb8c2112.tar.bz2
drakx-9ed9f3eb6898522f47002e7db7714d48cb8c2112.tar.xz
drakx-9ed9f3eb6898522f47002e7db7714d48cb8c2112.zip
add Gtk2::TreeView->toggle_expansion helper for rpmdrake
Diffstat (limited to 'perl-install')
-rw-r--r--perl-install/ugtk2.pm11
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;