Export some entry functions privately

This will be used in the following commits.
This commit is contained in:
Matthias Clasen
2017-08-19 14:07:59 -04:00
parent d0f7364260
commit 7e9ae85dd4
2 changed files with 8 additions and 7 deletions

View File

@ -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)

View File

@ -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__ */