diff options
author | Thierry Vignaud <tv@mandriva.org> | 2007-09-06 14:27:52 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mandriva.org> | 2007-09-06 14:27:52 +0000 |
commit | 3c7c471d9ee610dd9a37052a178d9442b65de54f (patch) | |
tree | e55e4f32939b5ff3a724856fe1ebbbbc321e7df4 | |
parent | 5b8bece707cb4212ea1655c2ea1ed1e09a667569 (diff) | |
download | rpmdrake-3c7c471d9ee610dd9a37052a178d9442b65de54f.tar rpmdrake-3c7c471d9ee610dd9a37052a178d9442b65de54f.tar.gz rpmdrake-3c7c471d9ee610dd9a37052a178d9442b65de54f.tar.bz2 rpmdrake-3c7c471d9ee610dd9a37052a178d9442b65de54f.tar.xz rpmdrake-3c7c471d9ee610dd9a37052a178d9442b65de54f.zip |
(run_treeview_dialog) add margins in package list's columns
-rwxr-xr-x | rpmdrake | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -187,11 +187,12 @@ sub run_treeview_dialog { $pixcolumn->set_fixed_width(34); # w/o this the pixbuf cells is empty $pixcolumn->set_sizing('fixed'); $detail_list->append_column(my $col_nm = Gtk2::TreeViewColumn->new_with_attributes(N("Package"), my $nm_rdr = Gtk2::CellRendererText->new, 'text' => $pkg_columns{short_name})); - $detail_list->append_column(my $col_ver = Gtk2::TreeViewColumn->new_with_attributes(N("Version"), Gtk2::CellRendererText->new, 'text' => $pkg_columns{version})); - $detail_list->append_column(my $col_arch = Gtk2::TreeViewColumn->new_with_attributes(N("Arch"), Gtk2::CellRendererText->new, 'text' => $pkg_columns{arch})); + $detail_list->append_column(my $col_ver = Gtk2::TreeViewColumn->new_with_attributes(N("Version"),my $ver_rdr = Gtk2::CellRendererText->new, 'text' => $pkg_columns{version})); + $detail_list->append_column(my $col_arch = Gtk2::TreeViewColumn->new_with_attributes(N("Arch"), my $arch_rdr = Gtk2::CellRendererText->new, 'text' => $pkg_columns{arch})); $_->set_sizing('autosize') foreach $col_nm, $col_ver, $col_arch; $nm_rdr->set_property('width-chars', '20'); $nm_rdr->set_property('ellipsize', 'end'); + $_->set_property('xpad', '6') foreach $arch_rdr, $nm_rdr, $ver_rdr; $col_nm->set_resizable(1); $detail_list_model->set_sort_column_id(0, 'ascending'); $detail_list->set_rules_hint(1); |