Move entry completion code where it belongs

This commit moves all the entry completion implementation
into gtkentrycompletion.c. It also gets rid of an unnecessary
completion_device member in GtkEntryPrivate.
This commit is contained in:
Matthias Clasen
2012-08-31 10:47:23 -04:00
parent ee2ad441ca
commit e5b2ca5d89
3 changed files with 587 additions and 619 deletions

View File

@ -64,29 +64,31 @@ struct _GtkEntryCompletionPrivate
guint popup_set_width : 1;
guint popup_single_match : 1;
guint inline_selection : 1;
guint has_grab : 1;
gchar *completion_prefix;
GSource *check_completion_idle;
GdkDevice *grab_device;
GdkDevice *device;
};
gboolean _gtk_entry_completion_resize_popup (GtkEntryCompletion *completion);
void _gtk_entry_completion_popup (GtkEntryCompletion *completion,
GdkDevice *device);
void _gtk_entry_completion_popdown (GtkEntryCompletion *completion);
void _gtk_entry_completion_connect (GtkEntryCompletion *completion,
GtkEntry *entry);
void _gtk_entry_completion_disconnect (GtkEntryCompletion *completion);
gchar* _gtk_entry_get_display_text (GtkEntry *entry,
gint start_pos,
gint end_pos);
void _gtk_entry_get_borders (GtkEntry *entry,
GtkBorder *borders);
void _gtk_entry_reset_im_context (GtkEntry *entry);
GtkIMContext* _gtk_entry_get_im_context (GtkEntry *entry);
void _gtk_entry_set_is_cell_renderer (GtkEntry *entry,
gboolean is_cell_renderer);
G_END_DECLS
#endif /* __GTK_ENTRY_PRIVATE_H__ */