diff options
author | Matthias Clasen <mclasen@redhat.com> | 2014-11-24 22:40:45 -0500 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2015-01-24 08:44:30 -0500 |
commit | 500c8d82fc4ba01b8424fb51fae4cd6af46d362a (patch) | |
tree | 8a8d722c6a2a7695f792b6668f9cdaea7662955e /gtk/gtksearchentry.h | |
parent | 82a5edceca581b7eaedb7e3692bd8186049f8e08 (diff) | |
download | gtk+-500c8d82fc4ba01b8424fb51fae4cd6af46d362a.tar.gz |
GtkSearchEntry: Add more API
Add ::next-match, ::previous-match and ::stop-search keybinding
signals that are bound to Ctrl-g, Ctrl-Shift-g and Escape. Also
add a gtk_search_entry_handle_event() function to handle key events.
Diffstat (limited to 'gtk/gtksearchentry.h')
-rw-r--r-- | gtk/gtksearchentry.h | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/gtk/gtksearchentry.h b/gtk/gtksearchentry.h index 426bd2d3d0..e73dc8d245 100644 --- a/gtk/gtksearchentry.h +++ b/gtk/gtksearchentry.h @@ -56,11 +56,9 @@ struct _GtkSearchEntryClass GtkEntryClass parent_class; void (*search_changed) (GtkSearchEntry *entry); - - /* Padding for future expansion */ - void (*_gtk_reserved1) (void); - void (*_gtk_reserved2) (void); - void (*_gtk_reserved3) (void); + void (*next_match) (GtkSearchEntry *entry); + void (*previous_match) (GtkSearchEntry *entry); + void (*stop_search) (GtkSearchEntry *entry); }; GDK_AVAILABLE_IN_3_6 @@ -69,6 +67,10 @@ GType gtk_search_entry_get_type (void) G_GNUC_CONST; GDK_AVAILABLE_IN_3_6 GtkWidget* gtk_search_entry_new (void); +GDK_AVAILABLE_IN_3_16 +gboolean gtk_search_entry_handle_event (GtkSearchEntry *entry, + GdkEvent *event); + G_END_DECLS #endif /* __GTK_SEARCH_ENTRY_H__ */ |