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.
This commit is contained in:
committed by
Erick Pérez Castellanos
parent
a458a7fb52
commit
469999cd96
@@ -33,9 +33,6 @@
|
|||||||
<object class="GtkBox" id="search_entry_box">
|
<object class="GtkBox" id="search_entry_box">
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="can_focus">False</property>
|
<property name="can_focus">False</property>
|
||||||
<style>
|
|
||||||
<class name="linked" />
|
|
||||||
</style>
|
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkSearchEntry" id="search_entry">
|
<object class="GtkSearchEntry" id="search_entry">
|
||||||
<property name="width_request">500</property>
|
<property name="width_request">500</property>
|
||||||
@@ -52,22 +49,6 @@
|
|||||||
<property name="position">0</property>
|
<property name="position">0</property>
|
||||||
</packing>
|
</packing>
|
||||||
</child>
|
</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>
|
</object>
|
||||||
</child>
|
</child>
|
||||||
</object>
|
</object>
|
||||||
|
|||||||
@@ -73,7 +73,6 @@ typedef struct
|
|||||||
GtkWidget *today_button;
|
GtkWidget *today_button;
|
||||||
GtkWidget *forward_button;
|
GtkWidget *forward_button;
|
||||||
GtkWidget *views_switcher;
|
GtkWidget *views_switcher;
|
||||||
GtkWidget *search_list_button;
|
|
||||||
|
|
||||||
/* new event popover widgets */
|
/* new event popover widgets */
|
||||||
GtkWidget *popover;
|
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, search_button);
|
||||||
gtk_widget_class_bind_template_child_private (widget_class, GcalWindow, calendars_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_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, back_button);
|
||||||
gtk_widget_class_bind_template_child_private (widget_class, GcalWindow, today_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);
|
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_BINDING_DEFAULT | G_BINDING_SYNC_CREATE);
|
||||||
g_object_bind_property (GTK_TOGGLE_BUTTON (priv->search_button), "active", priv->views[GCAL_WINDOW_VIEW_SEARCH],
|
g_object_bind_property (GTK_TOGGLE_BUTTON (priv->search_button), "active", priv->views[GCAL_WINDOW_VIEW_SEARCH],
|
||||||
"visible", G_BINDING_DEFAULT);
|
"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 */
|
/* signals connection/handling */
|
||||||
/* HACK to ensure proper destroy of search-view widget */
|
/* HACK to ensure proper destroy of search-view widget */
|
||||||
|
|||||||
Reference in New Issue
Block a user