[gnome-control-center/gbsneto/search-applications: 3/4] applications: Add a placeholder widget for the sidebar list
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center/gbsneto/search-applications: 3/4] applications: Add a placeholder widget for the sidebar list
- Date: Mon, 1 Apr 2019 21:32:13 +0000 (UTC)
commit 66941ab9fb36d62f12ce7b3503039e32fc7098dc
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Fri Mar 29 19:58:19 2019 -0300
applications: Add a placeholder widget for the sidebar list
So we keep it consistent with other lists that allow filtering,
such as the main panel list itself.
panels/applications/cc-applications-panel.ui | 47 ++++++++++++++++++++++++++++
1 file changed, 47 insertions(+)
---
diff --git a/panels/applications/cc-applications-panel.ui b/panels/applications/cc-applications-panel.ui
index ea0bca9de..a73f08c9b 100644
--- a/panels/applications/cc-applications-panel.ui
+++ b/panels/applications/cc-applications-panel.ui
@@ -432,7 +432,54 @@
<child>
<object class="GtkListBox" id="sidebar_listbox">
<property name="visible">True</property>
+ <property name="vexpand">True</property>
<property name="selection-mode">browse</property>
+
+ <child type="placeholder">
+ <object class="GtkBox" id="empty_search_placeholder">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="halign">center</property>
+ <property name="valign">center</property>
+ <property name="expand">True</property>
+ <property name="border_width">18</property>
+ <property name="orientation">vertical</property>
+ <property name="spacing">6</property>
+ <child>
+ <object class="GtkImage">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="pixel_size">64</property>
+ <property name="icon_name">edit-find-symbolic</property>
+ <style>
+ <class name="dim-label"/>
+ </style>
+ </object>
+ </child>
+ <child>
+ <object class="GtkLabel">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="label" translatable="yes">No results found</property>
+ <attributes>
+ <attribute name="weight" value="bold"/>
+ <attribute name="scale" value="1.44"/>
+ </attributes>
+ </object>
+ </child>
+ <child>
+ <object class="GtkLabel">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="label" translatable="yes">Try a different search</property>
+ <style>
+ <class name="dim-label"/>
+ </style>
+ </object>
+ </child>
+ </object>
+ </child>
+
</object>
</child>
</object>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]