diff options
author | Guillaume Cottenceau <gc@mandriva.com> | 2003-08-04 13:58:16 +0000 |
---|---|---|
committer | Guillaume Cottenceau <gc@mandriva.com> | 2003-08-04 13:58:16 +0000 |
commit | b212cb2a6a94898bb44c8928d872ee14d40394c5 (patch) | |
tree | 2a180f09c8d1cc7985f668e03eb584f12c76c0b8 /rpmdrake | |
parent | 72b1887f6bb3610c0ad7329684de3d5fd2911eb2 (diff) | |
download | rpmdrake-b212cb2a6a94898bb44c8928d872ee14d40394c5.tar rpmdrake-b212cb2a6a94898bb44c8928d872ee14d40394c5.tar.gz rpmdrake-b212cb2a6a94898bb44c8928d872ee14d40394c5.tar.bz2 rpmdrake-b212cb2a6a94898bb44c8928d872ee14d40394c5.tar.xz rpmdrake-b212cb2a6a94898bb44c8928d872ee14d40394c5.zip |
revert "use checkboxes instead of icons"
Diffstat (limited to 'rpmdrake')
-rwxr-xr-x | rpmdrake | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -621,12 +621,13 @@ or you already installed all of them.")); rebuild_tree => sub {}, }; - my $tree_model = Gtk2::TreeStore->new("Glib::String", "Glib::Boolean", "Glib::String", ("Glib::Boolean") x 2); + my $tree_model = Gtk2::TreeStore->new("Glib::String", "Gtk2::Gdk::Pixbuf", "Glib::String"); $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, my $renderer = Gtk2::CellRendererToggle->new, 'active' => 1, 'activatable' => 3, 'inconsistent' => 4)); + $tree->append_column(my $pixcolumn = Gtk2::TreeViewColumn->new_with_attributes(undef, Gtk2::CellRendererPixbuf->new, 'pixbuf' => 1)); + $pixcolumn->{is_pix} = 1; $tree->append_column(Gtk2::TreeViewColumn->new_with_attributes(undef, Gtk2::CellRendererText->new, 'text' => 2)); $tree->set_headers_visible(0); @@ -875,7 +876,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, renderer => $renderer }; + info => $info, status => $status }; ask_browse_tree_info_given_widgets($options); } |