From 49671c053c9f4f8c9d7bf9f02e60ab7491a2fcc9 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Sun, 10 Feb 2013 19:45:14 +0000 Subject: s/can_focus()/set_can_focus()/ --- perl-install/diskdrake/hd_gtk.pm | 2 +- perl-install/mygtk3.pm | 2 +- perl-install/ugtk3.pm | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'perl-install') diff --git a/perl-install/diskdrake/hd_gtk.pm b/perl-install/diskdrake/hd_gtk.pm index 02f7c1251..ce6c81ffb 100644 --- a/perl-install/diskdrake/hd_gtk.pm +++ b/perl-install/diskdrake/hd_gtk.pm @@ -412,7 +412,7 @@ sub filesystems_button_box() { my $w = gtknew('Button', text => translate($_), widget_name => 'PART_' . ($t || 'empty'), tip => N("Filesystem types:"), clicked => sub { try_('', \&createOrChangeType, $t, current_hd(), current_part()) }); - $w->can_focus(0); + $w->set_can_focus(0); $w; } @types); } diff --git a/perl-install/mygtk3.pm b/perl-install/mygtk3.pm index 9f5b68d1a..173f0519b 100644 --- a/perl-install/mygtk3.pm +++ b/perl-install/mygtk3.pm @@ -113,7 +113,7 @@ sub _gtk { $w->move($position->[0], $position->[1]); } $w->set_name(delete $opts->{widget_name}) if exists $opts->{widget_name}; - $w->can_focus(delete $opts->{can_focus}) if exists $opts->{can_focus}; + $w->set_can_focus(delete $opts->{can_focus}) if exists $opts->{can_focus}; $w->set_can_default(delete $opts->{can_default}) if exists $opts->{can_default}; $w->grab_focus if delete $opts->{grab_focus}; $w->set_padding(@{delete $opts->{padding}}) if exists $opts->{padding}; diff --git a/perl-install/ugtk3.pm b/perl-install/ugtk3.pm index ac116a761..7e356c8e0 100644 --- a/perl-install/ugtk3.pm +++ b/perl-install/ugtk3.pm @@ -344,7 +344,7 @@ sub create_box_with_title { $wtext->set_justification('fill'); $wtext->set_left_margin(12); $wtext->set_right_margin(12); - $wtext->can_focus($has_scroll); + $wtext->set_can_focus($has_scroll); my $width = 400; my $scroll = gtknew('ScrolledWindow', child => $wtext, width => $width, height => 200); $scroll->signal_connect(realize => sub { -- cgit v1.2.1