[gnome-calendar] window: remove list button from search bar



commit 469999cd9683d3620bbd3399050c68b808bddebd
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date:   Wed Jan 7 19:13:42 2015 -0200

    window: remove list button from search bar
    
    We won't be using is for now, and it causes a lot of confusion. Also, the behavior is quite broken.

 data/ui/window.ui |   19 -------------------
 src/gcal-window.c |    4 ----
 2 files changed, 0 insertions(+), 23 deletions(-)
---
diff --git a/data/ui/window.ui b/data/ui/window.ui
index d2f7294..45d0b95 100644
--- a/data/ui/window.ui
+++ b/data/ui/window.ui
@@ -33,9 +33,6 @@
                   <object class="GtkBox" id="search_entry_box">
                     <property name="visible">True</property>
                     <property name="can_focus">False</property>
-                    <style>
-                      <class name="linked" />
-                    </style>
                     <child>
                       <object class="GtkSearchEntry" id="search_entry">
                         <property name="width_request">500</property>
@@ -52,22 +49,6 @@
                         <property name="position">0</property>
                       </packing>
                     </child>
-                    <child>
-                      <object class="GtkToggleButton" id="search_list_button">
-                        <property name="visible">True</property>
-                        <property name="can_focus">False</property>
-                        <child>
-                          <object class="GtkImage" id="search_list_image">
-                            <property name="visible">True</property>
-                            <property name="can_focus">False</property>
-                            <property name="icon_name">open-menu-symbolic</property>
-                          </object>
-                        </child>
-                      </object>
-                      <packing>
-                        <property name="position">1</property>
-                      </packing>
-                    </child>
                   </object>
                 </child>
               </object>
diff --git a/src/gcal-window.c b/src/gcal-window.c
index 09a3949..9b7d465 100644
--- a/src/gcal-window.c
+++ b/src/gcal-window.c
@@ -73,7 +73,6 @@ typedef struct
   GtkWidget           *today_button;
   GtkWidget           *forward_button;
   GtkWidget           *views_switcher;
-  GtkWidget           *search_list_button;
 
   /* new event popover widgets */
   GtkWidget           *popover;
@@ -1209,7 +1208,6 @@ gcal_window_class_init(GcalWindowClass *klass)
   gtk_widget_class_bind_template_child_private (widget_class, GcalWindow, search_button);
   gtk_widget_class_bind_template_child_private (widget_class, GcalWindow, calendars_button);
   gtk_widget_class_bind_template_child_private (widget_class, GcalWindow, search_entry);
-  gtk_widget_class_bind_template_child_private (widget_class, GcalWindow, search_list_button);
   gtk_widget_class_bind_template_child_private (widget_class, GcalWindow, back_button);
   gtk_widget_class_bind_template_child_private (widget_class, GcalWindow, today_button);
   gtk_widget_class_bind_template_child_private (widget_class, GcalWindow, forward_button);
@@ -1343,8 +1341,6 @@ gcal_window_constructed (GObject *object)
                           G_BINDING_DEFAULT | G_BINDING_SYNC_CREATE);
   g_object_bind_property (GTK_TOGGLE_BUTTON (priv->search_button), "active", 
priv->views[GCAL_WINDOW_VIEW_SEARCH],
                           "visible", G_BINDING_DEFAULT);
-  g_object_bind_property (priv->views[GCAL_WINDOW_VIEW_SEARCH], "visible",
-                          GTK_TOGGLE_BUTTON (priv->search_list_button), "active", G_BINDING_DEFAULT);
 
   /* signals connection/handling */
   /* HACK to ensure proper destroy of search-view widget */


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