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:
		| @ -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__ */ | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 Matthias Clasen
					Matthias Clasen