[rhythmbox: 2/3] use RB_APP_ICON instead of hardcoding icon names



commit b2c73c7efe28eefb89388bfe3dd0bc55a91a0bf4
Author: crvi <crvisqr gmail com>
Date:   Thu Feb 20 18:39:23 2020 +0530

    use RB_APP_ICON instead of hardcoding icon names

 shell/main.c           | 3 ++-
 shell/rb-application.c | 2 +-
 2 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/shell/main.c b/shell/main.c
index 5060f6545..7170f29d5 100644
--- a/shell/main.c
+++ b/shell/main.c
@@ -45,6 +45,7 @@
 #include "rb-util.h"
 #include "rb-debug.h"
 #include "rb-application.h"
+#include "rb-stock-icons.h"
 
 int
 main (int argc, char **argv)
@@ -76,7 +77,7 @@ main (int argc, char **argv)
 #endif
 
        g_set_application_name (_("Rhythmbox"));
-       gtk_window_set_default_icon_name ("rhythmbox");
+       gtk_window_set_default_icon_name (RB_APP_ICON);
 
 #if defined(USE_UNINSTALLED_DIRS)
        g_irepository_prepend_search_path (SHARE_UNINSTALLED_BUILDDIR "/../bindings/gi");
diff --git a/shell/rb-application.c b/shell/rb-application.c
index 37afb36fb..8492bb03b 100644
--- a/shell/rb-application.c
+++ b/shell/rb-application.c
@@ -205,7 +205,7 @@ about_action_cb (GSimpleAction *action, GVariant *parameters, gpointer user_data
                               "authors", (const char **) authors,
                               "documenters", (const char **) documenters,
                               "translator-credits", strcmp (translator_credits, "translator-credits") != 0 ? 
translator_credits : NULL,
-                              "logo-icon-name", "org.gnome.Rhythmbox",
+                              "logo-icon-name", RB_APP_ICON,
                               NULL);
        g_string_free (comment, TRUE);
        g_free (license_trans);


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