[gupnp-tools/wip/search] av-cp: Fix icon for conainers
- From: Jens Georg <jensgeorg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gupnp-tools/wip/search] av-cp: Fix icon for conainers
- Date: Fri, 19 Aug 2016 03:53:35 +0000 (UTC)
commit 3ae31e803b81cd419645442fe0a4c44540d731cc
Author: Jens Georg <mail jensge org>
Date: Thu Aug 18 20:17:21 2016 +0200
av-cp: Fix icon for conainers
Signed-off-by: Jens Georg <mail jensge org>
src/av-cp/search-dialog.c | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/src/av-cp/search-dialog.c b/src/av-cp/search-dialog.c
index 74a9c29..301dc0a 100644
--- a/src/av-cp/search-dialog.c
+++ b/src/av-cp/search-dialog.c
@@ -271,6 +271,7 @@ search_task_run (SearchTask *task) {
#define ITEM_CLASS_AUDIO "object.item.audioItem"
#define ITEM_CLASS_VIDEO "object.item.videoItem"
#define ITEM_CLASS_TEXT "object.item.textItem"
+#define CONTAINER_CLASS "object.container"
static GdkPixbuf *
get_item_icon (GUPnPDIDLLiteObject *object)
@@ -285,15 +286,14 @@ get_item_icon (GUPnPDIDLLiteObject *object)
if (g_str_has_prefix (class_name, ITEM_CLASS_IMAGE)) {
icon = get_icon_by_id (ICON_IMAGE_ITEM);
- } else if (g_str_has_prefix (class_name,
- ITEM_CLASS_AUDIO)) {
+ } else if (g_str_has_prefix (class_name, ITEM_CLASS_AUDIO)) {
icon = get_icon_by_id (ICON_AUDIO_ITEM);
- } else if (g_str_has_prefix (class_name,
- ITEM_CLASS_VIDEO)) {
+ } else if (g_str_has_prefix (class_name, ITEM_CLASS_VIDEO)) {
icon = get_icon_by_id (ICON_VIDEO_ITEM);
- } else if (g_str_has_prefix (class_name,
- ITEM_CLASS_TEXT)) {
+ } else if (g_str_has_prefix (class_name, ITEM_CLASS_TEXT)) {
icon = get_icon_by_id (ICON_TEXT_ITEM);
+ } else if (g_str_has_prefix (class_name, CONTAINER_CLASS) ){
+ icon = get_icon_by_id (ICON_CONTAINER);
} else {
icon = get_icon_by_id (ICON_FILE);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]