diff options
author | Thierry Vignaud <thierry.vignaud@gmail.com> | 2013-11-19 21:37:28 +0100 |
---|---|---|
committer | Thierry Vignaud <thierry.vignaud@gmail.com> | 2013-12-05 14:16:06 +0100 |
commit | e4478b1a58330fea9685120e5ae99a57358b9440 (patch) | |
tree | 211ac2c8c5bde232ad3fffa5d5e8f498bdbc82d1 | |
parent | f711cbd68e4348b9b94479e93701f1e11964b55e (diff) | |
download | rpmdrake-e4478b1a58330fea9685120e5ae99a57358b9440.tar rpmdrake-e4478b1a58330fea9685120e5ae99a57358b9440.tar.gz rpmdrake-e4478b1a58330fea9685120e5ae99a57358b9440.tar.bz2 rpmdrake-e4478b1a58330fea9685120e5ae99a57358b9440.tar.xz rpmdrake-e4478b1a58330fea9685120e5ae99a57358b9440.zip |
those setters no more accept undef
-rw-r--r-- | Rpmdrake/edit_urpm_sources.pm | 6 | ||||
-rwxr-xr-x | rpmdrake | 4 | ||||
-rw-r--r-- | rpmdrake.pm | 2 |
3 files changed, 6 insertions, 6 deletions
diff --git a/Rpmdrake/edit_urpm_sources.pm b/Rpmdrake/edit_urpm_sources.pm index 024c4da9..cc65b8f9 100644 --- a/Rpmdrake/edit_urpm_sources.pm +++ b/Rpmdrake/edit_urpm_sources.pm @@ -678,7 +678,7 @@ sub edit_parallel { my ($medias, $hosts) = map { my $list = Gtk3::TreeView->new_with_model($_); - $list->append_column(Gtk3::TreeViewColumn->new_with_attributes(undef, Gtk3::CellRendererText->new, 'text' => 0)); + $list->append_column(Gtk3::TreeViewColumn->new_with_attributes('', Gtk3::CellRendererText->new, 'text' => 0)); $list->set_headers_visible(0); $list->get_selection->set_mode('browse'); $list; @@ -689,7 +689,7 @@ sub edit_parallel { my $add_media = sub { my $medias_list_ls = Gtk3::ListStore->new("Glib::String"); my $medias_list = Gtk3::TreeView->new_with_model($medias_list_ls); - $medias_list->append_column(Gtk3::TreeViewColumn->new_with_attributes(undef, Gtk3::CellRendererText->new, 'text' => 0)); + $medias_list->append_column(Gtk3::TreeViewColumn->new_with_attributes('', Gtk3::CellRendererText->new, 'text' => 0)); $medias_list->set_headers_visible(0); $medias_list->get_selection->set_mode('browse'); $medias_list_ls->append_set([ 0 => $_->{name} ]) foreach @{$urpm->{media}}; @@ -887,7 +887,7 @@ sub keys_callback() { my $add_key = sub { my $available_keyz_ls = Gtk3::ListStore->new("Glib::String", "Glib::String"); my $available_keyz = Gtk3::TreeView->new_with_model($available_keyz_ls); - $available_keyz->append_column(Gtk3::TreeViewColumn->new_with_attributes(undef, Gtk3::CellRendererText->new, 'text' => 0)); + $available_keyz->append_column(Gtk3::TreeViewColumn->new_with_attributes('', Gtk3::CellRendererText->new, 'text' => 0)); $available_keyz->set_headers_visible(0); $available_keyz->get_selection->set_mode('browse'); $available_keyz_ls->append_set([ 0 => sprintf("%s (%s)", $_, $key_name->($_)), 1 => $_ ]) foreach keys %{$urpm->{keys}}; @@ -252,7 +252,7 @@ sub run_treeview_dialog { $tree = Gtk3::TreeView->new_with_model($tree_model); $tree->get_selection->set_mode('browse'); - $tree->append_column(Gtk3::TreeViewColumn->new_with_attributes(undef, Gtk3::MDV::CellRendererPixWithLabel->new, 'pixbuf' => $grp_columns{icon}, label => $grp_columns{label})); + $tree->append_column(Gtk3::TreeViewColumn->new_with_attributes('', Gtk3::MDV::CellRendererPixWithLabel->new, 'pixbuf' => $grp_columns{icon}, label => $grp_columns{label})); $tree->set_headers_visible(0); $detail_list_model = Gtk3::ListStore->new("Glib::String", @@ -268,7 +268,7 @@ sub run_treeview_dialog { $detail_list = Gtk3::TreeView->new_with_model($detail_list_model); $detail_list->append_column( my $col_sel = Gtk3::TreeViewColumn->new_with_attributes( - undef, + '', Gtk3::CellRendererToggle->new, active => $pkg_columns{selected}, activatable => $pkg_columns{selectable} diff --git a/rpmdrake.pm b/rpmdrake.pm index 13c287b6..1aa78d34 100644 --- a/rpmdrake.pm +++ b/rpmdrake.pm @@ -672,7 +672,7 @@ by Mageia Official Updates.")), %options my $tree_model = Gtk3::TreeStore->new("Glib::String"); my $tree = Gtk3::TreeView->new_with_model($tree_model); $tree->get_selection->set_mode('browse'); - $tree->append_column(Gtk3::TreeViewColumn->new_with_attributes(undef, Gtk3::CellRendererText->new, text => 0)); + $tree->append_column(Gtk3::TreeViewColumn->new_with_attributes('', Gtk3::CellRendererText->new, text => 0)); $tree->set_headers_visible(0); gtkadd( |