Export some entry functions privately
This will be used in the following commits.
This commit is contained in:
@ -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)
|
||||
|
||||
@ -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__ */
|
||||
|
||||
Reference in New Issue
Block a user