[gtk+] expander: Make a code snippet compile
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] expander: Make a code snippet compile
- Date: Wed, 3 Jan 2018 16:09:47 +0000 (UTC)
commit 3d9421509cf279d0bd387933b3b0a21a08731d48
Author: Timm Bäder <mail baedert org>
Date: Wed Jan 3 14:29:00 2018 +0100
expander: Make a code snippet compile
gtk/gtkexpander.c | 16 ++++++++++------
1 files changed, 10 insertions(+), 6 deletions(-)
---
diff --git a/gtk/gtkexpander.c b/gtk/gtkexpander.c
index e02ef88..33c2d13 100644
--- a/gtk/gtkexpander.c
+++ b/gtk/gtkexpander.c
@@ -43,12 +43,6 @@
* connection as follows:
*
* |[<!-- language="C" -->
- * expander = gtk_expander_new_with_mnemonic ("_More Options");
- * g_signal_connect (expander, "notify::expanded",
- * G_CALLBACK (expander_callback), NULL);
- *
- * ...
- *
* static void
* expander_callback (GObject *object,
* GParamSpec *param_spec,
@@ -67,6 +61,16 @@
* // Hide or destroy widgets
* }
* }
+ *
+ * static void
+ * create_expander (void)
+ * {
+ * GtkWidget *expander = gtk_expander_new_with_mnemonic ("_More Options");
+ * g_signal_connect (expander, "notify::expanded",
+ * G_CALLBACK (expander_callback), NULL);
+ *
+ * // ...
+ * }
* ]|
*
* # GtkExpander as GtkBuildable
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]