[gnome-software: 1/2] application: Set the icon theme resource path




commit 71ee9b3c8b996a1bdf5b256a9c77ba3400190b23
Author: Adrien Plazas <kekun plazas laposte net>
Date:   Wed Jun 30 11:26:43 2021 +0000

    application: Set the icon theme resource path

 src/gs-application.c | 7 +++++++
 1 file changed, 7 insertions(+)
---
diff --git a/src/gs-application.c b/src/gs-application.c
index 5d58e9431..76979c38d 100644
--- a/src/gs-application.c
+++ b/src/gs-application.c
@@ -1024,6 +1024,13 @@ gs_application_constructed (GObject *object)
 
        G_OBJECT_CLASS (gs_application_parent_class)->constructed (object);
 
+       /* This is needed when the the application's ID isn't
+        * org.gnome.Software, e.g. for the development profile (when
+        * `BUILD_PROFILE` is defined). Without this, icon resources can't
+        * be loaded appropriately. */
+       g_application_set_resource_base_path (G_APPLICATION (self),
+                                             "/org/gnome/Software");
+
        /* Check on our construct-only properties */
        g_assert (self->debug != NULL);
 }


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