[gtranslator: 12/20] search-bar: Remove more redundant API
- From: Daniel Garcia Moreno <danigm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtranslator: 12/20] search-bar: Remove more redundant API
- Date: Sun, 6 Mar 2022 12:34:49 +0000 (UTC)
commit ecfb39cf972ab4a3459750831d9de737f0e9fdbc
Author: Maximiliano Sandoval R <msandova gnome org>
Date: Sat Mar 5 14:46:54 2022 +0100
search-bar: Remove more redundant API
This api didn't do anything and it was causing critical errors.
src/gtr-actions-search.c | 2 --
src/gtr-search-bar.c | 22 ----------------------
2 files changed, 24 deletions(-)
---
diff --git a/src/gtr-actions-search.c b/src/gtr-actions-search.c
index 0c2f0c79..f05934b2 100644
--- a/src/gtr-actions-search.c
+++ b/src/gtr-actions-search.c
@@ -78,7 +78,6 @@ last_search_data_set (LastSearchData * data, GtrSearchBar * dialog)
data->translated_text = gtr_search_bar_get_translated_text (dialog);
data->match_case = gtr_search_bar_get_match_case (dialog);
data->entire_word = gtr_search_bar_get_entire_word (dialog);
- data->backwards = gtr_search_bar_get_backwards (dialog);
data->wrap_around = gtr_search_bar_get_wrap_around (dialog);
}
@@ -106,7 +105,6 @@ search_bar_set_last_options (GtrSearchBar * dialog,
gtr_search_bar_set_translated_text (dialog, data->translated_text);
gtr_search_bar_set_match_case (dialog, data->match_case);
gtr_search_bar_set_entire_word (dialog, data->entire_word);
- gtr_search_bar_set_backwards (dialog, data->backwards);
gtr_search_bar_set_wrap_around (dialog, data->wrap_around);
}
diff --git a/src/gtr-search-bar.c b/src/gtr-search-bar.c
index 8bfd9809..2721c450 100644
--- a/src/gtr-search-bar.c
+++ b/src/gtr-search-bar.c
@@ -206,28 +206,6 @@ gtr_search_bar_get_entire_word (GtrSearchBar *dialog)
(dialog->whole_word));
}
-void
-gtr_search_bar_set_backwards (GtrSearchBar *dialog, gboolean backwards)
-{
-
- g_return_if_fail (GTR_IS_SEARCH_BAR (dialog));
-
- gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON
- (dialog->previous_button),
- backwards);
-}
-
-gboolean
-gtr_search_bar_get_backwards (GtrSearchBar *dialog)
-{
-
- g_return_val_if_fail (GTR_IS_SEARCH_BAR (dialog), FALSE);
-
- return
- gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON
- (dialog->previous_button));
-}
-
void
gtr_search_bar_set_wrap_around (GtrSearchBar *dialog,
gboolean wrap_around)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]