[gtranslator: 5/10] search-bar: Remove unused search member
- From: Daniel Garcia Moreno <danigm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtranslator: 5/10] search-bar: Remove unused search member
- Date: Mon, 21 Mar 2022 07:03:15 +0000 (UTC)
commit 99a386bef0803c1de5beeb5faac270fe985fa887
Author: Maximiliano Sandoval R <msandova gnome org>
Date: Tue Mar 15 23:05:26 2022 +0100
search-bar: Remove unused search member
Note that it was blocking the unescape.
src/gtr-search-bar.c | 13 +------------
1 file changed, 1 insertion(+), 12 deletions(-)
---
diff --git a/src/gtr-search-bar.c b/src/gtr-search-bar.c
index 2dfbcfe0..42f4ad69 100644
--- a/src/gtr-search-bar.c
+++ b/src/gtr-search-bar.c
@@ -33,7 +33,6 @@ struct _GtrSearchBar
GtkBin parent_instance;
GBindingGroup *search_bindings;
- GtkSearchEntry *search;
GObject *search_entry_tag;
@@ -397,8 +396,7 @@ maybe_escape_regex (GBinding *binding,
{
g_autofree gchar *unescaped = NULL;
- if (self->search != NULL)
- entry_text = unescaped = gtk_source_utils_unescape_search_text (entry_text);
+ entry_text = unescaped = gtk_source_utils_unescape_search_text (entry_text);
g_value_set_string (to_value, entry_text);
}
@@ -457,7 +455,6 @@ gtr_search_bar_destroy (GtkWidget *widget)
GtrSearchBar *self = (GtrSearchBar *)widget;
g_clear_object (&self->search_bindings);
- g_clear_object (&self->search);
g_clear_object (&self->search_entry_tag);
GTK_WIDGET_CLASS (gtr_search_bar_parent_class)->destroy (widget);
@@ -682,14 +679,6 @@ gtr_search_bar_init (GtrSearchBar *self)
self);
}
-GtkSearchEntry *
-gtr_search_bar_get_search (GtrSearchBar *self)
-{
- g_return_val_if_fail (GTR_IS_SEARCH_BAR (self), NULL);
-
- return self->search;
-}
-
void
gtr_search_bar_set_found (GtrSearchBar *self,
gboolean found)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]