mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-14 14:20:21 +00:00
searchbar: Make a code snippet compile
This commit is contained in:
parent
cf9942e3cc
commit
3744bbdc27
@ -195,10 +195,19 @@ gtk_search_bar_handle_event_for_entry (GtkSearchBar *bar,
|
||||
* return gtk_search_bar_handle_event (bar, event);
|
||||
* }
|
||||
*
|
||||
* g_signal_connect (window,
|
||||
* "key-press-event",
|
||||
* G_CALLBACK (on_key_press_event),
|
||||
* search_bar);
|
||||
* static void
|
||||
* create_toplevel (void)
|
||||
* {
|
||||
* GtkWidget *window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
|
||||
* GtkWindow *search_bar = gtk_search_bar_new ();
|
||||
*
|
||||
* // Add more widgets to the window...
|
||||
*
|
||||
* g_signal_connect (window,
|
||||
* "key-press-event",
|
||||
* G_CALLBACK (on_key_press_event),
|
||||
* search_bar);
|
||||
* }
|
||||
* ]|
|
||||
*
|
||||
* Returns: %GDK_EVENT_STOP if the key press event resulted
|
||||
|
Loading…
Reference in New Issue
Block a user