[gnome-todo] provider-row: Remove pan-down arrow



commit d8cef610b4df59c21821d0cddf9b595a6d4d27fd
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date:   Tue May 22 20:29:59 2018 -0300

    provider-row: Remove pan-down arrow
    
    It doesn't have any menu, so it is misleading to have that arrow
    there.

 data/ui/sidebar-provider-row.ui        | 8 ++------
 src/sidebar/gtd-sidebar-provider-row.c | 2 +-
 2 files changed, 3 insertions(+), 7 deletions(-)
---
diff --git a/data/ui/sidebar-provider-row.ui b/data/ui/sidebar-provider-row.ui
index e008dcb..1d9b8c5 100644
--- a/data/ui/sidebar-provider-row.ui
+++ b/data/ui/sidebar-provider-row.ui
@@ -62,16 +62,12 @@
 
                 <!-- Drop down icon -->
                 <child>
-                  <object class="GtkImage">
+                  <object class="GtkBox">
                     <property name="visible">True</property>
                     <property name="can_focus">False</property>
-                    <property name="icon_name">pan-down-symbolic</property>
-                    <style>
-                      <class name="dim-label"/>
-                    </style>
                   </object>
                   <packing>
-                    <property name="name">icon</property>
+                    <property name="name">empty</property>
                   </packing>
                 </child>
 
diff --git a/src/sidebar/gtd-sidebar-provider-row.c b/src/sidebar/gtd-sidebar-provider-row.c
index 68f022f..1ab5c36 100644
--- a/src/sidebar/gtd-sidebar-provider-row.c
+++ b/src/sidebar/gtd-sidebar-provider-row.c
@@ -113,7 +113,7 @@ update_loading_state (GtdSidebarProviderRow *self)
   is_loading = gtd_object_get_loading (GTD_OBJECT (self->provider));
   has_lists = lists != NULL;
 
-  gtk_stack_set_visible_child_name (self->stack, is_loading ? "spinner" : "icon");
+  gtk_stack_set_visible_child_name (self->stack, is_loading ? "spinner" : "empty");
   gtk_widget_set_visible (self->loading_label, is_loading && !has_lists);
 }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]