diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2017-03-04 13:21:28 +0100 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2017-03-04 13:21:28 +0100 |
commit | 0faef1449d6718b06b5dc1c2d43de86e91e867a5 (patch) | |
tree | d88a0ae4fcdef89ae4ef0b162e657a7fb29ccc93 | |
parent | 2f4ecf3b6acad46a30c0fa73e58b34291f3e7322 (diff) | |
download | mgaonline-0faef1449d6718b06b5dc1c2d43de86e91e867a5.tar mgaonline-0faef1449d6718b06b5dc1c2d43de86e91e867a5.tar.gz mgaonline-0faef1449d6718b06b5dc1c2d43de86e91e867a5.tar.bz2 mgaonline-0faef1449d6718b06b5dc1c2d43de86e91e867a5.tar.xz mgaonline-0faef1449d6718b06b5dc1c2d43de86e91e867a5.zip |
Move icons to hicolor theme (WIP)
The transition is not complete, mgaapplet still needs fixed to lookup the icons
in the theme paths and no in a hardcoded /usr/share/mgaonline
-rw-r--r-- | Makefile | 9 | ||||
-rw-r--r-- | icons/hicolor/16x16/apps/mgaonline.png (renamed from icons/mgaonline16.png) | bin | 625 -> 625 bytes | |||
-rw-r--r-- | icons/hicolor/32x32/apps/mgaonline.png (renamed from icons/mgaonline32.png) | bin | 1327 -> 1327 bytes | |||
-rw-r--r-- | icons/hicolor/48x48/apps/mgaonline.png (renamed from icons/mgaonline48.png) | bin | 2099 -> 2099 bytes | |||
-rw-r--r-- | icons/hicolor/scalable/actions/mgaonline-bugfix.svg (renamed from data/icons/bugfix.svg) | 0 | ||||
-rw-r--r-- | icons/hicolor/scalable/actions/mgaonline-bundle.svg (renamed from data/icons/bundle.svg) | 0 | ||||
-rw-r--r-- | icons/hicolor/scalable/actions/mgaonline-busy.svg (renamed from data/icons/busy.svg) | 0 | ||||
-rw-r--r-- | icons/hicolor/scalable/actions/mgaonline-disabled.svg (renamed from data/icons/disabled.svg) | 0 | ||||
-rw-r--r-- | icons/hicolor/scalable/actions/mgaonline-disconnect.svg (renamed from data/icons/disconnect.svg) | 0 | ||||
-rw-r--r-- | icons/hicolor/scalable/actions/mgaonline-noconf.svg (renamed from data/icons/noconf.svg) | 0 | ||||
-rw-r--r-- | icons/hicolor/scalable/actions/mgaonline-okay.svg (renamed from data/icons/okay.svg) | 0 | ||||
-rw-r--r-- | icons/hicolor/scalable/actions/mgaonline-updates.svg (renamed from data/icons/updates.svg) | 0 | ||||
-rw-r--r-- | icons/hicolor/scalable/apps/mgaonline.svg (renamed from icons/mgaonline.svg) | 0 | ||||
-rwxr-xr-x | mgaapplet | 1 | ||||
-rwxr-xr-x | mgaapplet-upgrade-helper | 1 | ||||
-rw-r--r-- | mgaapplet_gui.pm | 2 |
16 files changed, 3 insertions, 10 deletions
@@ -7,7 +7,6 @@ SUBDIRS = po polkit PREFIX = / DATADIR = $(PREFIX)/usr/share -PKGDATADIR = $(DATADIR)/$(NAME) ICONSDIR = $(DATADIR)/icons LIBEXECDIR = $(PREFIX)/usr/libexec BINDIR = $(PREFIX)/usr/bin @@ -30,18 +29,14 @@ clean: find . -name '*~' | xargs rm -f install: all - install -d $(PREFIX)/usr/{bin,libexec,share/{mime/packages,$(NAME)/icons,autostart,gnome/autostart,icons},lib/libDrakX/drakfirsttime} + install -d $(PREFIX)/usr/{bin,libexec,share/{mime/packages,autostart,gnome/autostart,icons},lib/libDrakX/drakfirsttime} install -m755 $(MGAUPDATE) $(MGAAPPLET)-config $(MGAAPPLET)-upgrade-helper $(LIBEXECDIR) install -m755 $(MGAAPPLET) $(MGAAPPLET)-update-checker $(BINDIR) install -d $(SYSCONFDIR) install -m644 mgaapplet.conf $(SYSCONFDIR)/mgaapplet - install -D -m644 icons/$(NAME)16.png $(ICONSDIR)/hicolor/16x16/apps/$(NAME).png - install -D -m644 icons/$(NAME)32.png $(ICONSDIR)/hicolor/32x32/apps/$(NAME).png - install -D -m644 icons/$(NAME)48.png $(ICONSDIR)/hicolor/48x48/apps/$(NAME).png - install -D -m644 icons/$(NAME).svg $(ICONSDIR)/hicolor/scalable/apps/$(NAME).png + cp -a icons/hicolor $(ICONSDIR) # Compat symlink, to be sure we don't break external apps relying on this icon ln -s $(ICONSDIR)/hicolor/32x32/apps/$(NAME).png $(ICONSDIR)/$(NAME).png - install -m644 data/icons/*.svg $(PKGDATADIR)/icons perl -pi -e "s/version = 1/version = '$(VERSION)'/" mgaonline.pm install -m644 mgaonline.pm $(FBLIBDIR) install -m644 mgaapplet.pm $(FBLIBDIR) diff --git a/icons/mgaonline16.png b/icons/hicolor/16x16/apps/mgaonline.png Binary files differindex 1e376758..1e376758 100644 --- a/icons/mgaonline16.png +++ b/icons/hicolor/16x16/apps/mgaonline.png diff --git a/icons/mgaonline32.png b/icons/hicolor/32x32/apps/mgaonline.png Binary files differindex 5dabbcab..5dabbcab 100644 --- a/icons/mgaonline32.png +++ b/icons/hicolor/32x32/apps/mgaonline.png diff --git a/icons/mgaonline48.png b/icons/hicolor/48x48/apps/mgaonline.png Binary files differindex bb9df771..bb9df771 100644 --- a/icons/mgaonline48.png +++ b/icons/hicolor/48x48/apps/mgaonline.png diff --git a/data/icons/bugfix.svg b/icons/hicolor/scalable/actions/mgaonline-bugfix.svg index 760d3e8c..760d3e8c 100644 --- a/data/icons/bugfix.svg +++ b/icons/hicolor/scalable/actions/mgaonline-bugfix.svg diff --git a/data/icons/bundle.svg b/icons/hicolor/scalable/actions/mgaonline-bundle.svg index 55c703df..55c703df 100644 --- a/data/icons/bundle.svg +++ b/icons/hicolor/scalable/actions/mgaonline-bundle.svg diff --git a/data/icons/busy.svg b/icons/hicolor/scalable/actions/mgaonline-busy.svg index 02591187..02591187 100644 --- a/data/icons/busy.svg +++ b/icons/hicolor/scalable/actions/mgaonline-busy.svg diff --git a/data/icons/disabled.svg b/icons/hicolor/scalable/actions/mgaonline-disabled.svg index 8453f8fb..8453f8fb 100644 --- a/data/icons/disabled.svg +++ b/icons/hicolor/scalable/actions/mgaonline-disabled.svg diff --git a/data/icons/disconnect.svg b/icons/hicolor/scalable/actions/mgaonline-disconnect.svg index a904ea83..a904ea83 100644 --- a/data/icons/disconnect.svg +++ b/icons/hicolor/scalable/actions/mgaonline-disconnect.svg diff --git a/data/icons/noconf.svg b/icons/hicolor/scalable/actions/mgaonline-noconf.svg index e0209c03..e0209c03 100644 --- a/data/icons/noconf.svg +++ b/icons/hicolor/scalable/actions/mgaonline-noconf.svg diff --git a/data/icons/okay.svg b/icons/hicolor/scalable/actions/mgaonline-okay.svg index 9a16755d..9a16755d 100644 --- a/data/icons/okay.svg +++ b/icons/hicolor/scalable/actions/mgaonline-okay.svg diff --git a/data/icons/updates.svg b/icons/hicolor/scalable/actions/mgaonline-updates.svg index 519c2aaa..519c2aaa 100644 --- a/data/icons/updates.svg +++ b/icons/hicolor/scalable/actions/mgaonline-updates.svg diff --git a/icons/mgaonline.svg b/icons/hicolor/scalable/apps/mgaonline.svg index 71ec37ae..71ec37ae 100644 --- a/icons/mgaonline.svg +++ b/icons/hicolor/scalable/apps/mgaonline.svg @@ -42,6 +42,7 @@ use Net::DBus qw(:typing); use Rpmdrake::open_db; use Glib::Object::Introspection; +# FIXME: Icon lookup should be done in hicolor theme use constant IMAGE_FOLDER => '/usr/share/mgaonline/icons/'; Glib::Object::Introspection->setup( diff --git a/mgaapplet-upgrade-helper b/mgaapplet-upgrade-helper index 24d35104..9a6d516a 100755 --- a/mgaapplet-upgrade-helper +++ b/mgaapplet-upgrade-helper @@ -41,7 +41,6 @@ use Rpmdrake::open_db; use lang; use mgaapplet_gui qw(run_ask_credentials_dialog); -ugtk3::add_icon_path("/usr/share/mgaonline/icons/"); my ($log_file); my ($new_distro_version, $download_dir); diff --git a/mgaapplet_gui.pm b/mgaapplet_gui.pm index 11190453..75e09fca 100644 --- a/mgaapplet_gui.pm +++ b/mgaapplet_gui.pm @@ -53,8 +53,6 @@ use interactive; use interactive::gtk; use lib qw(/usr/lib/libDrakX/drakfirsttime); -ugtk3::add_icon_path("/usr/share/mgaonline/icons/"); - our $localdir = "$ENV{HOME}/.MgaOnline"; our $localfile = "$localdir/mgaonline"; |