GTK+ Reference Manual | |||
---|---|---|---|
<<< Previous Page | Home | Up | Next Page >>> |
#include <gtk/gtk.h> struct GtkSettings; struct GtkSettingsClass; struct GtkSettingsValue; GtkSettings* gtk_settings_get_default (void); void gtk_settings_install_property (GParamSpec *pspec); void gtk_settings_install_property_parser (GParamSpec *pspec, GtkRcPropertyParser parser); gboolean gtk_rc_property_parse_color (const GParamSpec *pspec, const GString *gstring, GValue *property_value); gboolean gtk_rc_property_parse_enum (const GParamSpec *pspec, const GString *gstring, GValue *property_value); gboolean gtk_rc_property_parse_flags (const GParamSpec *pspec, const GString *gstring, GValue *property_value); gboolean gtk_rc_property_parse_requisition (const GParamSpec *pspec, const GString *gstring, GValue *property_value); gboolean gtk_rc_property_parse_border (const GParamSpec *pspec, const GString *gstring, GValue *property_value); void gtk_settings_set_property_value (GtkSettings *settings, const gchar *name, const GtkSettingsValue *svalue); void gtk_settings_set_string_property (GtkSettings *settings, const gchar *name, const gchar *v_string, const gchar *origin); void gtk_settings_set_long_property (GtkSettings *settings, const gchar *name, glong v_long, const gchar *origin); void gtk_settings_set_double_property (GtkSettings *settings, const gchar *name, gdouble v_double, const gchar *origin); |
"gtk-double-click-time" gint : Read / Write "gtk-cursor-blink" gboolean : Read / Write "gtk-cursor-blink-time" gint : Read / Write "gtk-split-cursor" gboolean : Read / Write "gtk-theme-name" gchararray : Read / Write "gtk-key-theme-name" gchararray : Read / Write "gtk-menu-bar-accel" gchararray : Read / Write "gtk-dnd-drag-threshold" gint : Read / Write "gtk-color-palette" gchararray : Read / Write "gtk-entry-select-on-focus" gboolean : Read / Write "gtk-can-change-accels" gboolean : Read / Write "gtk-toolbar-style" GtkToolbarStyle : Read / Write "gtk-toolbar-icon-size" GtkIconSize : Read / Write |
struct GtkSettingsValue { /* origin should be something like "filename:linenumber" for rc files, * or e.g. "XProperty" for other sources */ gchar *origin; /* valid types are LONG, DOUBLE and STRING corresponding to the token parsed, * or a GSTRING holding an unparsed statement */ GValue value; }; |
void gtk_settings_install_property_parser (GParamSpec *pspec, GtkRcPropertyParser parser); |
gboolean gtk_rc_property_parse_color (const GParamSpec *pspec, const GString *gstring, GValue *property_value); |
gboolean gtk_rc_property_parse_enum (const GParamSpec *pspec, const GString *gstring, GValue *property_value); |
gboolean gtk_rc_property_parse_flags (const GParamSpec *pspec, const GString *gstring, GValue *property_value); |
gboolean gtk_rc_property_parse_requisition (const GParamSpec *pspec, const GString *gstring, GValue *property_value); |
gboolean gtk_rc_property_parse_border (const GParamSpec *pspec, const GString *gstring, GValue *property_value); |
void gtk_settings_set_property_value (GtkSettings *settings, const gchar *name, const GtkSettingsValue *svalue); |
void gtk_settings_set_string_property (GtkSettings *settings, const gchar *name, const gchar *v_string, const gchar *origin); |
void gtk_settings_set_long_property (GtkSettings *settings, const gchar *name, glong v_long, const gchar *origin); |
void gtk_settings_set_double_property (GtkSettings *settings, const gchar *name, gdouble v_double, const gchar *origin); |