From 862e0b5f57f671fce0ea53cee9a02813122e20d6 Mon Sep 17 00:00:00 2001 From: Mohammed Sadiq Date: Wed, 20 Jan 2021 18:24:06 +0530 Subject: [PATCH] resources: Use standard icon path GtkApplication by default appends "icons" to the app id and add that to the icon search path. So let's just use that instead of adding custom one. This commit also fixes missing icon for "Add call" button in active call window --- src/calls-application.c | 4 ---- src/calls.gresources.xml | 2 ++ src/ui/call-display.ui | 2 +- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/src/calls-application.c b/src/calls-application.c index d4fa042..414faea 100644 --- a/src/calls-application.c +++ b/src/calls-application.c @@ -303,7 +303,6 @@ static void startup (GApplication *application) { g_autoptr(GtkCssProvider) provider = NULL; - GtkIconTheme *icon_theme; g_autoptr(GError) error = NULL; G_APPLICATION_CLASS (calls_application_parent_class)->startup (application); @@ -318,9 +317,6 @@ startup (GApplication *application) g_set_prgname (APP_ID); g_set_application_name (_("Calls")); - icon_theme = gtk_icon_theme_get_default (); - gtk_icon_theme_add_resource_path (icon_theme, "/sm/puri/calls/"); - g_action_map_add_action_entries (G_ACTION_MAP (application), actions, G_N_ELEMENTS (actions), diff --git a/src/calls.gresources.xml b/src/calls.gresources.xml index 1e4edbb..8ce1acd 100644 --- a/src/calls.gresources.xml +++ b/src/calls.gresources.xml @@ -15,6 +15,8 @@ style.css + + new-call-symbolic.svg call-arrow-incoming-symbolic.svg call-arrow-incoming-missed-symbolic.svg diff --git a/src/ui/call-display.ui b/src/ui/call-display.ui index 98b61a1..ad21c08 100644 --- a/src/ui/call-display.ui +++ b/src/ui/call-display.ui @@ -184,7 +184,7 @@ True False - /sm/puri/calls/new-call-symbolic.svg + new-call-symbolic 3 True