[gtk+] gtksettings: Fix code snippet



commit cc5fb1db034592418cfc8957ece7d507d97a9168
Author: Timm Bäder <mail baedert org>
Date:   Wed Oct 11 12:21:20 2017 +0200

    gtksettings: Fix code snippet
    
    gtk_init does not take any arguments anymore and
    GTK_TYPE_IMAGE_MENU_ITEM is gone.

 gtk/gtksettings.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtksettings.c b/gtk/gtksettings.c
index 69b60af..cad75a3 100644
--- a/gtk/gtksettings.c
+++ b/gtk/gtksettings.c
@@ -92,10 +92,10 @@
  * widget type has been realized at least once. The following example
  * demonstrates a way to do this:
  * |[<!-- language="C" -->
- *   gtk_init (&argc, &argv);
+ *   gtk_init ();
  *
  *   // make sure the type is realized
- *   g_type_class_unref (g_type_class_ref (GTK_TYPE_IMAGE_MENU_ITEM));
+ *   g_type_class_unref (g_type_class_ref (GTK_TYPE_BUTTON));
  *
  *   g_object_set (gtk_settings_get_default (), "gtk-enable-animations", FALSE, NULL);
  * ]|


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]