[gtk+/wip/matthiasc/emoji-picker: 588/593] Export some entry functions privately
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/matthiasc/emoji-picker: 588/593] Export some entry functions privately
- Date: Sun, 19 Nov 2017 03:45:40 +0000 (UTC)
commit dcde86f4cab6e33f7403190c32db69082590b8ca
Author: Matthias Clasen <mclasen redhat com>
Date: Sat Aug 19 14:07:59 2017 -0400
Export some entry functions privately
This will be used in the following commits.
gtk/gtkentry.c | 9 ++-------
gtk/gtkentryprivate.h | 7 +++++++
2 files changed, 9 insertions(+), 7 deletions(-)
---
diff --git a/gtk/gtkentry.c b/gtk/gtkentry.c
index 038106e..696acb2 100644
--- a/gtk/gtkentry.c
+++ b/gtk/gtkentry.c
@@ -558,11 +558,6 @@ static void gtk_entry_drag_gesture_end (GtkGestureDrag *gesture,
/* Internal routines
*/
-static void gtk_entry_enter_text (GtkEntry *entry,
- const gchar *str);
-static void gtk_entry_set_positions (GtkEntry *entry,
- gint current_pos,
- gint selection_bound);
static void gtk_entry_draw_text (GtkEntry *entry,
GtkSnapshot *snapshot);
static void gtk_entry_draw_cursor (GtkEntry *entry,
@@ -5317,7 +5312,7 @@ gtk_entry_delete_surrounding_cb (GtkIMContext *slave,
*/
/* Used for im_commit_cb and inserting Unicode chars */
-static void
+void
gtk_entry_enter_text (GtkEntry *entry,
const gchar *str)
{
@@ -5352,7 +5347,7 @@ gtk_entry_enter_text (GtkEntry *entry,
/* All changes to priv->current_pos and priv->selection_bound
* should go through this function.
*/
-static void
+void
gtk_entry_set_positions (GtkEntry *entry,
gint current_pos,
gint selection_bound)
diff --git a/gtk/gtkentryprivate.h b/gtk/gtkentryprivate.h
index 08fab2d..4e96084 100644
--- a/gtk/gtkentryprivate.h
+++ b/gtk/gtkentryprivate.h
@@ -88,6 +88,13 @@ GtkIMContext* _gtk_entry_get_im_context (GtkEntry *entry);
void _gtk_entry_grab_focus (GtkEntry *entry,
gboolean select_all);
+void gtk_entry_enter_text (GtkEntry *entry,
+ const char *text);
+void gtk_entry_set_positions (GtkEntry *entry,
+ int current_pos,
+ int selection_bound);
+
+
G_END_DECLS
#endif /* __GTK_ENTRY_PRIVATE_H__ */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]