[gtranslator/merge-requests/61: 15/20] Add public function declaration for new re-written function from the gtr-search-bar.c in src/gtr-sea
- From: Daniel Garcia Moreno <danigm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtranslator/merge-requests/61: 15/20] Add public function declaration for new re-written function from the gtr-search-bar.c in src/gtr-sea
- Date: Fri, 14 Feb 2020 09:52:57 +0000 (UTC)
commit 0ab996205beacec741333aa1d94890931a989027
Author: Priyanka Saggu <priyankasggu11929 gmail com>
Date: Tue Feb 11 13:23:46 2020 +0530
Add public function declaration for new re-written function from the gtr-search-bar.c in
src/gtr-search-bar.h
src/gtr-search-bar.h | 55 ++++++++++++++++++++++++++++++++++++++++++++++++++--
1 file changed, 53 insertions(+), 2 deletions(-)
---
diff --git a/src/gtr-search-bar.h b/src/gtr-search-bar.h
index 2a62d766..3f6eb80d 100644
--- a/src/gtr-search-bar.h
+++ b/src/gtr-search-bar.h
@@ -7,9 +7,21 @@ G_BEGIN_DECLS
#define GTR_TYPE_SEARCH_BAR (gtr_search_bar_get_type())
-
G_DECLARE_FINAL_TYPE (GtrSearchBar, gtr_search_bar, GTR, SEARCH_BAR, DzlBin)
+enum
+{
+ GTR_SEARCH_BAR_FIND_RESPONSE = 100,
+ GTR_SEARCH_BAR_REPLACE_RESPONSE,
+ GTR_SEARCH_BAR_REPLACE_ALL_RESPONSE
+};
+
+typedef enum
+{
+ GTR_SEARCH_BAR_MSG_INFO,
+ GTR_SEARCH_BAR_MSG_ERROR
+} GtrSearchBarMsg;
+
GtkSearchEntry *gtr_search_bar_get_search (GtrSearchBar *self);
void gtr_search_bar_set_search (GtrSearchBar *self,
@@ -19,7 +31,46 @@ void gtr_search_bar_set_show_options (GtrSearchBar *self,
gboolean show_options);
gboolean gtr_search_bar_get_replace_mode (GtrSearchBar *self);
void gtr_search_bar_set_replace_mode (GtrSearchBar *self,
- gboolean replace_mode);
+ gboolean replace_mode);
+const gchar *gtr_search_bar_get_search_text (GtrSearchBar *dialog);
+void gtr_search_bar_set_search_text (GtrSearchBar *dialog,
+ const gchar *text);
+
+
+const gchar *gtr_search_bar_get_replace_text (GtrSearchBar *dialog);
+void gtr_search_bar_set_replace_text (GtrSearchBar *dialog,
+ const gchar *text);
+
+gboolean gtr_search_bar_get_original_text (GtrSearchBar *dialog);
+void gtr_search_bar_set_original_text (GtrSearchBar *dialog,
+ gboolean match_case);
+
+gboolean gtr_search_bar_get_translated_text (GtrSearchBar *dialog);
+void gtr_search_bar_set_translated_text (GtrSearchBar *dialog,
+ gboolean match_case);
+
+gboolean gtr_search_bar_get_match_case (GtrSearchBar *dialog);
+void gtr_search_bar_set_match_case (GtrSearchBar *dialog,
+ gboolean match_case);
+
+gboolean gtr_search_bar_get_entire_word (GtrSearchBar * dialog);
+void gtr_search_bar_set_entire_word (GtrSearchBar *dialog,
+ gboolean entire_word);
+
+gboolean gtr_search_bar_get_backwards (GtrSearchBar *dialog);
+void gtr_search_bar_set_backwards (GtrSearchBar *dialog,
+ gboolean backwards);
+
+gboolean gtr_search_bar_get_wrap_around (GtrSearchBar *dialog);
+void gtr_search_bar_set_wrap_around (GtrSearchBar *dialog,
+ gboolean wrap_around);
+
+void gtr_search_bar_show_message (GtrSearchBar *dialog,
+ char *message,
+ GtrSearchBarMsg info_type);
+
+void gtr_search_bar_present_with_time (GtrSearchBar * dialog,
+ guint32 timestamp);
G_END_DECLS
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]