[Xfce4-commits] [xfce/xfce4-session] 01/01: Improve icon matching in "Current Session" tab
noreply at xfce.org
noreply at xfce.org
Mon May 13 22:39:10 CEST 2019
This is an automated email from the git hooks/post-receive script.
o c h o s i p u s h e d a c o m m i t t o b r a n c h m a s t e r
in repository xfce/xfce4-session.
commit 9e3e2131a00949fc8c81817bbcc4ae992e4f0576
Author: Simon Steinbeiss <simon.steinbeiss at elfenbeinturm.at>
Date: Mon May 13 22:38:54 2019 +0200
Improve icon matching in "Current Session" tab
---
settings/session-editor.c | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
diff --git a/settings/session-editor.c b/settings/session-editor.c
index c1218dd..0dd756f 100644
--- a/settings/session-editor.c
+++ b/settings/session-editor.c
@@ -551,9 +551,15 @@ manager_client_registered(XfsmManager *proxy,
COL_PID, pid,
-1);
- if(desktop_file != NULL)
+ if (desktop_file != NULL)
{
- session_editor_set_from_desktop_file(model, &iter, desktop_file);
+ session_editor_set_from_desktop_file (model, &iter, desktop_file);
+ }
+ else if (gtk_icon_theme_has_icon (gtk_icon_theme_get_default (), name))
+ {
+ gtk_list_store_set (GTK_LIST_STORE (model), &iter,
+ COL_ICON_NAME, name,
+ -1);
}
path = gtk_tree_model_get_path(model, &iter);
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list