summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2017-08-19 14:07:59 -0400
committerMatthias Clasen <mclasen@redhat.com>2018-06-03 09:43:28 -0400
commit7e9ae85dd4f2ce9b3402b6aac60e424c70194dbc (patch)
tree29551d24ed14787f665316d5b6e3fd6ba9ad3512
parentd0f73642604df41d5eb8a2c1b0872a173d825908 (diff)
downloadgtk+-7e9ae85dd4f2ce9b3402b6aac60e424c70194dbc.tar.gz
Export some entry functions privately
This will be used in the following commits.
-rw-r--r--gtk/gtkentry.c9
-rw-r--r--gtk/gtkentryprivate.h6
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__ */