diff options
author | William Jon McCann <william.jon.mccann@gmail.com> | 2014-02-12 16:09:09 -0500 |
---|---|---|
committer | William Jon McCann <william.jon.mccann@gmail.com> | 2014-02-12 18:42:50 -0500 |
commit | 37a8ee6e952fb8c837ffbabfe3a5068b08e75b13 (patch) | |
tree | d48dc51ab27f65571678687ef1d254f4caa85d32 /gtk/gtksearchbar.c | |
parent | 74c48203f0a790ae6b6bb33cf7cf6ed2c3a4d3d5 (diff) | |
download | gtk+-37a8ee6e952fb8c837ffbabfe3a5068b08e75b13.tar.gz |
docs: fully break lines in examples
Try to do a better job of keeping example content
from being too wide. It is often rendered as <pre>
text so the only time we can wrap it is in the source.
It is best to full break lines at all punctuation and
to try to keep the width under 70 chars or so.
Diffstat (limited to 'gtk/gtksearchbar.c')
-rw-r--r-- | gtk/gtksearchbar.c | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/gtk/gtksearchbar.c b/gtk/gtksearchbar.c index 2e9c8ac6fa..23f76cc3fc 100644 --- a/gtk/gtksearchbar.c +++ b/gtk/gtksearchbar.c @@ -165,15 +165,18 @@ preedit_changed_cb (GtkEntry *entry, * * |[<!-- language="C" --> * static gboolean - * window_key_press_event_cb (GtkWidget *widget, - * GdkEvent *event, - * gpointer user_data) + * on_key_press_event (GtkWidget *widget, + * GdkEvent *event, + * gpointer user_data) * { - * return gtk_search_bar_handle_event (GTK_SEARCH_BAR (user_data), event); + * GtkSearchBar *bar = GTK_SEARCH_BAR (user_data); + * return gtk_search_bar_handle_event (bar, event); * } * - * g_signal_connect (window, "key-press-event", - * G_CALLBACK (window_key_press_event_cb), search_bar); + * g_signal_connect (window, + * "key-press-event", + * G_CALLBACK (on_key_press_event), + * search_bar); * ]| * * Return value: %GDK_EVENT_STOP if the key press event resulted |