settings: Update docs
authorMatthias Clasen <mclasen@redhat.com>
Wed, 8 May 2019 21:45:17 +0000 (21:45 +0000)
committerMatthias Clasen <mclasen@redhat.com>
Thu, 9 May 2019 14:53:32 +0000 (14:53 +0000)
We no longer create settings on demand.

gtk/gtksettings.c

index 79282b1804e4476a04f54ede1aa082bd37c45ed5..43d067a7af5ecd11212fedf6ba21a258abf1e8cb 100644 (file)
  * Applications can override system-wide settings by setting the property
  * of the GtkSettings object with g_object_set(). This should be restricted
  * to special cases though; GtkSettings are not meant as an application
- * configuration facility. When doing so, you need to be aware that settings
- * that are specific to individual widgets may not be available before the
- * widget type has been realized at least once. The following example
- * demonstrates a way to do this:
- * |[<!-- language="C" -->
- *   gtk_init ();
- *
- *   // make sure the type is realized
- *   g_type_class_unref (g_type_class_ref (GTK_TYPE_BUTTON));
- *
- *   g_object_set (gtk_settings_get_default (), "gtk-enable-animations", FALSE, NULL);
- * ]|
+ * configuration facility.
  *
  * There is one GtkSettings instance per display. It can be obtained with
  * gtk_settings_get_for_display(), but in many cases, it is more convenient