aboutsummaryrefslogtreecommitdiffstats
path: root/edit-urpm-sources.pl
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2006-12-04 11:37:50 +0000
committerThierry Vignaud <tv@mandriva.org>2006-12-04 11:37:50 +0000
commitd6acc3707d58169ced54d9b44af78b49f45d14b2 (patch)
tree8c588af54534956a615d82c6599c8318b29f7e1d /edit-urpm-sources.pl
parent9e1044e4be9ecc525673d75c308e59aba37f2073 (diff)
downloadrpmdrake-d6acc3707d58169ced54d9b44af78b49f45d14b2.tar
rpmdrake-d6acc3707d58169ced54d9b44af78b49f45d14b2.tar.gz
rpmdrake-d6acc3707d58169ced54d9b44af78b49f45d14b2.tar.bz2
rpmdrake-d6acc3707d58169ced54d9b44af78b49f45d14b2.tar.xz
rpmdrake-d6acc3707d58169ced54d9b44af78b49f45d14b2.zip
(keys_callback) better looking key column that now wraps
Diffstat (limited to 'edit-urpm-sources.pl')
-rwxr-xr-xedit-urpm-sources.pl7
1 files changed, 6 insertions, 1 deletions
diff --git a/edit-urpm-sources.pl b/edit-urpm-sources.pl
index 72af314d..a42e172b 100755
--- a/edit-urpm-sources.pl
+++ b/edit-urpm-sources.pl
@@ -773,9 +773,14 @@ sub keys_callback() {
$media_list->append_column(Gtk2::TreeViewColumn->new_with_attributes(N("Medium"), Gtk2::CellRendererText->new, 'text' => 0));
$media_list->get_selection->set_mode('browse');
+ my $key_col_size = 300;
my $keys_list_ls = Gtk2::ListStore->new("Glib::String", "Glib::String");
my $keys_list = Gtk2::TreeView->new_with_model($keys_list_ls);
- $keys_list->append_column(Gtk2::TreeViewColumn->new_with_attributes(N("_:cryptographic keys\nKeys"), Gtk2::CellRendererText->new, 'text' => 0));
+ $keys_list->append_column(my $col = Gtk2::TreeViewColumn->new_with_attributes(N("_:cryptographic keys\nKeys"), my $renderer = Gtk2::CellRendererText->new, 'text' => 0));
+ $col->set_sizing('fixed');
+ $col->set_fixed_width($key_col_size);
+ $renderer->set_property('width' => 1);
+ $renderer->set_property('wrap-width', $key_col_size);
$keys_list->get_selection->set_mode('browse');
my ($current_medium, $current_medium_nb, @keys);