summaryrefslogtreecommitdiffstats
path: root/mgaapplet_gui.pm
diff options
context:
space:
mode:
authorThierry Vignaud <thierry.vignaud@gmail.com>2013-11-18 15:41:22 +0100
committerThierry Vignaud <thierry.vignaud@gmail.com>2013-12-03 12:41:59 +0100
commit9566b9f9abbb375d73bb583191502b0859507665 (patch)
tree121ad3b6f1ab658000ec3c92adeec0127b4056d7 /mgaapplet_gui.pm
parent6c1fa5cd83b0d46528ee8cecda42f9b1adca0b32 (diff)
downloadmgaonline-9566b9f9abbb375d73bb583191502b0859507665.tar
mgaonline-9566b9f9abbb375d73bb583191502b0859507665.tar.gz
mgaonline-9566b9f9abbb375d73bb583191502b0859507665.tar.bz2
mgaonline-9566b9f9abbb375d73bb583191502b0859507665.tar.xz
mgaonline-9566b9f9abbb375d73bb583191502b0859507665.zip
use Gtk3 namespace instead of Gtk2
Diffstat (limited to 'mgaapplet_gui.pm')
-rw-r--r--mgaapplet_gui.pm6
1 files changed, 3 insertions, 3 deletions
diff --git a/mgaapplet_gui.pm b/mgaapplet_gui.pm
index 605cf3c8..a0273618 100644
--- a/mgaapplet_gui.pm
+++ b/mgaapplet_gui.pm
@@ -62,7 +62,7 @@ our $localfile = "$localdir/mgaonline";
mkdir_p($localdir) if !-d $localdir;
-e "$ENV{HOME}/.mgaonline" and system("mv", "$ENV{HOME}/.mgaonline", $localfile);
-interactive::gtk::add_padding(Gtk2::Label->new);
+interactive::gtk::add_padding(Gtk3::Label->new);
our %local_config;
read_local_config();
@@ -113,7 +113,7 @@ sub fill_n_run_portable_dialog {
sub new_link_button {
my ($url, $text) = @_;
- my $link = Gtk2::LinkButton->new($url, $text);
+ my $link = Gtk3::LinkButton->new($url, $text);
$link->set_uri_hook(sub {
my (undef, $url) = @_;
run_program::raw({ detach => 1, setuid => get_parent_uid() }, 'www-browser', $url);
@@ -160,7 +160,7 @@ sub run_ask_credentials_dialog {
$password_text = $password_w->get_text;
$email_text = $email_w->get_text;
$ok_clicked = 1;
- Gtk2->main_quit;
+ Gtk3->main_quit;
};
my @widgets = (