[gnome-builder/wip/chergert/layout] editor: remove close button from search bar
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/wip/chergert/layout] editor: remove close button from search bar
- Date: Wed, 12 Jul 2017 08:23:22 +0000 (UTC)
commit 0972e65371b4be25ecd65ba541066b5575ecbe01
Author: Christian Hergert <chergert redhat com>
Date: Wed Jul 12 01:22:34 2017 -0700
editor: remove close button from search bar
Clicking outside the search bar into the document area will
dismiss the search bar. So there is no need to have a close
button too.
libide/editor/ide-editor-search-bar.c | 2 --
libide/editor/ide-editor-search-bar.ui | 22 ----------------------
2 files changed, 0 insertions(+), 24 deletions(-)
---
diff --git a/libide/editor/ide-editor-search-bar.c b/libide/editor/ide-editor-search-bar.c
index 7b7b42b..56f6839 100644
--- a/libide/editor/ide-editor-search-bar.c
+++ b/libide/editor/ide-editor-search-bar.c
@@ -39,7 +39,6 @@ struct _IdeEditorSearchBar
/* Template widgets */
GtkCheckButton *case_sensitive;
- GtkButton *close_button;
GtkButton *replace_all_button;
GtkButton *replace_button;
GtkSearchEntry *replace_entry;
@@ -640,7 +639,6 @@ ide_editor_search_bar_class_init (IdeEditorSearchBarClass *klass)
gtk_widget_class_set_template_from_resource (widget_class,
"/org/gnome/builder/ui/ide-editor-search-bar.ui");
gtk_widget_class_bind_template_child (widget_class, IdeEditorSearchBar, case_sensitive);
- gtk_widget_class_bind_template_child (widget_class, IdeEditorSearchBar, close_button);
gtk_widget_class_bind_template_child (widget_class, IdeEditorSearchBar, replace_all_button);
gtk_widget_class_bind_template_child (widget_class, IdeEditorSearchBar, replace_button);
gtk_widget_class_bind_template_child (widget_class, IdeEditorSearchBar, replace_entry);
diff --git a/libide/editor/ide-editor-search-bar.ui b/libide/editor/ide-editor-search-bar.ui
index cca5f73..c11f9fb 100644
--- a/libide/editor/ide-editor-search-bar.ui
+++ b/libide/editor/ide-editor-search-bar.ui
@@ -187,28 +187,6 @@
<property name="top_attach">0</property>
</packing>
</child>
- <child>
- <object class="GtkButton" id="close_button">
- <property name="visible">true</property>
- <property name="action-name">editor-view.hide-search</property>
- <property name="halign">center</property>
- <property name="valign">center</property>
- <property name="focus_on_click">false</property>
- <style>
- <class name="close"/>
- </style>
- <child>
- <object class="GtkImage">
- <property name="visible">true</property>
- <property name="icon_name">window-close-symbolic</property>
- </object>
- </child>
- </object>
- <packing>
- <property name="left_attach">4</property>
- <property name="top_attach">0</property>
- </packing>
- </child>
</object>
<packing>
<property name="expand">false</property>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]