summaryrefslogtreecommitdiffstats
path: root/mgaapplet
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2017-03-03 22:46:28 +0100
committerRémi Verschelde <rverschelde@gmail.com>2017-03-03 22:52:03 +0100
commit2f4ecf3b6acad46a30c0fa73e58b34291f3e7322 (patch)
tree5daa232282a24a2446f3f03e4e5ce08b5adb9a36 /mgaapplet
parent3832dd93cc03991cb403d27c65cc9f1f95b75faa (diff)
downloadmgaonline-2f4ecf3b6acad46a30c0fa73e58b34291f3e7322.tar
mgaonline-2f4ecf3b6acad46a30c0fa73e58b34291f3e7322.tar.gz
mgaonline-2f4ecf3b6acad46a30c0fa73e58b34291f3e7322.tar.bz2
mgaonline-2f4ecf3b6acad46a30c0fa73e58b34291f3e7322.tar.xz
mgaonline-2f4ecf3b6acad46a30c0fa73e58b34291f3e7322.zip
Install and use SVG icons by default
Move the mgaonline icon in the hicolor theme with the proper SVG variant installed too. Also fixed a typo in a rpmdrake icon and updated copyright year.
Diffstat (limited to 'mgaapplet')
-rwxr-xr-xmgaapplet12
1 files changed, 6 insertions, 6 deletions
diff --git a/mgaapplet b/mgaapplet
index f979b61d..4b7d3a47 100755
--- a/mgaapplet
+++ b/mgaapplet
@@ -42,7 +42,7 @@ use Net::DBus qw(:typing);
use Rpmdrake::open_db;
use Glib::Object::Introspection;
-use constant IMAGE_FOLDER => '/usr/share/mgaonline/pixmaps/';
+use constant IMAGE_FOLDER => '/usr/share/mgaonline/icons/';
Glib::Object::Introspection->setup(
basename => 'StatusNotifier',
@@ -177,7 +177,7 @@ my %actions = (
'upgrade_distro' => { name => N("Upgrade the system"), launch => \&upgrade },
);
-my $icon = StatusNotifier::Notifier->new_from_icon_name('mgaapplet', 'STATUS_NOTIFIER_CATEGORY_APPLICATION_STATUS', '/usr/share/icons/mgaonline.png');
+my $icon = StatusNotifier::Notifier->new_from_icon_name('mgaapplet', 'STATUS_NOTIFIER_CATEGORY_APPLICATION_STATUS', '/usr/share/icons/hicolor/scalable/apps/mgaonline.svg');
$icon->set_title('mgaapplet');
$icon->set_status('STATUS_NOTIFIER_STATUS_ACTIVE');
$icon->register;
@@ -241,7 +241,7 @@ Gtk3->main;
ugtk3::exit(0);
sub img {
- my $file = IMAGE_FOLDER . $_[0] . '.png';
+ my $file = IMAGE_FOLDER . $_[0] . '.svg';
warn "File $file not found.\n" unless -f $file;
return $file;
}
@@ -648,9 +648,9 @@ sub about_dialog() {
$url =~ s/^https:/http:/;
my $w = gtknew('AboutDialog', name => N("Mageia Online %s", $ver),
copyright => N("Copyright (C) %s by %s", 'Mandriva', '2001-2010') . "\n" .
- N("Copyright (C) %s by %s", 'Mageia', '2010-2016'),
+ N("Copyright (C) %s by %s", 'Mageia', '2010-2017'),
license => join('', cat_('/usr/share/common-licenses/GPL')),
- icon => '/usr/share/icons/mini/mgaonline.png',
+ icon => '/usr/share/icons/hicolor/48x48/apps/mgaonline.png',
comments => N("Mageia Online gives access to Mageia web services."),
website => $url,
website_label => N("Online WebSite"),
@@ -692,7 +692,7 @@ sub setState {
if ($state{$state}{tt}[0] && !$state{$state}{do_not_use_bubble}) {
$bubble->clear_actions;
$bubble->update(N("Warning"), formatAlaTeX(translate($state{$state}{tt}[0])) . "\n",
- '/usr/share/icons/mgaonline.png');
+ '/usr/share/icons/hicolor/scalable/apps/mgaonline.svg');
if ($state eq 'new_distribution') {
$bubble->add_action('upgrade', N("More Information"), sub { upgrade() });
if ($sub_state eq 'updates') {