[libdazzle] suggestions: add support for null icons
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libdazzle] suggestions: add support for null icons
- Date: Mon, 4 Sep 2017 00:25:57 +0000 (UTC)
commit 4cf8605f9778f00a1231e643706b19aa4367d909
Author: Christian Hergert <chergert redhat com>
Date: Sun Sep 3 17:23:57 2017 -0700
suggestions: add support for null icons
data/themes/shared/shared-suggestions.css | 4 ++++
src/suggestions/dzl-suggestion-row.c | 4 +---
2 files changed, 5 insertions(+), 3 deletions(-)
---
diff --git a/data/themes/shared/shared-suggestions.css b/data/themes/shared/shared-suggestions.css
index 9fc2b29..a7fcc3a 100644
--- a/data/themes/shared/shared-suggestions.css
+++ b/data/themes/shared/shared-suggestions.css
@@ -44,3 +44,7 @@ dzlsuggestionpopover > revealer > box > elastic > scrolledwindow > viewport > li
border-bottom: none;
margin-bottom: 3px;
}
+
+dzlsuggestionpopover > revealer > box > elastic > scrolledwindow > viewport > list > row > box >
image:first-child {
+ min-width: 16px;
+}
diff --git a/src/suggestions/dzl-suggestion-row.c b/src/suggestions/dzl-suggestion-row.c
index 873dea6..8570ff1 100644
--- a/src/suggestions/dzl-suggestion-row.c
+++ b/src/suggestions/dzl-suggestion-row.c
@@ -66,10 +66,8 @@ dzl_suggestion_row_connect (DzlSuggestionRow *self)
g_return_if_fail (priv->suggestion != NULL);
icon_name = dzl_suggestion_get_icon_name (priv->suggestion);
- if (icon_name == NULL)
- icon_name = "web-browser-symbolic";
-
g_object_set (priv->image, "icon-name", icon_name, NULL);
+
gtk_label_set_label (priv->title, dzl_suggestion_get_title (priv->suggestion));
subtitle = dzl_suggestion_get_subtitle (priv->suggestion);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]