diff options
author | Thierry Vignaud <tvignaud@mandriva.org> | 2003-07-25 13:24:53 +0000 |
---|---|---|
committer | Thierry Vignaud <tvignaud@mandriva.org> | 2003-07-25 13:24:53 +0000 |
commit | 23cb9379a741912cb1af03832eb60381b782b415 (patch) | |
tree | f07eaaa65fc24d6f7da43b69094cb10e964317bb | |
parent | e29703bffd7d261ecd7c3f4a2a2b46108d3e075a (diff) | |
download | rpmdrake-23cb9379a741912cb1af03832eb60381b782b415.tar rpmdrake-23cb9379a741912cb1af03832eb60381b782b415.tar.gz rpmdrake-23cb9379a741912cb1af03832eb60381b782b415.tar.bz2 rpmdrake-23cb9379a741912cb1af03832eb60381b782b415.tar.xz rpmdrake-23cb9379a741912cb1af03832eb60381b782b415.zip |
use checkboxes instead of icons as asked by interface team (ugtk2
still need working for semi-selected state)
-rwxr-xr-x | rpmdrake | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -621,11 +621,13 @@ or you already installed all of them.")); rebuild_tree => sub {}, }; - my $tree_model = Gtk2::TreeStore->new("Glib::String", "Gtk2::Gdk::Pixbuf", "Glib::String"); + my $tree_model = Gtk2::TreeStore->new("Glib::String", "Glib::Boolean", "Glib::String", ("Glib::Boolean") x 2); $tree = Gtk2::TreeView->new_with_model($tree_model); $tree->get_selection->set_mode('browse'); + $tree->append_column(my $textcolumn = Gtk2::TreeViewColumn->new_with_attributes(undef, Gtk2::CellRendererText->new, 'text' => 0)); - $tree->append_column(my $pixcolumn = Gtk2::TreeViewColumn->new_with_attributes(undef, Gtk2::CellRendererPixbuf->new, 'pixbuf' => 1)); + $tree->append_column(my $pixcolumn = Gtk2::TreeViewColumn->new_with_attributes(undef, my $renderer = Gtk2::CellRendererToggle->new, 'active' => 1, 'activatable' => 3, 'inconsistent' => 4)); + $tree->append_column(Gtk2::TreeViewColumn->new_with_attributes(undef, Gtk2::CellRendererText->new, 'text' => 2)); $tree->set_headers_visible(0); $tree->set_rules_hint(1); @@ -873,7 +875,7 @@ Is it ok to continue?", $urpm->translate_why_removed($urpm->{state}, @{$urpm->{a $w->{window}->set_default_size($typical_width*2.7, 500); $w->{rwindow}->show_all; $options->{widgets} = { w => $w, tree => $tree, tree_model => $tree_model, textcolumn => $textcolumn, pixcolumn => $pixcolumn, - info => $info, status => $status }; + info => $info, status => $status, renderer => $renderer }; ask_browse_tree_info_given_widgets($options); } |