summaryrefslogtreecommitdiff
path: root/gtk/gtkentryprivate.h
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2020-06-21 15:28:56 -0400
committerMatthias Clasen <mclasen@redhat.com>2020-06-23 07:55:38 -0400
commit34a12f47f1d1ae5198a4f7793c89a43146d5ed05 (patch)
tree91029750bc37b126bef49b8fb226f189a092a713 /gtk/gtkentryprivate.h
parent518462d882034c18e93171e66f87df95d35b3af4 (diff)
downloadgtk+-34a12f47f1d1ae5198a4f7793c89a43146d5ed05.tar.gz
entry completion: Drop the Private struct
This is in preparation for porting GtkEntryCompletion to use GtkListView.
Diffstat (limited to 'gtk/gtkentryprivate.h')
-rw-r--r--gtk/gtkentryprivate.h41
1 files changed, 18 insertions, 23 deletions
diff --git a/gtk/gtkentryprivate.h b/gtk/gtkentryprivate.h
index 895fada177..a04b63e288 100644
--- a/gtk/gtkentryprivate.h
+++ b/gtk/gtkentryprivate.h
@@ -31,33 +31,11 @@
G_BEGIN_DECLS
typedef struct _GtkEntryCompletionClass GtkEntryCompletionClass;
-typedef struct _GtkEntryCompletionPrivate GtkEntryCompletionPrivate;
struct _GtkEntryCompletion
{
GObject parent_instance;
- /*< private >*/
- GtkEntryCompletionPrivate *priv;
-};
-
-struct _GtkEntryCompletionClass
-{
- GObjectClass parent_class;
-
- gboolean (* match_selected) (GtkEntryCompletion *completion,
- GtkTreeModel *model,
- GtkTreeIter *iter);
- gboolean (* insert_prefix) (GtkEntryCompletion *completion,
- const gchar *prefix);
- gboolean (* cursor_on_match) (GtkEntryCompletion *completion,
- GtkTreeModel *model,
- GtkTreeIter *iter);
- void (* no_matches) (GtkEntryCompletion *completion);
-};
-
-struct _GtkEntryCompletionPrivate
-{
GtkWidget *entry;
GtkWidget *tree_view;
@@ -101,13 +79,30 @@ struct _GtkEntryCompletionPrivate
GSource *check_completion_idle;
};
+struct _GtkEntryCompletionClass
+{
+ GObjectClass parent_class;
+
+ gboolean (* match_selected) (GtkEntryCompletion *completion,
+ GtkTreeModel *model,
+ GtkTreeIter *iter);
+ void (* action_activated) (GtkEntryCompletion *completion,
+ gint index_);
+ gboolean (* insert_prefix) (GtkEntryCompletion *completion,
+ const gchar *prefix);
+ gboolean (* cursor_on_match) (GtkEntryCompletion *completion,
+ GtkTreeModel *model,
+ GtkTreeIter *iter);
+ void (* no_matches) (GtkEntryCompletion *completion);
+};
+
void _gtk_entry_completion_resize_popup (GtkEntryCompletion *completion);
void _gtk_entry_completion_popdown (GtkEntryCompletion *completion);
void _gtk_entry_completion_connect (GtkEntryCompletion *completion,
GtkEntry *entry);
void _gtk_entry_completion_disconnect (GtkEntryCompletion *completion);
-GtkIMContext* _gtk_entry_get_im_context (GtkEntry *entry);
+GtkIMContext * _gtk_entry_get_im_context (GtkEntry *entry);
GtkEventController * gtk_entry_get_key_controller (GtkEntry *entry);
GtkText *gtk_entry_get_text_widget (GtkEntry *entry);