From 7e9ae85dd4f2ce9b3402b6aac60e424c70194dbc Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Sat, 19 Aug 2017 14:07:59 -0400 Subject: [PATCH] Export some entry functions privately This will be used in the following commits. --- gtk/gtkentry.c | 9 ++------- gtk/gtkentryprivate.h | 6 ++++++ 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/gtk/gtkentry.c b/gtk/gtkentry.c index a01684101f..9e360ffb0c 100644 --- a/gtk/gtkentry.c +++ b/gtk/gtkentry.c @@ -589,11 +589,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, cairo_t *cr); static void gtk_entry_draw_cursor (GtkEntry *entry, @@ -6109,7 +6104,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) { @@ -6144,7 +6139,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 53a90785d6..048d92aacf 100644 --- a/gtk/gtkentryprivate.h +++ b/gtk/gtkentryprivate.h @@ -95,6 +95,12 @@ void _gtk_entry_grab_focus (GtkEntry *entry, /* in gtkspinbutton.c (because I'm too lazy to create gtkspinbuttonprivate.h) */ gint gtk_spin_button_get_text_width (GtkSpinButton *spin_button); +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__ */