1
0
Fork 0
mirror of https://gitlab.gnome.org/GNOME/calls.git synced 2024-12-12 15:47:35 +00:00

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
This commit is contained in:
Mohammed Sadiq 2021-01-20 18:24:06 +05:30 committed by Evangelos Ribeiro Tzaras
parent dc0242eda5
commit 862e0b5f57
3 changed files with 3 additions and 5 deletions

View file

@ -303,7 +303,6 @@ static void
startup (GApplication *application) startup (GApplication *application)
{ {
g_autoptr(GtkCssProvider) provider = NULL; g_autoptr(GtkCssProvider) provider = NULL;
GtkIconTheme *icon_theme;
g_autoptr(GError) error = NULL; g_autoptr(GError) error = NULL;
G_APPLICATION_CLASS (calls_application_parent_class)->startup (application); G_APPLICATION_CLASS (calls_application_parent_class)->startup (application);
@ -318,9 +317,6 @@ startup (GApplication *application)
g_set_prgname (APP_ID); g_set_prgname (APP_ID);
g_set_application_name (_("Calls")); 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), g_action_map_add_action_entries (G_ACTION_MAP (application),
actions, actions,
G_N_ELEMENTS (actions), G_N_ELEMENTS (actions),

View file

@ -15,6 +15,8 @@
</gresource> </gresource>
<gresource prefix="/sm/puri/calls/"> <gresource prefix="/sm/puri/calls/">
<file>style.css</file> <file>style.css</file>
</gresource>
<gresource prefix="/sm/puri/Calls/icons/">
<file>new-call-symbolic.svg</file> <file>new-call-symbolic.svg</file>
<file>call-arrow-incoming-symbolic.svg</file> <file>call-arrow-incoming-symbolic.svg</file>
<file>call-arrow-incoming-missed-symbolic.svg</file> <file>call-arrow-incoming-missed-symbolic.svg</file>

View file

@ -184,7 +184,7 @@
<object class="GtkImage"> <object class="GtkImage">
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">False</property> <property name="can_focus">False</property>
<property name="resource">/sm/puri/calls/new-call-symbolic.svg</property> <property name="icon_name">new-call-symbolic</property>
<property name="icon_size">3</property> <property name="icon_size">3</property>
<property name="vexpand">True</property> <property name="vexpand">True</property>
</object> </object>