[gnome-applets] window-title: move out icons from pixmaps



commit 16510e607313f996c1bf102f78e13a8420f3e269
Author: Balló György <ballogyor gmail com>
Date:   Fri Dec 28 15:51:59 2018 +0100

    window-title: move out icons from pixmaps
    
    Use /usr/share/icons directory to store icons for these applets.

 window-title/pixmaps/Makefile.am            |   2 +-
 window-title/pixmaps/windowtitle-applet.png | Bin 5198 -> 13265 bytes
 window-title/windowtitle.c                  |   4 +---
 window-title/windowtitle.h                  |   1 -
 4 files changed, 2 insertions(+), 5 deletions(-)
---
diff --git a/window-title/pixmaps/Makefile.am b/window-title/pixmaps/Makefile.am
index 1abd5e035..2b52edc8d 100644
--- a/window-title/pixmaps/Makefile.am
+++ b/window-title/pixmaps/Makefile.am
@@ -3,7 +3,7 @@ pixmaps_DATA = \
        windowtitle-applet.png
 
 pixmapsdir = \
-       $(datadir)/pixmaps
+       $(datadir)/icons/hicolor/72x72/apps
 
 EXTRA_DIST = \
        $(pixmaps_DATA)
diff --git a/window-title/pixmaps/windowtitle-applet.png b/window-title/pixmaps/windowtitle-applet.png
index 789fc4fd4..871be6e6f 100644
Binary files a/window-title/pixmaps/windowtitle-applet.png and b/window-title/pixmaps/windowtitle-applet.png 
differ
diff --git a/window-title/windowtitle.c b/window-title/windowtitle.c
index c3e7eda2d..8a6e231ef 100755
--- a/window-title/windowtitle.c
+++ b/window-title/windowtitle.c
@@ -171,8 +171,6 @@ static void about_cb (GSimpleAction *action, GVariant *parameter, gpointer user_
                NULL
        };
 
-       GdkPixbuf *logo = gdk_pixbuf_new_from_file (PATH_LOGO, NULL);
-
        gtk_show_about_dialog (NULL,
                "version",      VERSION,
                "comments",     N_("Window title for your GNOME Panel."),
@@ -181,7 +179,7 @@ static void about_cb (GSimpleAction *action, GVariant *parameter, gpointer user_
            "artists",  artists,
                "documenters",  documenters,
                "translator-credits",   ("translator-credits"),
-               "logo",         logo,
+               "logo-icon-name",       "windowtitle-applet",
            "website",  "http://www.gnome-look.org/content/show.php?content=103732";,
                "website-label", N_("Window Applets on Gnome-Look"),
                NULL);
diff --git a/window-title/windowtitle.h b/window-title/windowtitle.h
index 3bc491687..3b5562c27 100755
--- a/window-title/windowtitle.h
+++ b/window-title/windowtitle.h
@@ -49,7 +49,6 @@
 #define APPLET_OAFIID                                  "WindowTitleApplet"
 #define APPLET_OAFIID_FACTORY                  "WindowTitleAppletFactory"
 #define PATH_UI_PREFS                                  GTK_BUILDERDIR"/windowtitle.ui"
-#define PATH_LOGO                                              DATA_DIR"/pixmaps/windowtitle-applet.png"
 #define FILE_CONFIGFILE                                        ".windowtitle"
 #define ICON_WIDTH                                             16
 #define ICON_HEIGHT                                            16


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]