aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2007-03-16 11:28:12 +0000
committerThierry Vignaud <tv@mandriva.org>2007-03-16 11:28:12 +0000
commit92339c6012e71730a500797246f9f84801db1c62 (patch)
tree057c24f57617f4147e57d240b6305729b3b69078
parenta3896ab321d2bfae8d18d400ea180b248d34c62e (diff)
downloadrpmdrake-92339c6012e71730a500797246f9f84801db1c62.tar
rpmdrake-92339c6012e71730a500797246f9f84801db1c62.tar.gz
rpmdrake-92339c6012e71730a500797246f9f84801db1c62.tar.bz2
rpmdrake-92339c6012e71730a500797246f9f84801db1c62.tar.xz
rpmdrake-92339c6012e71730a500797246f9f84801db1c62.zip
use fixed mode
-rwxr-xr-xMandrivaUpdate4
-rwxr-xr-xrpmdrake11
2 files changed, 13 insertions, 2 deletions
diff --git a/MandrivaUpdate b/MandrivaUpdate
index 65ea962f..64dc728f 100755
--- a/MandrivaUpdate
+++ b/MandrivaUpdate
@@ -150,6 +150,10 @@ sub run_treeview_dialog {
$list->set_rules_hint(1);
$list->set_headers_visible(0);
+ $list->get_column(0)->set_fixed_width(24);
+ $list->get_column(0)->set_sizing('fixed');
+ $list->get_column(1)->set_sizing('fixed');
+ $list->set_fixed_height_mode(1);
$list->get_selection->signal_connect(changed => sub {
my ($model, $iter) = $_[0]->get_selected;
$model && $iter or return;
diff --git a/rpmdrake b/rpmdrake
index 06a32e4d..12a2fe3d 100755
--- a/rpmdrake
+++ b/rpmdrake
@@ -189,12 +189,17 @@ sub run_treeview_dialog {
$detail_list_model = Gtk2::ListStore->new("Glib::String", "Gtk2::Gdk::Pixbuf", "Glib::String");
$detail_list = Gtk2::TreeView->new_with_model($detail_list_model);
- $detail_list->append_column(my $pixcolumn = Gtk2::TreeViewColumn->new_with_attributes(undef, Gtk2::CellRendererPixbuf->new, 'pixbuf' => $pkg_columns{state_icon}));
+ $detail_list->append_column(my $pixcolumn = Gtk2::TreeViewColumn->new_with_attributes(undef, my $rdr = Gtk2::CellRendererPixbuf->new, 'pixbuf' => $pkg_columns{state_icon}));
+ $rdr->set_fixed_size(42, 24);
+ $pixcolumn->set_fixed_width(48); # w/o this the pixbuf cells is empty
+ $pixcolumn->set_sizing('fixed');
$pixcolumn->{is_pix} = 1;
- $detail_list->append_column(Gtk2::TreeViewColumn->new_with_attributes(undef, Gtk2::CellRendererText->new, 'text' => $pkg_columns{text}));
+ $detail_list->append_column(my $col = Gtk2::TreeViewColumn->new_with_attributes(undef, Gtk2::CellRendererText->new, 'text' => $pkg_columns{text}));
+ $col->set_sizing('fixed');
$detail_list_model->set_sort_column_id(0, 'ascending');
$detail_list->set_headers_visible(0);
$detail_list->set_rules_hint(1);
+ $detail_list->set_fixed_height_mode(1);
compute_main_window_size($w);
@@ -220,7 +225,9 @@ sub run_treeview_dialog {
while ($parent = $model->iter_parent($parent)) {
$group = join('|', $model->get($parent, 0), $group);
}
+ $detail_list->window->freeze_updates;
slow_func($::main_window->window, sub { $options->{add_nodes}->(@{$elems{$group}}) });
+ $detail_list->window->thaw_updates;
});
$options->{state}{splited} = 1;