Settings
Sharing settings between applications
GtkSettings provide a mechanism to share global settings between applications.
On the X window system, this sharing is realized by an XSettings
manager that is usually part of the desktop environment, along with utilities
that let the user change these settings. In the absence of an Xsettings manager,
settings can also be specified in RC files.
Applications can override system-wide settings with gtk_settings_set_string_property(),
gtk_settings_set_long_property(), etc. 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:
gtk_init (&argc, &argv);
/* make sure the type is realized &ast/
g_type_class_unref (g_type_class_ref (GTK_TYPE_IMAGE_MENU_ITEM));
g_object_set (gtk_settings_get_default (), "gtk-menu-images", FALSE, NULL);
There is one GtkSettings instance per screen. It can be obtained with
gtk_settings_get_for_screen(), but in many cases, it is more convenient
to use gtk_widget_get_settings(). gtk_settings_get_default() returns the
GtkSettings instance for the default screen.
@origin:
@value:
@Returns:
@screen:
@Returns:
@pspec:
@pspec:
@parser:
@pspec:
@gstring:
@property_value:
@Returns:
@pspec:
@gstring:
@property_value:
@Returns:
@pspec:
@gstring:
@property_value:
@Returns:
@pspec:
@gstring:
@property_value:
@Returns:
@pspec:
@gstring:
@property_value:
@Returns:
@settings:
@name:
@svalue:
@settings:
@name:
@v_string:
@origin:
@settings:
@name:
@v_long:
@origin:
@settings:
@name:
@v_double:
@origin: