| 1 | /* GTK - The GIMP Toolkit |
| 2 | * Copyright (C) 2000 Red Hat, Inc. |
| 3 | * |
| 4 | * This library is free software; you can redistribute it and/or |
| 5 | * modify it under the terms of the GNU Lesser General Public |
| 6 | * License as published by the Free Software Foundation; either |
| 7 | * version 2 of the License, or (at your option) any later version. |
| 8 | * |
| 9 | * This library is distributed in the hope that it will be useful, |
| 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 12 | * Lesser General Public License for more details. |
| 13 | * |
| 14 | * You should have received a copy of the GNU Lesser General Public |
| 15 | * License along with this library. If not, see <http://www.gnu.org/licenses/>.Free |
| 16 | */ |
| 17 | |
| 18 | |
| 19 | #include "config.h"cxx . . $ `<file>/build/config.h`/ |
| 20 | |
| 21 | #include "gtksettingsprivate.h"cxx . . $ `<file>/gtk/gtksettingsprivate.h`/ |
| 22 | |
| 23 | #include "gtkcssproviderprivate.h"cxx . . $ `<file>/gtk/gtkcssproviderprivate.h`/ |
| 24 | #include "gtkprivate.h"cxx . . $ `<file>/gtk/gtkprivate.h`/ |
| 25 | #include "gtkscrolledwindow.h"cxx . . $ `<file>/gtk/gtkscrolledwindow.h`/ |
| 26 | #include "deprecated/gtkstylecontextprivate.h"cxx . . $ `<file>/gtk/deprecated/gtkstylecontextprivate.h`/ |
| 27 | #include "gtkstyleproviderprivate.h"cxx . . $ `<file>/gtk/gtkstyleproviderprivate.h`/ |
| 28 | #include "gtktypebuiltins.h"cxx . . $ `<file>/build/gtk/gtktypebuiltins.h`/ |
| 29 | #include "gtkversion.h"cxx . . $ `<file>/build/gtk/gtkversion.h`/ |
| 30 | #include "gtkwidgetprivate.h"cxx . . $ `<file>/gtk/gtkwidgetprivate.h`/ |
| 31 | |
| 32 | #include "gdk/gdkdisplayprivate.h"cxx . . $ `<file>/gdk/gdkdisplayprivate.h`/ |
| 33 | |
| 34 | #include <string.h> |
| 35 | |
| 36 | #ifdef GDK_WINDOWING_X11cxx . . $ `build/gdk/gdkconfig.h:13:9`! |
| 37 | #include "x11/gdkx.h"cxx . . $ `<file>/gdk/x11/gdkx.h`/ |
| 38 | #include <pango/pangofc-fontmap.h> |
| 39 | #endif |
| 40 | |
| 41 | #ifdef GDK_WINDOWING_WAYLANDcxx . . $ `build/gdk/gdkconfig.h:17:9`! |
| 42 | #include "wayland/gdkwayland.h"cxx . . $ `<file>/gdk/wayland/gdkwayland.h`/ |
| 43 | #include <pango/pangofc-fontmap.h> |
| 44 | #endif |
| 45 | |
| 46 | #ifdef GDK_WINDOWING_BROADWAY |
| 47 | #include "broadway/gdkbroadway.h" |
| 48 | #endif |
| 49 | |
| 50 | #ifdef GDK_WINDOWING_MACOS |
| 51 | #include "macos/gdkmacos.h" |
| 52 | #endif |
| 53 | |
| 54 | #ifdef GDK_WINDOWING_WIN32 |
| 55 | #include "win32/gdkwin32.h" |
| 56 | #endif |
| 57 | |
| 58 | #ifdef GDK_WINDOWING_MACOS |
| 59 | #define PRINT_PREVIEW_COMMAND "open -b com.apple.Preview %f" |
| 60 | #else |
| 61 | #define PRINT_PREVIEW_COMMANDcxx . . $ `gtk/gtksettings.c:61:9`! "evince --unlink-tempfile --preview --print-settings %s %f" |
| 62 | #endif |
| 63 | |
| 64 | /** |
| 65 | * GtkSettings: |
| 66 | * |
| 67 | * Provides a mechanism to share global settings between applications. |
| 68 | * |
| 69 | * GTK relies on the platform-specific API for getting desktop-wide |
| 70 | * settings. |
| 71 | * |
| 72 | * On Wayland, the settings are obtained via a settings portal that |
| 73 | * is part of the Linux desktop APIs for application. |
| 74 | * |
| 75 | * On the X window system, this sharing is realized by an |
| 76 | * [XSettings](http://www.freedesktop.org/wiki/Specifications/xsettings-spec) |
| 77 | * manager. |
| 78 | * |
| 79 | * On macOS, the settings are obtained from `NSUserDefaults`. |
| 80 | * |
| 81 | * In the absence of these sharing mechanisms, GTK reads default values for |
| 82 | * settings from `settings.ini` files in `/etc/gtk-4.0`, `$XDG_CONFIG_DIRS/gtk-4.0` |
| 83 | * and `$XDG_CONFIG_HOME/gtk-4.0`. These files must be valid key files (see |
| 84 | * `GKeyFile`), and have a section called Settings. Themes can also provide |
| 85 | * default values for settings by installing a `settings.ini` file |
| 86 | * next to their `gtk.css` file. |
| 87 | * |
| 88 | * Applications can override system-wide settings by setting the property |
| 89 | * of the `GtkSettings` object with g_object_set(). This should be restricted |
| 90 | * to special cases though; `GtkSettings` are not meant as an application |
| 91 | * configuration facility. |
| 92 | * |
| 93 | * There is one `GtkSettings` instance per display. It can be obtained with |
| 94 | * [[email protected]_for_display], but in many cases, it is more |
| 95 | * convenient to use [[email protected]_settings]. |
| 96 | */ |
| 97 | |
| 98 | /* --- typedefs --- */ |
| 99 | typedef struct _GtkSettingsValuecxx . . $ _GtkSettingsValue# GtkSettingsValuecxx . . $ GtkSettingsValue#; |
| 100 | |
| 101 | /*< private > |
| 102 | * GtkSettingsValue: |
| 103 | * @origin: Origin should be something like “filename:linenumber” for |
| 104 | * ini files, or e.g. “XProperty” for other sources. |
| 105 | * @value: Valid types are LONG, DOUBLE and STRING corresponding to |
| 106 | * the token parsed, or a GSTRING holding an unparsed statement |
| 107 | */ |
| 108 | struct _GtkSettingsValuecxx . . $ _GtkSettingsValue# |
| 109 | { |
| 110 | /* origin should be something like "filename:linenumber" for ini files, |
| 111 | * or e.g. "XProperty" for other sources |
| 112 | */ |
| 113 | char *origincxx . . $ _GtkSettingsValue#origin.; |
| 114 | |
| 115 | /* valid types are LONG, DOUBLE and STRING corresponding to the token parsed, |
| 116 | * or a GSTRING holding an unparsed statement |
| 117 | */ |
| 118 | GValuecxx . . $ GValue# valuecxx . . $ _GtkSettingsValue#value.; |
| 119 | |
| 120 | /* the settings source */ |
| 121 | GtkSettingsSourcecxx . . $ GtkSettingsSource# sourcecxx . . $ _GtkSettingsValue#source.; |
| 122 | }; |
| 123 | |
| 124 | typedef struct _GtkSettingsClasscxx . . $ _GtkSettingsClass# GtkSettingsClasscxx . . $ GtkSettingsClass#; |
| 125 | typedef struct _GtkSettingsPropertyValuecxx . . $ _GtkSettingsPropertyValue# GtkSettingsPropertyValuecxx . . $ GtkSettingsPropertyValue#; |
| 126 | |
| 127 | struct _GtkSettingscxx . . $ _GtkSettings# |
| 128 | { |
| 129 | GObjectcxx . . $ GObject# parent_instancecxx . . $ _GtkSettings#parent_instance.; |
| 130 | |
| 131 | GDatacxx . . $ GData# *queued_settingscxx . . $ _GtkSettings#queued_settings.; /* of type GtkSettingsValue* */ |
| 132 | GtkSettingsPropertyValuecxx . . $ GtkSettingsPropertyValue# *property_valuescxx . . $ _GtkSettings#property_values.; |
| 133 | GdkDisplaycxx . . $ GdkDisplay# *displaycxx . . $ _GtkSettings#display.; |
| 134 | GSListcxx . . $ GSList# *style_cascadescxx . . $ _GtkSettings#style_cascades.; |
| 135 | GtkCssProvidercxx . . $ GtkCssProvider# *theme_providercxx . . $ _GtkSettings#theme_provider.; |
| 136 | int font_sizecxx . . $ _GtkSettings#font_size.; |
| 137 | gbooleancxx . . $ gboolean# font_size_absolutecxx . . $ _GtkSettings#font_size_absolute.; |
| 138 | char *font_familycxx . . $ _GtkSettings#font_family.; |
| 139 | cairo_font_options_tcxx . . $ cairo_font_options_t# *font_optionscxx . . $ _GtkSettings#font_options.; |
| 140 | }; |
| 141 | |
| 142 | struct _GtkSettingsClasscxx . . $ _GtkSettingsClass# |
| 143 | { |
| 144 | GObjectClasscxx . . $ GObjectClass# parent_classcxx . . $ _GtkSettingsClass#parent_class.; |
| 145 | }; |
| 146 | |
| 147 | struct _GtkSettingsPropertyValuecxx . . $ _GtkSettingsPropertyValue# |
| 148 | { |
| 149 | GValuecxx . . $ GValue# valuecxx . . $ _GtkSettingsPropertyValue#value.; |
| 150 | GtkSettingsSourcecxx . . $ GtkSettingsSource# sourcecxx . . $ _GtkSettingsPropertyValue#source.; |
| 151 | }; |
| 152 | |
| 153 | enumcxx . . $ $anonymous_type_9e74e9319b5d760e_0# { |
| 154 | PROP_0cxx . . $ PROP_0., |
| 155 | PROP_DOUBLE_CLICK_TIMEcxx . . $ PROP_DOUBLE_CLICK_TIME., |
| 156 | PROP_DOUBLE_CLICK_DISTANCEcxx . . $ PROP_DOUBLE_CLICK_DISTANCE., |
| 157 | PROP_CURSOR_BLINKcxx . . $ PROP_CURSOR_BLINK., |
| 158 | PROP_CURSOR_BLINK_TIMEcxx . . $ PROP_CURSOR_BLINK_TIME., |
| 159 | PROP_CURSOR_BLINK_TIMEOUTcxx . . $ PROP_CURSOR_BLINK_TIMEOUT., |
| 160 | PROP_SPLIT_CURSORcxx . . $ PROP_SPLIT_CURSOR., |
| 161 | PROP_CURSOR_ASPECT_RATIOcxx . . $ PROP_CURSOR_ASPECT_RATIO., |
| 162 | PROP_THEME_NAMEcxx . . $ PROP_THEME_NAME., |
| 163 | PROP_ICON_THEME_NAMEcxx . . $ PROP_ICON_THEME_NAME., |
| 164 | PROP_DND_DRAG_THRESHOLDcxx . . $ PROP_DND_DRAG_THRESHOLD., |
| 165 | PROP_FONT_NAMEcxx . . $ PROP_FONT_NAME., |
| 166 | PROP_XFT_ANTIALIAScxx . . $ PROP_XFT_ANTIALIAS., |
| 167 | PROP_XFT_HINTINGcxx . . $ PROP_XFT_HINTING., |
| 168 | PROP_XFT_HINTSTYLEcxx . . $ PROP_XFT_HINTSTYLE., |
| 169 | PROP_XFT_RGBAcxx . . $ PROP_XFT_RGBA., |
| 170 | PROP_XFT_DPIcxx . . $ PROP_XFT_DPI., |
| 171 | PROP_HINT_FONT_METRICScxx . . $ PROP_HINT_FONT_METRICS., |
| 172 | PROP_CURSOR_THEME_NAMEcxx . . $ PROP_CURSOR_THEME_NAME., |
| 173 | PROP_CURSOR_THEME_SIZEcxx . . $ PROP_CURSOR_THEME_SIZE., |
| 174 | PROP_ALTERNATIVE_BUTTON_ORDERcxx . . $ PROP_ALTERNATIVE_BUTTON_ORDER., |
| 175 | PROP_ALTERNATIVE_SORT_ARROWScxx . . $ PROP_ALTERNATIVE_SORT_ARROWS., |
| 176 | PROP_ENABLE_ANIMATIONScxx . . $ PROP_ENABLE_ANIMATIONS., |
| 177 | PROP_ERROR_BELLcxx . . $ PROP_ERROR_BELL., |
| 178 | PROP_STATUS_SHAPEScxx . . $ PROP_STATUS_SHAPES., |
| 179 | PROP_PRINT_BACKENDScxx . . $ PROP_PRINT_BACKENDS., |
| 180 | PROP_PRINT_PREVIEW_COMMANDcxx . . $ PROP_PRINT_PREVIEW_COMMAND., |
| 181 | PROP_ENABLE_ACCELScxx . . $ PROP_ENABLE_ACCELS., |
| 182 | PROP_IM_MODULEcxx . . $ PROP_IM_MODULE., |
| 183 | PROP_RECENT_FILES_MAX_AGEcxx . . $ PROP_RECENT_FILES_MAX_AGE., |
| 184 | PROP_FONTCONFIG_TIMESTAMPcxx . . $ PROP_FONTCONFIG_TIMESTAMP., |
| 185 | PROP_SOUND_THEME_NAMEcxx . . $ PROP_SOUND_THEME_NAME., |
| 186 | PROP_ENABLE_INPUT_FEEDBACK_SOUNDScxx . . $ PROP_ENABLE_INPUT_FEEDBACK_SOUNDS., |
| 187 | PROP_ENABLE_EVENT_SOUNDScxx . . $ PROP_ENABLE_EVENT_SOUNDS., |
| 188 | PROP_PRIMARY_BUTTON_WARPS_SLIDERcxx . . $ PROP_PRIMARY_BUTTON_WARPS_SLIDER., |
| 189 | PROP_APPLICATION_PREFER_DARK_THEMEcxx . . $ PROP_APPLICATION_PREFER_DARK_THEME., |
| 190 | PROP_ENTRY_SELECT_ON_FOCUScxx . . $ PROP_ENTRY_SELECT_ON_FOCUS., |
| 191 | PROP_ENTRY_PASSWORD_HINT_TIMEOUTcxx . . $ PROP_ENTRY_PASSWORD_HINT_TIMEOUT., |
| 192 | PROP_LABEL_SELECT_ON_FOCUScxx . . $ PROP_LABEL_SELECT_ON_FOCUS., |
| 193 | PROP_SHELL_SHOWS_APP_MENUcxx . . $ PROP_SHELL_SHOWS_APP_MENU., |
| 194 | PROP_SHELL_SHOWS_MENUBARcxx . . $ PROP_SHELL_SHOWS_MENUBAR., |
| 195 | PROP_SHELL_SHOWS_DESKTOPcxx . . $ PROP_SHELL_SHOWS_DESKTOP., |
| 196 | PROP_DECORATION_LAYOUTcxx . . $ PROP_DECORATION_LAYOUT., |
| 197 | PROP_TITLEBAR_DOUBLE_CLICKcxx . . $ PROP_TITLEBAR_DOUBLE_CLICK., |
| 198 | PROP_TITLEBAR_MIDDLE_CLICKcxx . . $ PROP_TITLEBAR_MIDDLE_CLICK., |
| 199 | PROP_TITLEBAR_RIGHT_CLICKcxx . . $ PROP_TITLEBAR_RIGHT_CLICK., |
| 200 | PROP_DIALOGS_USE_HEADERcxx . . $ PROP_DIALOGS_USE_HEADER., |
| 201 | PROP_ENABLE_PRIMARY_PASTEcxx . . $ PROP_ENABLE_PRIMARY_PASTE., |
| 202 | PROP_RECENT_FILES_ENABLEDcxx . . $ PROP_RECENT_FILES_ENABLED., |
| 203 | PROP_LONG_PRESS_TIMEcxx . . $ PROP_LONG_PRESS_TIME., |
| 204 | PROP_KEYNAV_USE_CARETcxx . . $ PROP_KEYNAV_USE_CARET., |
| 205 | PROP_OVERLAY_SCROLLINGcxx . . $ PROP_OVERLAY_SCROLLING., |
| 206 | PROP_FONT_RENDERINGcxx . . $ PROP_FONT_RENDERING., |
| 207 | PROP_INTERFACE_COLOR_SCHEMEcxx . . $ PROP_INTERFACE_COLOR_SCHEME., |
| 208 | PROP_INTERFACE_CONTRASTcxx . . $ PROP_INTERFACE_CONTRAST., |
| 209 | PROP_INTERFACE_REDUCED_MOTIONcxx . . $ PROP_INTERFACE_REDUCED_MOTION., |
| 210 | |
| 211 | NUM_PROPERTIEScxx . . $ NUM_PROPERTIES. |
| 212 | }; |
| 213 | |
| 214 | static GParamSpeccxx . . $ GParamSpec# *pspecscxx . . $ pspecs.[NUM_PROPERTIEScxx . . $ NUM_PROPERTIES.] = { NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, }; |
| 215 | |
| 216 | /* --- prototypes --- */ |
| 217 | static void gtk_settings_provider_iface_initcxx . . $ gtk_settings_provider_iface_init(670ec270bfca9785). (GtkStyleProviderInterfacecxx . . $ GtkStyleProviderInterface# *iface); |
| 218 | |
| 219 | static void gtk_settings_finalizecxx . . $ gtk_settings_finalize(6087475fa43034d3). (GObjectcxx . . $ GObject# *object); |
| 220 | static void gtk_settings_get_propertycxx . . $ gtk_settings_get_property(cee2c52f22407c66). (GObjectcxx . . $ GObject# *object, |
| 221 | guintcxx . . $ guint# property_id, |
| 222 | GValuecxx . . $ GValue# *value, |
| 223 | GParamSpeccxx . . $ GParamSpec# *pspec); |
| 224 | static void gtk_settings_set_propertycxx . . $ gtk_settings_set_property(d7c4bb29f36c0dc4). (GObjectcxx . . $ GObject# *object, |
| 225 | guintcxx . . $ guint# property_id, |
| 226 | const GValuecxx . . $ GValue# *value, |
| 227 | GParamSpeccxx . . $ GParamSpec# *pspec); |
| 228 | static void gtk_settings_notifycxx . . $ gtk_settings_notify(89706f8943b9e738). (GObjectcxx . . $ GObject# *object, |
| 229 | GParamSpeccxx . . $ GParamSpec# *pspec); |
| 230 | static void settings_update_double_clickcxx . . $ settings_update_double_click(3a1a2342f95e7c64). (GtkSettingscxx . . $ GtkSettings# *settings); |
| 231 | |
| 232 | static void settings_update_cursor_themecxx . . $ settings_update_cursor_theme(3a1a2342f95e7c64). (GtkSettingscxx . . $ GtkSettings# *settings); |
| 233 | static void settings_update_font_optionscxx . . $ settings_update_font_options(3a1a2342f95e7c64). (GtkSettingscxx . . $ GtkSettings# *settings); |
| 234 | static void settings_update_font_valuescxx . . $ settings_update_font_values(3a1a2342f95e7c64). (GtkSettingscxx . . $ GtkSettings# *settings); |
| 235 | static gbooleancxx . . $ gboolean# settings_update_fontconfigcxx . . $ settings_update_fontconfig(8c2d6b4329623181). (GtkSettingscxx . . $ GtkSettings# *settings); |
| 236 | static void settings_update_themecxx . . $ settings_update_theme(3a1a2342f95e7c64). (GtkSettingscxx . . $ GtkSettings# *settings); |
| 237 | static gbooleancxx . . $ gboolean# settings_update_xsettingcxx . . $ settings_update_xsetting(be69404bc415217e). (GtkSettingscxx . . $ GtkSettings# *settings, |
| 238 | GParamSpeccxx . . $ GParamSpec# *pspec, |
| 239 | gbooleancxx . . $ gboolean# force); |
| 240 | static void settings_update_xsettingscxx . . $ settings_update_xsettings(3a1a2342f95e7c64). (GtkSettingscxx . . $ GtkSettings# *settings); |
| 241 | |
| 242 | static void gtk_settings_load_from_key_filecxx . . $ gtk_settings_load_from_key_file(fce4901f2b14d8f7). (GtkSettingscxx . . $ GtkSettings# *settings, |
| 243 | const char *path, |
| 244 | GtkSettingsSourcecxx . . $ GtkSettingsSource# source); |
| 245 | static void settings_update_providercxx . . $ settings_update_provider(cb12836823980416). (GdkDisplaycxx . . $ GdkDisplay# *display, |
| 246 | GtkCssProvidercxx . . $ GtkCssProvider# **old, |
| 247 | GtkCssProvidercxx . . $ GtkCssProvider# *new); |
| 248 | |
| 249 | /* --- variables --- */ |
| 250 | static GQuarkcxx . . $ GQuark# quark_gtk_settingscxx . . $ quark_gtk_settings. = 0; |
| 251 | |
| 252 | static GPtrArraycxx . . $ GPtrArray# *display_settingscxx . . $ display_settings.; |
| 253 | |
| 254 | |
| 255 | G_DEFINE_TYPE_EXTENDEDcxx . . $ `<external>/9567554376676449156/gtype.h:2053:9`! (GtkSettings, gtk_settings, G_TYPE_OBJECTcxx . . $ `<external>/9567554376676449156/gtype.h:189:9`!, 0, |
| 256 | G_IMPLEMENT_INTERFACEcxx . . $ `<external>/9567554376676449156/gtype.h:2115:9`! (GTK_TYPE_STYLE_PROVIDERcxx . . $ `gtk/gtkstyleprovider.h:30:9`!, |
| 257 | gtk_settings_provider_iface_init)); |
| 258 | |
| 259 | /* --- functions --- */ |
| 260 | static void |
| 261 | gtk_settings_initcxx . . $ gtk_settings_init(3a1a2342f95e7c64). (GtkSettingscxx . . $ GtkSettings# *settings) |
| 262 | { |
| 263 | guintcxx . . $ guint# i = 0; |
| 264 | char *path; |
| 265 | const char * const *config_dirs; |
| 266 | |
| 267 | g_datalist_initcxx . . $ g_datalist_init(d78fb93e741d8f95). (&settings->queued_settingscxx . . $ _GtkSettings#queued_settings.); |
| 268 | |
| 269 | settings->property_valuescxx . . $ _GtkSettings#property_values. = g_new0cxx . . $ `<external>/1123956534522462559/gmem.h:335:9`! (GtkSettingsPropertyValue, NUM_PROPERTIES - 1); |
| 270 | g_object_freeze_notifycxx . . $ g_object_freeze_notify(6087475fa43034d3). (G_OBJECTcxx . . $ `<external>/1341695927569185362/gobject.h:54:9`! (settings)); |
| 271 | |
| 272 | for (i = 1; i < NUM_PROPERTIEScxx . . $ NUM_PROPERTIES.; i++) |
| 273 | { |
| 274 | GParamSpeccxx . . $ GParamSpec# *pspec = pspecscxx . . $ pspecs.[i]; |
| 275 | GTypecxx . . $ GType# value_type = G_PARAM_SPEC_VALUE_TYPEcxx . . $ `<external>/7453068347527694854/gparam.h:105:9`! (pspec); |
| 276 | |
| 277 | g_value_initcxx . . $ g_value_init(afc049a76445919c). (&settings->property_valuescxx . . $ _GtkSettings#property_values.[i - 1].valuecxx . . $ _GtkSettingsPropertyValue#value., value_type); |
| 278 | g_param_value_set_defaultcxx . . $ g_param_value_set_default(b2512a401e854eb5). (pspec, &settings->property_valuescxx . . $ _GtkSettings#property_values.[i - 1].valuecxx . . $ _GtkSettingsPropertyValue#value.); |
| 279 | |
| 280 | g_object_notify_by_pspeccxx . . $ g_object_notify_by_pspec(89706f8943b9e738). (G_OBJECTcxx . . $ `<external>/1341695927569185362/gobject.h:54:9`! (settings), pspec); |
| 281 | settings->property_valuescxx . . $ _GtkSettings#property_values.[i - 1].sourcecxx . . $ _GtkSettingsPropertyValue#source. = GTK_SETTINGS_SOURCE_DEFAULTcxx . . $ GTK_SETTINGS_SOURCE_DEFAULT.; |
| 282 | } |
| 283 | |
| 284 | path = g_build_filenamecxx . . $ g_build_filename(a849077ff1b8d812). (_gtk_get_data_prefixcxx . . $ _gtk_get_data_prefix(33a1f659e94feb42). (), "share", "gtk-4.0", "settings.ini", NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!); |
| 285 | gtk_settings_load_from_key_filecxx . . $ gtk_settings_load_from_key_file(fce4901f2b14d8f7). (settings, path, GTK_SETTINGS_SOURCE_DEFAULTcxx . . $ GTK_SETTINGS_SOURCE_DEFAULT.); |
| 286 | g_freecxx . . $ g_free(5d22bdacc48458e8). (path); |
| 287 | |
| 288 | path = g_build_filenamecxx . . $ g_build_filename(a849077ff1b8d812). (_gtk_get_sysconfdircxx . . $ _gtk_get_sysconfdir(33a1f659e94feb42). (), "gtk-4.0", "settings.ini", NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!); |
| 289 | gtk_settings_load_from_key_filecxx . . $ gtk_settings_load_from_key_file(fce4901f2b14d8f7). (settings, path, GTK_SETTINGS_SOURCE_DEFAULTcxx . . $ GTK_SETTINGS_SOURCE_DEFAULT.); |
| 290 | g_freecxx . . $ g_free(5d22bdacc48458e8). (path); |
| 291 | |
| 292 | config_dirs = g_get_system_config_dirscxx . . $ g_get_system_config_dirs(93405d8a1d31001f). (); |
| 293 | for (i = 0; config_dirs[i] != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!; i++) |
| 294 | { |
| 295 | path = g_build_filenamecxx . . $ g_build_filename(a849077ff1b8d812). (config_dirs[i], "gtk-4.0", "settings.ini", NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!); |
| 296 | gtk_settings_load_from_key_filecxx . . $ gtk_settings_load_from_key_file(fce4901f2b14d8f7). (settings, path, GTK_SETTINGS_SOURCE_DEFAULTcxx . . $ GTK_SETTINGS_SOURCE_DEFAULT.); |
| 297 | g_freecxx . . $ g_free(5d22bdacc48458e8). (path); |
| 298 | } |
| 299 | |
| 300 | path = g_build_filenamecxx . . $ g_build_filename(a849077ff1b8d812). (g_get_user_config_dircxx . . $ g_get_user_config_dir(33a1f659e94feb42). (), "gtk-4.0", "settings.ini", NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!); |
| 301 | gtk_settings_load_from_key_filecxx . . $ gtk_settings_load_from_key_file(fce4901f2b14d8f7). (settings, path, GTK_SETTINGS_SOURCE_DEFAULTcxx . . $ GTK_SETTINGS_SOURCE_DEFAULT.); |
| 302 | g_freecxx . . $ g_free(5d22bdacc48458e8). (path); |
| 303 | |
| 304 | g_object_thaw_notifycxx . . $ g_object_thaw_notify(6087475fa43034d3). (G_OBJECTcxx . . $ `<external>/1341695927569185362/gobject.h:54:9`! (settings)); |
| 305 | |
| 306 | /* ensure that derived fields are initialized */ |
| 307 | if (settings->font_sizecxx . . $ _GtkSettings#font_size. == 0) |
| 308 | settings_update_font_valuescxx . . $ settings_update_font_values(3a1a2342f95e7c64). (settings); |
| 309 | } |
| 310 | |
| 311 | static void |
| 312 | gtk_settings_class_initcxx . . $ gtk_settings_class_init(b0e8d8d608f8717f). (GtkSettingsClasscxx . . $ GtkSettingsClass# *class) |
| 313 | { |
| 314 | GObjectClasscxx . . $ GObjectClass# *gobject_class = G_OBJECT_CLASScxx . . $ `<external>/1341695927569185362/gobject.h:61:9`! (class); |
| 315 | guintcxx . . $ guint# result G_GNUC_UNUSEDcxx . . $ `<external>/12741050725406041920/gmacros.h:647:9`!; |
| 316 | |
| 317 | gobject_class->finalizecxx . . $ _GObjectClass#finalize. = gtk_settings_finalizecxx . . $ gtk_settings_finalize(6087475fa43034d3).; |
| 318 | gobject_class->get_propertycxx . . $ _GObjectClass#get_property. = gtk_settings_get_propertycxx . . $ gtk_settings_get_property(cee2c52f22407c66).; |
| 319 | gobject_class->set_propertycxx . . $ _GObjectClass#set_property. = gtk_settings_set_propertycxx . . $ gtk_settings_set_property(d7c4bb29f36c0dc4).; |
| 320 | gobject_class->notifycxx . . $ _GObjectClass#notify. = gtk_settings_notifycxx . . $ gtk_settings_notify(89706f8943b9e738).; |
| 321 | |
| 322 | quark_gtk_settingscxx . . $ quark_gtk_settings. = g_quark_from_static_stringcxx . . $ g_quark_from_static_string(c61c63047ce273de). ("gtk-settings"); |
| 323 | |
| 324 | /** |
| 325 | * GtkSettings:gtk-double-click-time: |
| 326 | * |
| 327 | * The maximum time to allow between two clicks for them to be considered |
| 328 | * a double click, in milliseconds. |
| 329 | */ |
| 330 | pspecscxx . . $ pspecs.[PROP_DOUBLE_CLICK_TIMEcxx . . $ PROP_DOUBLE_CLICK_TIME.] = g_param_spec_intcxx . . $ g_param_spec_int(eedf0a930522f60e). ("gtk-double-click-time", NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, |
| 331 | 0, G_MAXINTcxx . . $ `<external>/10505296616216143549/glibconfig.h:39:9`!, 400, |
| 332 | GTK_PARAM_READWRITEcxx . . $ `gtk/gtkprivate.h:44:9`!); |
| 333 | |
| 334 | /** |
| 335 | * GtkSettings:gtk-double-click-distance: |
| 336 | * |
| 337 | * The maximum distance allowed between two clicks for them to be considered |
| 338 | * a double click, in pixels. |
| 339 | */ |
| 340 | pspecscxx . . $ pspecs.[PROP_DOUBLE_CLICK_DISTANCEcxx . . $ PROP_DOUBLE_CLICK_DISTANCE.] = g_param_spec_intcxx . . $ g_param_spec_int(eedf0a930522f60e). ("gtk-double-click-distance", NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, |
| 341 | 0, G_MAXINTcxx . . $ `<external>/10505296616216143549/glibconfig.h:39:9`!, 5, |
| 342 | GTK_PARAM_READWRITEcxx . . $ `gtk/gtkprivate.h:44:9`!); |
| 343 | |
| 344 | /** |
| 345 | * GtkSettings:gtk-cursor-blink: |
| 346 | * |
| 347 | * Whether the cursor should blink. |
| 348 | * |
| 349 | * Also see the [[email protected]:gtk-cursor-blink-timeout] setting, |
| 350 | * which allows more flexible control over cursor blinking. |
| 351 | */ |
| 352 | pspecscxx . . $ pspecs.[PROP_CURSOR_BLINKcxx . . $ PROP_CURSOR_BLINK.] = g_param_spec_booleancxx . . $ g_param_spec_boolean(315d86b79c0116e0). ("gtk-cursor-blink", NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, |
| 353 | TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!, |
| 354 | GTK_PARAM_READWRITEcxx . . $ `gtk/gtkprivate.h:44:9`!); |
| 355 | |
| 356 | /** |
| 357 | * GtkSettings:gtk-cursor-blink-time: |
| 358 | * |
| 359 | * Length of the cursor blink cycle, in milliseconds. |
| 360 | */ |
| 361 | pspecscxx . . $ pspecs.[PROP_CURSOR_BLINK_TIMEcxx . . $ PROP_CURSOR_BLINK_TIME.] = g_param_spec_intcxx . . $ g_param_spec_int(eedf0a930522f60e). ("gtk-cursor-blink-time", NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, |
| 362 | 100, G_MAXINTcxx . . $ `<external>/10505296616216143549/glibconfig.h:39:9`!, 1200, |
| 363 | GTK_PARAM_READWRITEcxx . . $ `gtk/gtkprivate.h:44:9`!); |
| 364 | |
| 365 | /** |
| 366 | * GtkSettings:gtk-cursor-blink-timeout: |
| 367 | * |
| 368 | * Time after which the cursor stops blinking, in seconds. |
| 369 | * |
| 370 | * The timer is reset after each user interaction. |
| 371 | * |
| 372 | * Setting this to zero has the same effect as setting |
| 373 | * [[email protected]:gtk-cursor-blink] to %FALSE. |
| 374 | */ |
| 375 | pspecscxx . . $ pspecs.[PROP_CURSOR_BLINK_TIMEOUTcxx . . $ PROP_CURSOR_BLINK_TIMEOUT.] = g_param_spec_intcxx . . $ g_param_spec_int(eedf0a930522f60e). ("gtk-cursor-blink-timeout", NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, |
| 376 | 1, G_MAXINTcxx . . $ `<external>/10505296616216143549/glibconfig.h:39:9`!, 10, |
| 377 | GTK_PARAM_READWRITEcxx . . $ `gtk/gtkprivate.h:44:9`!); |
| 378 | |
| 379 | /** |
| 380 | * GtkSettings:gtk-split-cursor: |
| 381 | * |
| 382 | * Whether two cursors should be displayed for mixed left-to-right and |
| 383 | * right-to-left text. |
| 384 | */ |
| 385 | pspecscxx . . $ pspecs.[PROP_SPLIT_CURSORcxx . . $ PROP_SPLIT_CURSOR.] = g_param_spec_booleancxx . . $ g_param_spec_boolean(315d86b79c0116e0). ("gtk-split-cursor", NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, |
| 386 | FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!, |
| 387 | GTK_PARAM_READWRITEcxx . . $ `gtk/gtkprivate.h:44:9`!); |
| 388 | |
| 389 | /** |
| 390 | * GtkSettings:gtk-cursor-aspect-ratio: |
| 391 | * |
| 392 | * The aspect ratio of the text caret. |
| 393 | */ |
| 394 | pspecscxx . . $ pspecs.[PROP_CURSOR_ASPECT_RATIOcxx . . $ PROP_CURSOR_ASPECT_RATIO.] = g_param_spec_doublecxx . . $ g_param_spec_double(7074fc8ad37faddb). ("gtk-cursor-aspect-ratio", NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, |
| 395 | 0.0, 1.0, 0.04, |
| 396 | GTK_PARAM_READWRITEcxx . . $ `gtk/gtkprivate.h:44:9`!); |
| 397 | |
| 398 | /** |
| 399 | * GtkSettings:gtk-theme-name: |
| 400 | * |
| 401 | * Name of the theme to load. |
| 402 | * |
| 403 | * See [[email protected]] for details about how |
| 404 | * GTK finds the CSS stylesheet for a theme. |
| 405 | */ |
| 406 | pspecscxx . . $ pspecs.[PROP_THEME_NAMEcxx . . $ PROP_THEME_NAME.] = g_param_spec_stringcxx . . $ g_param_spec_string(378e8746be5cd899). ("gtk-theme-name", NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, |
| 407 | DEFAULT_THEME_NAMEcxx . . $ `gtk/gtksettingsprivate.h:25:9`!, |
| 408 | GTK_PARAM_READWRITEcxx . . $ `gtk/gtkprivate.h:44:9`!); |
| 409 | |
| 410 | /** |
| 411 | * GtkSettings:gtk-icon-theme-name: |
| 412 | * |
| 413 | * Name of the icon theme to use. |
| 414 | * |
| 415 | * See [[email protected]] for details about how |
| 416 | * GTK handles icon themes. |
| 417 | */ |
| 418 | pspecscxx . . $ pspecs.[PROP_ICON_THEME_NAMEcxx . . $ PROP_ICON_THEME_NAME.] = g_param_spec_stringcxx . . $ g_param_spec_string(378e8746be5cd899). ("gtk-icon-theme-name", NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, |
| 419 | DEFAULT_ICON_THEMEcxx . . $ `gtk/gtksettingsprivate.h:26:9`!, |
| 420 | GTK_PARAM_READWRITEcxx . . $ `gtk/gtkprivate.h:44:9`!); |
| 421 | |
| 422 | /** |
| 423 | * GtkSettings:gtk-dnd-drag-threshold: |
| 424 | * |
| 425 | * The number of pixels the cursor can move before dragging. |
| 426 | */ |
| 427 | pspecscxx . . $ pspecs.[PROP_DND_DRAG_THRESHOLDcxx . . $ PROP_DND_DRAG_THRESHOLD.] = g_param_spec_intcxx . . $ g_param_spec_int(eedf0a930522f60e). ("gtk-dnd-drag-threshold", NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, |
| 428 | 1, G_MAXINTcxx . . $ `<external>/10505296616216143549/glibconfig.h:39:9`!, 8, |
| 429 | GTK_PARAM_READWRITEcxx . . $ `gtk/gtkprivate.h:44:9`!); |
| 430 | |
| 431 | /** |
| 432 | * GtkSettings:gtk-font-name: |
| 433 | * |
| 434 | * The default font to use. |
| 435 | * |
| 436 | * GTK uses the family name and size from this string. |
| 437 | */ |
| 438 | pspecscxx . . $ pspecs.[PROP_FONT_NAMEcxx . . $ PROP_FONT_NAME.] = g_param_spec_stringcxx . . $ g_param_spec_string(378e8746be5cd899). ("gtk-font-name", NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, |
| 439 | "Sans 10", |
| 440 | GTK_PARAM_READWRITEcxx . . $ `gtk/gtkprivate.h:44:9`!); |
| 441 | |
| 442 | /** |
| 443 | * GtkSettings:gtk-xft-antialias: |
| 444 | * |
| 445 | * Whether to antialias fonts. |
| 446 | * |
| 447 | * The values are 0 for no, 1 for yes, or -1 for the system default. |
| 448 | */ |
| 449 | pspecscxx . . $ pspecs.[PROP_XFT_ANTIALIAScxx . . $ PROP_XFT_ANTIALIAS.] = g_param_spec_intcxx . . $ g_param_spec_int(eedf0a930522f60e). ("gtk-xft-antialias", NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, |
| 450 | -1, 1, -1, |
| 451 | GTK_PARAM_READWRITEcxx . . $ `gtk/gtkprivate.h:44:9`!); |
| 452 | |
| 453 | /** |
| 454 | * GtkSettings:gtk-xft-hinting: |
| 455 | * |
| 456 | * Whether to enable font hinting. |
| 457 | * |
| 458 | * The values are 0 for no, 1 for yes, or -1 for the system default. |
| 459 | */ |
| 460 | pspecscxx . . $ pspecs.[PROP_XFT_HINTINGcxx . . $ PROP_XFT_HINTING.] = g_param_spec_intcxx . . $ g_param_spec_int(eedf0a930522f60e). ("gtk-xft-hinting", NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, |
| 461 | -1, 1, -1, |
| 462 | GTK_PARAM_READWRITEcxx . . $ `gtk/gtkprivate.h:44:9`!); |
| 463 | |
| 464 | /** |
| 465 | * GtkSettings:gtk-xft-hintstyle: |
| 466 | * |
| 467 | * What degree of font hinting to use. |
| 468 | * |
| 469 | * The possible vaues are hintnone, hintslight, |
| 470 | * hintmedium, hintfull. |
| 471 | */ |
| 472 | pspecscxx . . $ pspecs.[PROP_XFT_HINTSTYLEcxx . . $ PROP_XFT_HINTSTYLE.] = g_param_spec_stringcxx . . $ g_param_spec_string(378e8746be5cd899). ("gtk-xft-hintstyle", NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, |
| 473 | NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, |
| 474 | GTK_PARAM_READWRITEcxx . . $ `gtk/gtkprivate.h:44:9`!); |
| 475 | |
| 476 | /** |
| 477 | * GtkSettings:gtk-xft-rgba: |
| 478 | * |
| 479 | * The type of subpixel antialiasing to use. |
| 480 | * |
| 481 | * The possible values are none, rgb, bgr, vrgb, vbgr. |
| 482 | * |
| 483 | * Note that GSK does not support subpixel antialiasing, and this |
| 484 | * setting has no effect on font rendering in GTK. |
| 485 | */ |
| 486 | pspecscxx . . $ pspecs.[PROP_XFT_RGBAcxx . . $ PROP_XFT_RGBA.] = g_param_spec_stringcxx . . $ g_param_spec_string(378e8746be5cd899). ("gtk-xft-rgba", NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, |
| 487 | NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, |
| 488 | GTK_PARAM_READWRITEcxx . . $ `gtk/gtkprivate.h:44:9`!); |
| 489 | |
| 490 | /** |
| 491 | * GtkSettings:gtk-xft-dpi: |
| 492 | * |
| 493 | * The font resolution, in 1024 * dots/inch. |
| 494 | * |
| 495 | * -1 to use the default value. |
| 496 | */ |
| 497 | pspecscxx . . $ pspecs.[PROP_XFT_DPIcxx . . $ PROP_XFT_DPI.] = g_param_spec_intcxx . . $ g_param_spec_int(eedf0a930522f60e). ("gtk-xft-dpi", NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, |
| 498 | -1, 1024*1024, -1, |
| 499 | GTK_PARAM_READWRITEcxx . . $ `gtk/gtkprivate.h:44:9`!); |
| 500 | |
| 501 | /** |
| 502 | * GtkSettings:gtk-hint-font-metrics: |
| 503 | * |
| 504 | * Whether hinting should be applied to font metrics. |
| 505 | * |
| 506 | * Note that this also turns off subpixel positioning of glyphs, |
| 507 | * since it conflicts with metrics hinting. |
| 508 | * |
| 509 | * Since: 4.6 |
| 510 | */ |
| 511 | pspecscxx . . $ pspecs.[PROP_HINT_FONT_METRICScxx . . $ PROP_HINT_FONT_METRICS.] = g_param_spec_booleancxx . . $ g_param_spec_boolean(315d86b79c0116e0). ("gtk-hint-font-metrics", NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, |
| 512 | TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!, |
| 513 | GTK_PARAM_READWRITEcxx . . $ `gtk/gtkprivate.h:44:9`!); |
| 514 | |
| 515 | /** |
| 516 | * GtkSettings:gtk-cursor-theme-name: |
| 517 | * |
| 518 | * Name of the cursor theme to use. |
| 519 | * |
| 520 | * Use %NULL to use the default theme. |
| 521 | */ |
| 522 | pspecscxx . . $ pspecs.[PROP_CURSOR_THEME_NAMEcxx . . $ PROP_CURSOR_THEME_NAME.] = g_param_spec_stringcxx . . $ g_param_spec_string(378e8746be5cd899). ("gtk-cursor-theme-name", NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, |
| 523 | NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, |
| 524 | GTK_PARAM_READWRITEcxx . . $ `gtk/gtkprivate.h:44:9`!); |
| 525 | |
| 526 | /** |
| 527 | * GtkSettings:gtk-cursor-theme-size: |
| 528 | * |
| 529 | * The size to use for cursors. |
| 530 | * |
| 531 | * 0 means to use the default size. |
| 532 | */ |
| 533 | pspecscxx . . $ pspecs.[PROP_CURSOR_THEME_SIZEcxx . . $ PROP_CURSOR_THEME_SIZE.] = g_param_spec_intcxx . . $ g_param_spec_int(eedf0a930522f60e). ("gtk-cursor-theme-size", NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, |
| 534 | 0, 128, 0, |
| 535 | GTK_PARAM_READWRITEcxx . . $ `gtk/gtkprivate.h:44:9`!); |
| 536 | |
| 537 | /** |
| 538 | * GtkSettings:gtk-alternative-button-order: |
| 539 | * |
| 540 | * Whether buttons in dialogs should use the alternative button order. |
| 541 | */ |
| 542 | pspecscxx . . $ pspecs.[PROP_ALTERNATIVE_BUTTON_ORDERcxx . . $ PROP_ALTERNATIVE_BUTTON_ORDER.] = g_param_spec_booleancxx . . $ g_param_spec_boolean(315d86b79c0116e0). ("gtk-alternative-button-order", NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, |
| 543 | FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!, |
| 544 | GTK_PARAM_READWRITEcxx . . $ `gtk/gtkprivate.h:44:9`!); |
| 545 | |
| 546 | /** |
| 547 | * GtkSettings:gtk-alternative-sort-arrows: |
| 548 | * |
| 549 | * Controls the direction of the sort indicators in sorted list and tree |
| 550 | * views. |
| 551 | * |
| 552 | * By default an arrow pointing down means the column is sorted |
| 553 | * in ascending order. When set to %TRUE, this order will be inverted. |
| 554 | */ |
| 555 | pspecscxx . . $ pspecs.[PROP_ALTERNATIVE_SORT_ARROWScxx . . $ PROP_ALTERNATIVE_SORT_ARROWS.] = g_param_spec_booleancxx . . $ g_param_spec_boolean(315d86b79c0116e0). ("gtk-alternative-sort-arrows", NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, |
| 556 | FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!, |
| 557 | GTK_PARAM_READWRITEcxx . . $ `gtk/gtkprivate.h:44:9`!); |
| 558 | |
| 559 | /** |
| 560 | * GtkSettings:gtk-enable-animations: |
| 561 | * |
| 562 | * Whether to enable toolkit-wide animations. |
| 563 | */ |
| 564 | pspecscxx . . $ pspecs.[PROP_ENABLE_ANIMATIONScxx . . $ PROP_ENABLE_ANIMATIONS.] = g_param_spec_booleancxx . . $ g_param_spec_boolean(315d86b79c0116e0). ("gtk-enable-animations", NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, |
| 565 | TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!, |
| 566 | GTK_PARAM_READWRITEcxx . . $ `gtk/gtkprivate.h:44:9`!); |
| 567 | |
| 568 | /** |
| 569 | * GtkSettings:gtk-error-bell: |
| 570 | * |
| 571 | * When %TRUE, keyboard navigation and other input-related errors |
| 572 | * will cause a beep. |
| 573 | * |
| 574 | * Since the error bell is implemented using gdk_surface_beep(), the |
| 575 | * windowing system may offer ways to configure the error bell in many |
| 576 | * ways, such as flashing the window or similar visual effects. |
| 577 | */ |
| 578 | pspecscxx . . $ pspecs.[PROP_ERROR_BELLcxx . . $ PROP_ERROR_BELL.] = g_param_spec_booleancxx . . $ g_param_spec_boolean(315d86b79c0116e0). ("gtk-error-bell", NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, |
| 579 | TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!, |
| 580 | GTK_PARAM_READWRITEcxx . . $ `gtk/gtkprivate.h:44:9`!); |
| 581 | |
| 582 | /** |
| 583 | * GtkSettings:gtk-show-status-shapes: |
| 584 | * |
| 585 | * When %TRUE, widgets like switches include shapes to indicate their on/off state. |
| 586 | * |
| 587 | * Since: 4.14 |
| 588 | */ |
| 589 | pspecscxx . . $ pspecs.[PROP_STATUS_SHAPEScxx . . $ PROP_STATUS_SHAPES.] = g_param_spec_booleancxx . . $ g_param_spec_boolean(315d86b79c0116e0). ("gtk-show-status-shapes", NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, |
| 590 | FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!, |
| 591 | GTK_PARAM_READWRITEcxx . . $ `gtk/gtkprivate.h:44:9`!); |
| 592 | |
| 593 | /** |
| 594 | * GtkSettings:gtk-print-backends: |
| 595 | * |
| 596 | * A comma-separated list of print backends to use in the print |
| 597 | * dialog. |
| 598 | * |
| 599 | * Available print backends depend on the GTK installation, |
| 600 | * and may include "file", "cups", "lpr" or "papi". |
| 601 | */ |
| 602 | pspecscxx . . $ pspecs.[PROP_PRINT_BACKENDScxx . . $ PROP_PRINT_BACKENDS.] = g_param_spec_stringcxx . . $ g_param_spec_string(378e8746be5cd899). ("gtk-print-backends", NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, |
| 603 | GTK_PRINT_BACKENDScxx . . $ `build/config.h:18:9`!, |
| 604 | GTK_PARAM_READWRITEcxx . . $ `gtk/gtkprivate.h:44:9`!); |
| 605 | |
| 606 | /** |
| 607 | * GtkSettings:gtk-print-preview-command: |
| 608 | * |
| 609 | * A command to run for displaying the print preview. |
| 610 | * |
| 611 | * The command should contain a `%f` placeholder, which will get |
| 612 | * replaced by the path to the pdf file. The command may also |
| 613 | * contain a `%s` placeholder, which will get replaced by the |
| 614 | * path to a file containing the print settings in the format |
| 615 | * produced by [[email protected]_file]. |
| 616 | * |
| 617 | * The preview application is responsible for removing the pdf |
| 618 | * file and the print settings file when it is done. |
| 619 | */ |
| 620 | pspecscxx . . $ pspecs.[PROP_PRINT_PREVIEW_COMMANDcxx . . $ PROP_PRINT_PREVIEW_COMMAND.] = g_param_spec_stringcxx . . $ g_param_spec_string(378e8746be5cd899). ("gtk-print-preview-command", NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, |
| 621 | PRINT_PREVIEW_COMMANDcxx . . $ `gtk/gtksettings.c:61:9`!, |
| 622 | GTK_PARAM_READWRITEcxx . . $ `gtk/gtkprivate.h:44:9`!); |
| 623 | |
| 624 | /** |
| 625 | * GtkSettings:gtk-enable-accels: |
| 626 | * |
| 627 | * Whether menu items should have visible accelerators which can be |
| 628 | * activated. |
| 629 | */ |
| 630 | pspecscxx . . $ pspecs.[PROP_ENABLE_ACCELScxx . . $ PROP_ENABLE_ACCELS.] = g_param_spec_booleancxx . . $ g_param_spec_boolean(315d86b79c0116e0). ("gtk-enable-accels", NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, |
| 631 | TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!, |
| 632 | GTK_PARAM_READWRITEcxx . . $ `gtk/gtkprivate.h:44:9`!); |
| 633 | |
| 634 | /** |
| 635 | * GtkSettings:gtk-im-module: |
| 636 | * |
| 637 | * Which IM (input method) module should be used by default. |
| 638 | * |
| 639 | * This is the input method that will be used if the user has not |
| 640 | * explicitly chosen another input method from the IM context menu. |
| 641 | * This also can be a colon-separated list of input methods, which GTK |
| 642 | * will try in turn until it finds one available on the system. |
| 643 | * |
| 644 | * See [[email protected]]. |
| 645 | */ |
| 646 | pspecscxx . . $ pspecs.[PROP_IM_MODULEcxx . . $ PROP_IM_MODULE.] = g_param_spec_stringcxx . . $ g_param_spec_string(378e8746be5cd899). ("gtk-im-module", NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, |
| 647 | NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, |
| 648 | GTK_PARAM_READWRITEcxx . . $ `gtk/gtkprivate.h:44:9`!); |
| 649 | |
| 650 | /** |
| 651 | * GtkSettings:gtk-recent-files-max-age: |
| 652 | * |
| 653 | * The maximum age, in days, of the items inside the recently used |
| 654 | * resources list. |
| 655 | * |
| 656 | * Items older than this setting will be excised from the list. |
| 657 | * If set to 0, the list will always be empty; if set to -1, no |
| 658 | * item will be removed. |
| 659 | */ |
| 660 | pspecscxx . . $ pspecs.[PROP_RECENT_FILES_MAX_AGEcxx . . $ PROP_RECENT_FILES_MAX_AGE.] = g_param_spec_intcxx . . $ g_param_spec_int(eedf0a930522f60e). ("gtk-recent-files-max-age", NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, |
| 661 | -1, G_MAXINTcxx . . $ `<external>/10505296616216143549/glibconfig.h:39:9`!, |
| 662 | 30, |
| 663 | GTK_PARAM_READWRITEcxx . . $ `gtk/gtkprivate.h:44:9`!); |
| 664 | |
| 665 | /** |
| 666 | * GtkSettings:gtk-fontconfig-timestamp: |
| 667 | * |
| 668 | * Timestamp of the current fontconfig configuration. |
| 669 | */ |
| 670 | pspecscxx . . $ pspecs.[PROP_FONTCONFIG_TIMESTAMPcxx . . $ PROP_FONTCONFIG_TIMESTAMP.] = g_param_spec_uintcxx . . $ g_param_spec_uint(503a1013c8de17d5). ("gtk-fontconfig-timestamp", NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, |
| 671 | 0, G_MAXUINTcxx . . $ `<external>/10505296616216143549/glibconfig.h:40:9`!, 0, |
| 672 | GTK_PARAM_READWRITEcxx . . $ `gtk/gtkprivate.h:44:9`!); |
| 673 | |
| 674 | /** |
| 675 | * GtkSettings:gtk-sound-theme-name: |
| 676 | * |
| 677 | * The XDG sound theme to use for event sounds. |
| 678 | * |
| 679 | * See the [Sound Theme Specifications](http://www.freedesktop.org/wiki/Specifications/sound-theme-spec) |
| 680 | * for more information on event sounds and sound themes. |
| 681 | * |
| 682 | * GTK itself does not support event sounds, you have to use |
| 683 | * a loadable module like the one that comes with libcanberra. |
| 684 | */ |
| 685 | pspecscxx . . $ pspecs.[PROP_SOUND_THEME_NAMEcxx . . $ PROP_SOUND_THEME_NAME.] = g_param_spec_stringcxx . . $ g_param_spec_string(378e8746be5cd899). ("gtk-sound-theme-name", NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, |
| 686 | "freedesktop", |
| 687 | GTK_PARAM_READWRITEcxx . . $ `gtk/gtkprivate.h:44:9`!); |
| 688 | |
| 689 | /** |
| 690 | * GtkSettings:gtk-enable-input-feedback-sounds: |
| 691 | * |
| 692 | * Whether to play event sounds as feedback to user input. |
| 693 | * |
| 694 | * See the [Sound Theme Specifications](http://www.freedesktop.org/wiki/Specifications/sound-theme-spec) |
| 695 | * for more information on event sounds and sound themes. |
| 696 | * |
| 697 | * GTK itself does not support event sounds, you have to use a loadable |
| 698 | * module like the one that comes with libcanberra. |
| 699 | */ |
| 700 | pspecscxx . . $ pspecs.[PROP_ENABLE_INPUT_FEEDBACK_SOUNDScxx . . $ PROP_ENABLE_INPUT_FEEDBACK_SOUNDS.] = g_param_spec_booleancxx . . $ g_param_spec_boolean(315d86b79c0116e0). ("gtk-enable-input-feedback-sounds", NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, |
| 701 | TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!, |
| 702 | GTK_PARAM_READWRITEcxx . . $ `gtk/gtkprivate.h:44:9`!); |
| 703 | |
| 704 | /** |
| 705 | * GtkSettings:gtk-enable-event-sounds: |
| 706 | * |
| 707 | * Whether to play any event sounds at all. |
| 708 | * |
| 709 | * See the [Sound Theme Specifications](http://www.freedesktop.org/wiki/Specifications/sound-theme-spec) |
| 710 | * for more information on event sounds and sound themes. |
| 711 | * |
| 712 | * GTK itself does not support event sounds, you have to use a loadable |
| 713 | * module like the one that comes with libcanberra. |
| 714 | */ |
| 715 | pspecscxx . . $ pspecs.[PROP_ENABLE_EVENT_SOUNDScxx . . $ PROP_ENABLE_EVENT_SOUNDS.] = g_param_spec_booleancxx . . $ g_param_spec_boolean(315d86b79c0116e0). ("gtk-enable-event-sounds", NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, |
| 716 | TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!, |
| 717 | GTK_PARAM_READWRITEcxx . . $ `gtk/gtkprivate.h:44:9`!); |
| 718 | |
| 719 | /** |
| 720 | * GtkSettings:gtk-primary-button-warps-slider: |
| 721 | * |
| 722 | * If the value of this setting is %TRUE, clicking the primary button in a |
| 723 | * `GtkRange` trough will move the slider, and hence set the range’s value, to |
| 724 | * the point that you clicked. |
| 725 | * |
| 726 | * If it is %FALSE, a primary click will cause the slider/value to move |
| 727 | * by the range’s page-size towards the point clicked. |
| 728 | * |
| 729 | * Whichever action you choose for the primary button, the other action will |
| 730 | * be available by holding Shift and primary-clicking, or clicking the middle |
| 731 | * mouse button. |
| 732 | */ |
| 733 | pspecscxx . . $ pspecs.[PROP_PRIMARY_BUTTON_WARPS_SLIDERcxx . . $ PROP_PRIMARY_BUTTON_WARPS_SLIDER.] = g_param_spec_booleancxx . . $ g_param_spec_boolean(315d86b79c0116e0). ("gtk-primary-button-warps-slider", NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, |
| 734 | TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!, |
| 735 | GTK_PARAM_READWRITEcxx . . $ `gtk/gtkprivate.h:44:9`!); |
| 736 | |
| 737 | /** |
| 738 | * GtkSettings:gtk-application-prefer-dark-theme: |
| 739 | * |
| 740 | * Whether the application prefers to use a dark theme. |
| 741 | * |
| 742 | * If a GTK theme includes a dark variant, it will be used |
| 743 | * instead of the configured theme. |
| 744 | * |
| 745 | * Some applications benefit from minimizing the amount of light |
| 746 | * pollution that interferes with the content. Good candidates for |
| 747 | * dark themes are photo and video editors that make the actual |
| 748 | * content get all the attention and minimize the distraction of |
| 749 | * the chrome. |
| 750 | * |
| 751 | * Dark themes should not be used for documents, where large spaces |
| 752 | * are white/light and the dark chrome creates too much contrast |
| 753 | * (web browser, text editor...). |
| 754 | * |
| 755 | * Deprecated: 4.20: Use `GtkCssProvider` properties instead |
| 756 | */ |
| 757 | pspecscxx . . $ pspecs.[PROP_APPLICATION_PREFER_DARK_THEMEcxx . . $ PROP_APPLICATION_PREFER_DARK_THEME.] = g_param_spec_booleancxx . . $ g_param_spec_boolean(315d86b79c0116e0). ("gtk-application-prefer-dark-theme", NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, |
| 758 | FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!, |
| 759 | GTK_PARAM_READWRITEcxx . . $ `gtk/gtkprivate.h:44:9`!); |
| 760 | |
| 761 | /** |
| 762 | * GtkSettings:gtk-entry-select-on-focus: |
| 763 | * |
| 764 | * Whether to select the contents of an entry when it is focused. |
| 765 | */ |
| 766 | pspecscxx . . $ pspecs.[PROP_ENTRY_SELECT_ON_FOCUScxx . . $ PROP_ENTRY_SELECT_ON_FOCUS.] = g_param_spec_booleancxx . . $ g_param_spec_boolean(315d86b79c0116e0). ("gtk-entry-select-on-focus", NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, |
| 767 | TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!, |
| 768 | GTK_PARAM_READWRITEcxx . . $ `gtk/gtkprivate.h:44:9`!); |
| 769 | |
| 770 | /** |
| 771 | * GtkSettings:gtk-entry-password-hint-timeout: |
| 772 | * |
| 773 | * How long to show the last input character in hidden |
| 774 | * entries. |
| 775 | * |
| 776 | * This value is in milliseconds. 0 disables showing the |
| 777 | * last char. 600 is a good value for enabling it. |
| 778 | */ |
| 779 | pspecscxx . . $ pspecs.[PROP_ENTRY_PASSWORD_HINT_TIMEOUTcxx . . $ PROP_ENTRY_PASSWORD_HINT_TIMEOUT.] = g_param_spec_uintcxx . . $ g_param_spec_uint(503a1013c8de17d5). ("gtk-entry-password-hint-timeout", NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, |
| 780 | 0, G_MAXUINTcxx . . $ `<external>/10505296616216143549/glibconfig.h:40:9`!, |
| 781 | 0, |
| 782 | GTK_PARAM_READWRITEcxx . . $ `gtk/gtkprivate.h:44:9`!); |
| 783 | |
| 784 | /** |
| 785 | * GtkSettings:gtk-label-select-on-focus: |
| 786 | * |
| 787 | * Whether to select the contents of a selectable |
| 788 | * label when it is focused. |
| 789 | */ |
| 790 | pspecscxx . . $ pspecs.[PROP_LABEL_SELECT_ON_FOCUScxx . . $ PROP_LABEL_SELECT_ON_FOCUS.] = g_param_spec_booleancxx . . $ g_param_spec_boolean(315d86b79c0116e0). ("gtk-label-select-on-focus", NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, |
| 791 | TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!, |
| 792 | GTK_PARAM_READWRITEcxx . . $ `gtk/gtkprivate.h:44:9`!); |
| 793 | |
| 794 | /** |
| 795 | * GtkSettings:gtk-shell-shows-app-menu: |
| 796 | * |
| 797 | * Set to %TRUE if the desktop environment is displaying |
| 798 | * the app menu, %FALSE if the app should display it itself. |
| 799 | * |
| 800 | * Deprecated: 4.20: This setting is not relevant anymore |
| 801 | */ |
| 802 | pspecscxx . . $ pspecs.[PROP_SHELL_SHOWS_APP_MENUcxx . . $ PROP_SHELL_SHOWS_APP_MENU.] = g_param_spec_booleancxx . . $ g_param_spec_boolean(315d86b79c0116e0). ("gtk-shell-shows-app-menu", NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, |
| 803 | FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!, |
| 804 | GTK_PARAM_READWRITEcxx . . $ `gtk/gtkprivate.h:44:9`!); |
| 805 | |
| 806 | /** |
| 807 | * GtkSettings:gtk-shell-shows-menubar: |
| 808 | * |
| 809 | * Set to %TRUE if the desktop environment is displaying |
| 810 | * the menubar, %FALSE if the app should display it itself. |
| 811 | * |
| 812 | * Deprecated: 4.20: This setting is not relevant anymore |
| 813 | */ |
| 814 | pspecscxx . . $ pspecs.[PROP_SHELL_SHOWS_MENUBARcxx . . $ PROP_SHELL_SHOWS_MENUBAR.] = g_param_spec_booleancxx . . $ g_param_spec_boolean(315d86b79c0116e0). ("gtk-shell-shows-menubar", NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, |
| 815 | FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!, |
| 816 | GTK_PARAM_READWRITEcxx . . $ `gtk/gtkprivate.h:44:9`!); |
| 817 | |
| 818 | /** |
| 819 | * GtkSettings:gtk-shell-shows-desktop: |
| 820 | * |
| 821 | * Set to %TRUE if the desktop environment is displaying |
| 822 | * the desktop folder, %FALSE if not. |
| 823 | * |
| 824 | * Deprecated: 4.20: This setting is not relevant anymore |
| 825 | */ |
| 826 | pspecscxx . . $ pspecs.[PROP_SHELL_SHOWS_DESKTOPcxx . . $ PROP_SHELL_SHOWS_DESKTOP.] = g_param_spec_booleancxx . . $ g_param_spec_boolean(315d86b79c0116e0). ("gtk-shell-shows-desktop", NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, |
| 827 | TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!, |
| 828 | GTK_PARAM_READWRITEcxx . . $ `gtk/gtkprivate.h:44:9`!); |
| 829 | |
| 830 | /** |
| 831 | * GtkSettings:gtk-decoration-layout: |
| 832 | * |
| 833 | * Determines which buttons should be put in the |
| 834 | * titlebar of client-side decorated windows, and whether they |
| 835 | * should be placed on the left or right. |
| 836 | * |
| 837 | * The format of the string is button names, separated by commas. |
| 838 | * A colon separates the buttons that should appear on the left |
| 839 | * from those on the right. Recognized button names are minimize, |
| 840 | * maximize, close, icon (the window icon) and menu (a menu button |
| 841 | * for the fallback app menu). |
| 842 | * |
| 843 | * For example, "menu:minimize,maximize,close" specifies a menu |
| 844 | * on the left, and minimize, maximize and close buttons on the right. |
| 845 | * |
| 846 | * Note that buttons will only be shown when they are meaningful. |
| 847 | * E.g. a menu button only appears when the desktop shell does not |
| 848 | * show the app menu, and a close button only appears on a window |
| 849 | * that can be closed. |
| 850 | * |
| 851 | * Also note that the setting can be overridden with the |
| 852 | * [[email protected]:decoration-layout] property. |
| 853 | */ |
| 854 | pspecscxx . . $ pspecs.[PROP_DECORATION_LAYOUTcxx . . $ PROP_DECORATION_LAYOUT.] = g_param_spec_stringcxx . . $ g_param_spec_string(378e8746be5cd899). ("gtk-decoration-layout", NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, |
| 855 | "menu:minimize,maximize,close", |
| 856 | GTK_PARAM_READWRITEcxx . . $ `gtk/gtkprivate.h:44:9`!); |
| 857 | |
| 858 | /** |
| 859 | * GtkSettings:gtk-titlebar-double-click: |
| 860 | * |
| 861 | * Determines the action to take when a double-click |
| 862 | * occurs on the titlebar of client-side decorated windows. |
| 863 | * |
| 864 | * Recognized actions are minimize, toggle-maximize, menu, lower |
| 865 | * or none. |
| 866 | */ |
| 867 | pspecscxx . . $ pspecs.[PROP_TITLEBAR_DOUBLE_CLICKcxx . . $ PROP_TITLEBAR_DOUBLE_CLICK.] = g_param_spec_stringcxx . . $ g_param_spec_string(378e8746be5cd899). ("gtk-titlebar-double-click", NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, |
| 868 | "toggle-maximize", |
| 869 | GTK_PARAM_READWRITEcxx . . $ `gtk/gtkprivate.h:44:9`!); |
| 870 | |
| 871 | /** |
| 872 | * GtkSettings:gtk-titlebar-middle-click: |
| 873 | * |
| 874 | * Determines the action to take when a middle-click |
| 875 | * occurs on the titlebar of client-side decorated windows. |
| 876 | * |
| 877 | * Recognized actions are minimize, toggle-maximize, menu, lower |
| 878 | * or none. |
| 879 | */ |
| 880 | pspecscxx . . $ pspecs.[PROP_TITLEBAR_MIDDLE_CLICKcxx . . $ PROP_TITLEBAR_MIDDLE_CLICK.] = g_param_spec_stringcxx . . $ g_param_spec_string(378e8746be5cd899). ("gtk-titlebar-middle-click", NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, |
| 881 | "none", |
| 882 | GTK_PARAM_READWRITEcxx . . $ `gtk/gtkprivate.h:44:9`!); |
| 883 | |
| 884 | /** |
| 885 | * GtkSettings:gtk-titlebar-right-click: |
| 886 | * |
| 887 | * Determines the action to take when a right-click |
| 888 | * occurs on the titlebar of client-side decorated windows. |
| 889 | * |
| 890 | * Recognized actions are minimize, toggle-maximize, menu, lower |
| 891 | * or none. |
| 892 | */ |
| 893 | pspecscxx . . $ pspecs.[PROP_TITLEBAR_RIGHT_CLICKcxx . . $ PROP_TITLEBAR_RIGHT_CLICK.] = g_param_spec_stringcxx . . $ g_param_spec_string(378e8746be5cd899). ("gtk-titlebar-right-click", NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, |
| 894 | "menu", |
| 895 | GTK_PARAM_READWRITEcxx . . $ `gtk/gtkprivate.h:44:9`!); |
| 896 | |
| 897 | /** |
| 898 | * GtkSettings:gtk-dialogs-use-header: |
| 899 | * |
| 900 | * Whether builtin GTK dialogs such as the file chooser, the |
| 901 | * color chooser or the font chooser will use a header bar at |
| 902 | * the top to show action widgets, or an action area at the bottom. |
| 903 | * |
| 904 | * This setting does not affect custom dialogs using `GtkDialog` |
| 905 | * directly, or message dialogs. |
| 906 | */ |
| 907 | pspecscxx . . $ pspecs.[PROP_DIALOGS_USE_HEADERcxx . . $ PROP_DIALOGS_USE_HEADER.] = g_param_spec_booleancxx . . $ g_param_spec_boolean(315d86b79c0116e0). ("gtk-dialogs-use-header", NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, |
| 908 | FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!, |
| 909 | GTK_PARAM_READWRITEcxx . . $ `gtk/gtkprivate.h:44:9`!); |
| 910 | |
| 911 | /** |
| 912 | * GtkSettings:gtk-enable-primary-paste: |
| 913 | * |
| 914 | * Whether a middle click on a mouse should paste the |
| 915 | * 'PRIMARY' clipboard content at the cursor location. |
| 916 | */ |
| 917 | pspecscxx . . $ pspecs.[PROP_ENABLE_PRIMARY_PASTEcxx . . $ PROP_ENABLE_PRIMARY_PASTE.] = g_param_spec_booleancxx . . $ g_param_spec_boolean(315d86b79c0116e0). ("gtk-enable-primary-paste", NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, |
| 918 | TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!, |
| 919 | GTK_PARAM_READWRITEcxx . . $ `gtk/gtkprivate.h:44:9`!); |
| 920 | |
| 921 | /** |
| 922 | * GtkSettings:gtk-recent-files-enabled: |
| 923 | * |
| 924 | * Whether GTK should keep track of items inside the recently used |
| 925 | * resources list. |
| 926 | * |
| 927 | * If set to %FALSE, the list will always be empty. |
| 928 | */ |
| 929 | pspecscxx . . $ pspecs.[PROP_RECENT_FILES_ENABLEDcxx . . $ PROP_RECENT_FILES_ENABLED.] = g_param_spec_booleancxx . . $ g_param_spec_boolean(315d86b79c0116e0). ("gtk-recent-files-enabled", NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, |
| 930 | TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!, |
| 931 | GTK_PARAM_READWRITEcxx . . $ `gtk/gtkprivate.h:44:9`!); |
| 932 | |
| 933 | /** |
| 934 | * GtkSettings:gtk-long-press-time: |
| 935 | * |
| 936 | * The time for a button or touch press to be considered a “long press”. |
| 937 | * |
| 938 | * See [[email protected]]. |
| 939 | */ |
| 940 | pspecscxx . . $ pspecs.[PROP_LONG_PRESS_TIMEcxx . . $ PROP_LONG_PRESS_TIME.] = g_param_spec_uintcxx . . $ g_param_spec_uint(503a1013c8de17d5). ("gtk-long-press-time", NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, |
| 941 | 0, G_MAXINTcxx . . $ `<external>/10505296616216143549/glibconfig.h:39:9`!, 500, |
| 942 | GTK_PARAM_READWRITEcxx . . $ `gtk/gtkprivate.h:44:9`!); |
| 943 | |
| 944 | /** |
| 945 | * GtkSettings:gtk-keynav-use-caret: |
| 946 | * |
| 947 | * Whether GTK should make sure that text can be navigated with |
| 948 | * a caret, even if it is not editable. |
| 949 | * |
| 950 | * This is useful when using a screen reader. |
| 951 | */ |
| 952 | pspecscxx . . $ pspecs.[PROP_KEYNAV_USE_CARETcxx . . $ PROP_KEYNAV_USE_CARET.] = g_param_spec_booleancxx . . $ g_param_spec_boolean(315d86b79c0116e0). ("gtk-keynav-use-caret", NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, |
| 953 | FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!, |
| 954 | GTK_PARAM_READWRITEcxx . . $ `gtk/gtkprivate.h:44:9`!); |
| 955 | |
| 956 | /** |
| 957 | * GtkSettings:gtk-overlay-scrolling: |
| 958 | * |
| 959 | * Whether scrolled windows may use overlaid scrolling indicators. |
| 960 | * |
| 961 | * If this is set to %FALSE, scrolled windows will have permanent |
| 962 | * scrollbars. |
| 963 | */ |
| 964 | pspecscxx . . $ pspecs.[PROP_OVERLAY_SCROLLINGcxx . . $ PROP_OVERLAY_SCROLLING.] = g_param_spec_booleancxx . . $ g_param_spec_boolean(315d86b79c0116e0). ("gtk-overlay-scrolling", NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, |
| 965 | TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!, |
| 966 | GTK_PARAM_READWRITEcxx . . $ `gtk/gtkprivate.h:44:9`!); |
| 967 | |
| 968 | /** |
| 969 | * GtkSettings:gtk-font-rendering: |
| 970 | * |
| 971 | * How GTK font rendering is set up. |
| 972 | * |
| 973 | * When set to [[email protected]], GTK respects the low-level |
| 974 | * font-related settings ([[email protected]:gtk-hint-font-metrics], |
| 975 | * [[email protected]:gtk-xft-antialias], [[email protected]:gtk-xft-hinting], |
| 976 | * [[email protected]:gtk-xft-hintstyle] and [[email protected]:gtk-xft-rgba]) |
| 977 | * as much as practical. |
| 978 | * |
| 979 | * When set to [[email protected]], GTK will consider factors such |
| 980 | * as screen resolution and scale in deciding how to render fonts. |
| 981 | * |
| 982 | * Since: 4.16 |
| 983 | */ |
| 984 | pspecscxx . . $ pspecs.[PROP_FONT_RENDERINGcxx . . $ PROP_FONT_RENDERING.] = g_param_spec_enumcxx . . $ g_param_spec_enum(bfeb217b5dc6c0ac). ("gtk-font-rendering", NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, |
| 985 | GTK_TYPE_FONT_RENDERINGcxx . . $ `build/gtk/gtktypebuiltins.h:244:9`!, |
| 986 | GTK_FONT_RENDERING_AUTOMATICcxx . . $ GTK_FONT_RENDERING_AUTOMATIC., |
| 987 | GTK_PARAM_READWRITEcxx . . $ `gtk/gtkprivate.h:44:9`!); |
| 988 | |
| 989 | /** |
| 990 | * GtkSettings:gtk-interface-color-scheme: |
| 991 | * |
| 992 | * The color scheme used for rendering the user interface. |
| 993 | * |
| 994 | * This setting communicates the system-wide preference. |
| 995 | * The color scheme that is actually used when applying CSS |
| 996 | * styles can be set with the [[email protected]:prefers-color-scheme] |
| 997 | * property. |
| 998 | * |
| 999 | * Since: 4.20 |
| 1000 | */ |
| 1001 | pspecscxx . . $ pspecs.[PROP_INTERFACE_COLOR_SCHEMEcxx . . $ PROP_INTERFACE_COLOR_SCHEME.] = g_param_spec_enumcxx . . $ g_param_spec_enum(bfeb217b5dc6c0ac). ("gtk-interface-color-scheme", NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, |
| 1002 | GTK_TYPE_INTERFACE_COLOR_SCHEMEcxx . . $ `build/gtk/gtktypebuiltins.h:248:9`!, |
| 1003 | GTK_INTERFACE_COLOR_SCHEME_UNSUPPORTEDcxx . . $ GTK_INTERFACE_COLOR_SCHEME_UNSUPPORTED., |
| 1004 | GTK_PARAM_READWRITEcxx . . $ `gtk/gtkprivate.h:44:9`!); |
| 1005 | |
| 1006 | /** |
| 1007 | * GtkSettings:gtk-interface-contrast: |
| 1008 | * |
| 1009 | * The level of contrast to use for the user interface. |
| 1010 | * |
| 1011 | * This setting communicates the system-wide preference. |
| 1012 | * The contrast level that is actually used when applying CSS |
| 1013 | * styles can be set with the [[email protected]:prefers-contrast] |
| 1014 | * property. |
| 1015 | * |
| 1016 | * Since: 4.20 |
| 1017 | */ |
| 1018 | pspecscxx . . $ pspecs.[PROP_INTERFACE_CONTRASTcxx . . $ PROP_INTERFACE_CONTRAST.] = g_param_spec_enumcxx . . $ g_param_spec_enum(bfeb217b5dc6c0ac). ("gtk-interface-contrast", NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, |
| 1019 | GTK_TYPE_INTERFACE_CONTRASTcxx . . $ `build/gtk/gtktypebuiltins.h:250:9`!, |
| 1020 | GTK_INTERFACE_CONTRAST_UNSUPPORTEDcxx . . $ GTK_INTERFACE_CONTRAST_UNSUPPORTED., |
| 1021 | GTK_PARAM_READWRITEcxx . . $ `gtk/gtkprivate.h:44:9`!); |
| 1022 | |
| 1023 | /** |
| 1024 | * GtkSettings:gtk-interface-reduced-motion: |
| 1025 | * |
| 1026 | * Whether animations should be reduced to essential motions. |
| 1027 | * |
| 1028 | * This setting communicates the system-wide preference. |
| 1029 | * The motion level that is actually used when applying CSS |
| 1030 | * styles can be set with the [[email protected]:prefers-reduced-motion] |
| 1031 | * property. |
| 1032 | * |
| 1033 | * Since: 4.22 |
| 1034 | */ |
| 1035 | pspecscxx . . $ pspecs.[PROP_INTERFACE_REDUCED_MOTIONcxx . . $ PROP_INTERFACE_REDUCED_MOTION.] = g_param_spec_enumcxx . . $ g_param_spec_enum(bfeb217b5dc6c0ac). ("gtk-interface-reduced-motion", NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, |
| 1036 | GTK_TYPE_REDUCED_MOTIONcxx . . $ `build/gtk/gtktypebuiltins.h:252:9`!, |
| 1037 | GTK_REDUCED_MOTION_NO_PREFERENCEcxx . . $ GTK_REDUCED_MOTION_NO_PREFERENCE., |
| 1038 | GTK_PARAM_READWRITEcxx . . $ `gtk/gtkprivate.h:44:9`!); |
| 1039 | |
| 1040 | g_object_class_install_propertiescxx . . $ g_object_class_install_properties(569d03e6a4088541). (gobject_class, NUM_PROPERTIEScxx . . $ NUM_PROPERTIES., pspecscxx . . $ pspecs.); |
| 1041 | } |
| 1042 | |
| 1043 | static GtkSettingscxx . . $ GtkSettings# * |
| 1044 | gtk_settings_style_provider_get_settingscxx . . $ gtk_settings_style_provider_get_settings(ef52ef05ae10f313). (GtkStyleProvidercxx . . $ GtkStyleProvider# *provider) |
| 1045 | { |
| 1046 | return GTK_SETTINGScxx . . $ `gtk/gtksettings.h:32:9`! (provider); |
| 1047 | } |
| 1048 | |
| 1049 | static void |
| 1050 | gtk_settings_provider_iface_initcxx . . $ gtk_settings_provider_iface_init(670ec270bfca9785). (GtkStyleProviderInterfacecxx . . $ GtkStyleProviderInterface# *iface) |
| 1051 | { |
| 1052 | iface->get_settingscxx . . $ _GtkStyleProviderInterface#get_settings. = gtk_settings_style_provider_get_settingscxx . . $ gtk_settings_style_provider_get_settings(ef52ef05ae10f313).; |
| 1053 | } |
| 1054 | |
| 1055 | static void |
| 1056 | gtk_settings_finalizecxx . . $ gtk_settings_finalize(6087475fa43034d3). (GObjectcxx . . $ GObject# *object) |
| 1057 | { |
| 1058 | GtkSettingscxx . . $ GtkSettings# *settings = GTK_SETTINGScxx . . $ `gtk/gtksettings.h:32:9`! (object); |
| 1059 | guintcxx . . $ guint# i; |
| 1060 | |
| 1061 | for (i = 1; i < NUM_PROPERTIEScxx . . $ NUM_PROPERTIES.; i++) |
| 1062 | g_value_unsetcxx . . $ g_value_unset(15c06aff79890746). (&settings->property_valuescxx . . $ _GtkSettings#property_values.[i - 1].valuecxx . . $ _GtkSettingsPropertyValue#value.); |
| 1063 | g_freecxx . . $ g_free(5d22bdacc48458e8). (settings->property_valuescxx . . $ _GtkSettings#property_values.); |
| 1064 | |
| 1065 | g_datalist_clearcxx . . $ g_datalist_clear(d78fb93e741d8f95). (&settings->queued_settingscxx . . $ _GtkSettings#queued_settings.); |
| 1066 | |
| 1067 | settings_update_providercxx . . $ settings_update_provider(cb12836823980416). (settings->displaycxx . . $ _GtkSettings#display., &settings->theme_providercxx . . $ _GtkSettings#theme_provider., NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!); |
| 1068 | g_slist_free_fullcxx . . $ g_slist_free_full(5c74ad7c36eb6b1f). (settings->style_cascadescxx . . $ _GtkSettings#style_cascades., g_object_unrefcxx . . $ g_object_unref(5d22bdacc48458e8).); |
| 1069 | |
| 1070 | if (settings->font_optionscxx . . $ _GtkSettings#font_options.) |
| 1071 | cairo_font_options_destroycxx . . $ cairo_font_options_destroy(a792a70f8195dbf5). (settings->font_optionscxx . . $ _GtkSettings#font_options.); |
| 1072 | |
| 1073 | g_freecxx . . $ g_free(5d22bdacc48458e8). (settings->font_familycxx . . $ _GtkSettings#font_family.); |
| 1074 | |
| 1075 | g_clear_objectcxx . . $ `<external>/1341695927569185362/gobject.h:695:9`! (&settings->theme_provider); |
| 1076 | |
| 1077 | G_OBJECT_CLASScxx . . $ `<external>/1341695927569185362/gobject.h:61:9`! (gtk_settings_parent_class)->finalizecxx . . $ _GObjectClass#finalize. (object); |
| 1078 | } |
| 1079 | |
| 1080 | GtkStyleCascadecxx . . $ GtkStyleCascade# * |
| 1081 | _gtk_settings_get_style_cascadecxx . . $ _gtk_settings_get_style_cascade(1632962a571e722a). (GtkSettingscxx . . $ GtkSettings# *settings, |
| 1082 | int scale) |
| 1083 | { |
| 1084 | GtkStyleCascadecxx . . $ GtkStyleCascade# *new_cascade; |
| 1085 | GSListcxx . . $ GSList# *list; |
| 1086 | |
| 1087 | g_return_val_if_failcxx . . $ `<external>/5169755362661750954/gmessages.h:665:9`! (GTK_IS_SETTINGScxx . . $ `gtk/gtksettings.h:33:9`! (settings), NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!); |
| 1088 | |
| 1089 | for (list = settings->style_cascadescxx . . $ _GtkSettings#style_cascades.; list; list = list->nextcxx . . $ _GSList#next.) |
| 1090 | { |
| 1091 | if (_gtk_style_cascade_get_scalecxx . . $ _gtk_style_cascade_get_scale(5e3a91bf51df529d). (list->datacxx . . $ _GSList#data.) == scale) |
| 1092 | return list->datacxx . . $ _GSList#data.; |
| 1093 | } |
| 1094 | |
| 1095 | /* We are guaranteed to have the special cascade with scale == 1. |
| 1096 | * It's created in gtk_settings_init() |
| 1097 | */ |
| 1098 | g_assertcxx . . $ `<external>/15287032793271088244/gtestutils.h:275:9`! (scale != 1); |
| 1099 | |
| 1100 | new_cascade = _gtk_style_cascade_newcxx . . $ _gtk_style_cascade_new(be53ab37401399d7). (); |
| 1101 | _gtk_style_cascade_set_parentcxx . . $ _gtk_style_cascade_set_parent(2966a12fc236df26). (new_cascade, _gtk_settings_get_style_cascadecxx . . $ _gtk_settings_get_style_cascade(1632962a571e722a). (settings, 1)); |
| 1102 | _gtk_style_cascade_set_scalecxx . . $ _gtk_style_cascade_set_scale(e297d7462384343). (new_cascade, scale); |
| 1103 | |
| 1104 | settings->style_cascadescxx . . $ _GtkSettings#style_cascades. = g_slist_prependcxx . . $ g_slist_prepend(6eb923d8c45a5456). (settings->style_cascadescxx . . $ _GtkSettings#style_cascades., new_cascade); |
| 1105 | |
| 1106 | return new_cascade; |
| 1107 | } |
| 1108 | |
| 1109 | static void |
| 1110 | settings_init_stylecxx . . $ settings_init_style(3a1a2342f95e7c64). (GtkSettingscxx . . $ GtkSettings# *settings) |
| 1111 | { |
| 1112 | static GtkCssProvidercxx . . $ GtkCssProvider# *css_provider = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!; |
| 1113 | GtkStyleCascadecxx . . $ GtkStyleCascade# *cascade; |
| 1114 | |
| 1115 | cascade = _gtk_style_cascade_newcxx . . $ _gtk_style_cascade_new(be53ab37401399d7). (); |
| 1116 | |
| 1117 | settings->style_cascadescxx . . $ _GtkSettings#style_cascades. = g_slist_prependcxx . . $ g_slist_prepend(6eb923d8c45a5456). (NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, cascade); |
| 1118 | settings->theme_providercxx . . $ _GtkSettings#theme_provider. = gtk_css_provider_newcxx . . $ gtk_css_provider_new(f6024b130244f968). (); |
| 1119 | |
| 1120 | g_object_bind_propertycxx . . $ g_object_bind_property(c97799d956973899). (settings, "gtk-interface-color-scheme", |
| 1121 | settings->theme_providercxx . . $ _GtkSettings#theme_provider., "prefers-color-scheme", |
| 1122 | G_BINDING_SYNC_CREATEcxx . . $ G_BINDING_SYNC_CREATE.); |
| 1123 | g_object_bind_propertycxx . . $ g_object_bind_property(c97799d956973899). (settings, "gtk-interface-contrast", |
| 1124 | settings->theme_providercxx . . $ _GtkSettings#theme_provider., "prefers-contrast", |
| 1125 | G_BINDING_SYNC_CREATEcxx . . $ G_BINDING_SYNC_CREATE.); |
| 1126 | g_object_bind_propertycxx . . $ g_object_bind_property(c97799d956973899). (settings, "gtk-interface-reduced-motion", |
| 1127 | settings->theme_providercxx . . $ _GtkSettings#theme_provider., "prefers-reduced-motion", |
| 1128 | G_BINDING_SYNC_CREATEcxx . . $ G_BINDING_SYNC_CREATE.); |
| 1129 | |
| 1130 | /* Add provider for user file */ |
| 1131 | if (G_UNLIKELYcxx . . $ `<external>/12741050725406041920/gmacros.h:1285:9`! (!css_provider)) |
| 1132 | { |
| 1133 | char *css_path; |
| 1134 | |
| 1135 | css_provider = gtk_css_provider_newcxx . . $ gtk_css_provider_new(f6024b130244f968). (); |
| 1136 | |
| 1137 | g_object_bind_propertycxx . . $ g_object_bind_property(c97799d956973899). (settings, "gtk-interface-color-scheme", |
| 1138 | css_provider, "prefers-color-scheme", |
| 1139 | G_BINDING_SYNC_CREATEcxx . . $ G_BINDING_SYNC_CREATE.); |
| 1140 | g_object_bind_propertycxx . . $ g_object_bind_property(c97799d956973899). (settings, "gtk-interface-contrast", |
| 1141 | css_provider, "prefers-contrast", |
| 1142 | G_BINDING_SYNC_CREATEcxx . . $ G_BINDING_SYNC_CREATE.); |
| 1143 | g_object_bind_propertycxx . . $ g_object_bind_property(c97799d956973899). (settings, "gtk-interface-reduced-motion", |
| 1144 | css_provider, "prefers-reduced-motion", |
| 1145 | G_BINDING_SYNC_CREATEcxx . . $ G_BINDING_SYNC_CREATE.); |
| 1146 | |
| 1147 | css_path = g_build_filenamecxx . . $ g_build_filename(a849077ff1b8d812). (g_get_user_config_dircxx . . $ g_get_user_config_dir(33a1f659e94feb42). (), |
| 1148 | "gtk-4.0", |
| 1149 | "gtk.css", |
| 1150 | NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!); |
| 1151 | |
| 1152 | if (g_file_testcxx . . $ g_file_test(d991f72152d535bf). (css_path, |
| 1153 | G_FILE_TEST_IS_REGULARcxx . . $ G_FILE_TEST_IS_REGULAR.)) |
| 1154 | gtk_css_provider_load_from_pathcxx . . $ gtk_css_provider_load_from_path(791d7ec27a3bdea5). (css_provider, css_path); |
| 1155 | |
| 1156 | g_freecxx . . $ g_free(5d22bdacc48458e8). (css_path); |
| 1157 | } |
| 1158 | |
| 1159 | _gtk_style_cascade_add_providercxx . . $ _gtk_style_cascade_add_provider(79db53d1324b5adb). (cascade, |
| 1160 | GTK_STYLE_PROVIDERcxx . . $ `gtk/gtkstyleprovider.h:31:9`! (css_provider), |
| 1161 | GTK_STYLE_PROVIDER_PRIORITY_USERcxx . . $ `gtk/gtkstyleprovider.h:83:9`!); |
| 1162 | |
| 1163 | _gtk_style_cascade_add_providercxx . . $ _gtk_style_cascade_add_provider(79db53d1324b5adb). (cascade, |
| 1164 | GTK_STYLE_PROVIDERcxx . . $ `gtk/gtkstyleprovider.h:31:9`! (settings), |
| 1165 | GTK_STYLE_PROVIDER_PRIORITY_SETTINGScxx . . $ `gtk/gtkstyleprovider.h:64:9`!); |
| 1166 | |
| 1167 | _gtk_style_cascade_add_providercxx . . $ _gtk_style_cascade_add_provider(79db53d1324b5adb). (cascade, |
| 1168 | GTK_STYLE_PROVIDERcxx . . $ `gtk/gtkstyleprovider.h:31:9`! (settings->theme_provider), |
| 1169 | GTK_STYLE_PROVIDER_PRIORITY_SETTINGScxx . . $ `gtk/gtkstyleprovider.h:64:9`!); |
| 1170 | |
| 1171 | settings_update_themecxx . . $ settings_update_theme(3a1a2342f95e7c64). (settings); |
| 1172 | } |
| 1173 | |
| 1174 | static void |
| 1175 | setting_changedcxx . . $ setting_changed(90a939f5804a456c). (GdkDisplaycxx . . $ GdkDisplay# *display, |
| 1176 | const char *name, |
| 1177 | gpointercxx . . $ gpointer# data) |
| 1178 | { |
| 1179 | GtkSettingscxx . . $ GtkSettings# *settings = data; |
| 1180 | GParamSpeccxx . . $ GParamSpec# *pspec; |
| 1181 | |
| 1182 | pspec = g_object_class_find_propertycxx . . $ g_object_class_find_property(b571283151040038). (G_OBJECT_GET_CLASScxx . . $ `<external>/1341695927569185362/gobject.h:89:9`! (settings), name); |
| 1183 | |
| 1184 | if (!pspec) |
| 1185 | return; |
| 1186 | |
| 1187 | if (settings_update_xsettingcxx . . $ settings_update_xsetting(be69404bc415217e). (settings, pspec, TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!)) |
| 1188 | g_object_notify_by_pspeccxx . . $ g_object_notify_by_pspec(89706f8943b9e738). (G_OBJECTcxx . . $ `<external>/1341695927569185362/gobject.h:54:9`! (settings), pspec); |
| 1189 | } |
| 1190 | |
| 1191 | static GtkSettingscxx . . $ GtkSettings# * |
| 1192 | gtk_settings_create_for_displaycxx . . $ gtk_settings_create_for_display(99a7c29b9e9b8172). (GdkDisplaycxx . . $ GdkDisplay# *display) |
| 1193 | { |
| 1194 | GtkSettingscxx . . $ GtkSettings# *settings; |
| 1195 | |
| 1196 | #ifdef GDK_WINDOWING_MACOS |
| 1197 | if (GDK_IS_MACOS_DISPLAY (display)) |
| 1198 | settings = g_object_new (GTK_TYPE_SETTINGS, |
| 1199 | "gtk-shell-shows-app-menu", TRUE, |
| 1200 | "gtk-shell-shows-menubar", TRUE, |
| 1201 | NULL); |
| 1202 | else |
| 1203 | #endif |
| 1204 | settings = g_object_newcxx . . $ g_object_new(8485fe61b4be4c78). (GTK_TYPE_SETTINGScxx . . $ `gtk/gtksettings.h:31:9`!, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!); |
| 1205 | |
| 1206 | settings->displaycxx . . $ _GtkSettings#display. = display; |
| 1207 | |
| 1208 | g_signal_connect_objectcxx . . $ g_signal_connect_object(567cfbe0c886a38e). (display, "setting-changed", G_CALLBACKcxx . . $ `<external>/16473872192229286895/gclosure.h:73:9`! (setting_changed), settings, 0); |
| 1209 | |
| 1210 | g_ptr_array_addcxx . . $ g_ptr_array_add(3cd73f70a4ada9). (display_settingscxx . . $ display_settings., settings); |
| 1211 | |
| 1212 | settings_init_stylecxx . . $ settings_init_style(3a1a2342f95e7c64). (settings); |
| 1213 | settings_update_xsettingscxx . . $ settings_update_xsettings(3a1a2342f95e7c64). (settings); |
| 1214 | settings_update_double_clickcxx . . $ settings_update_double_click(3a1a2342f95e7c64). (settings); |
| 1215 | settings_update_cursor_themecxx . . $ settings_update_cursor_theme(3a1a2342f95e7c64). (settings); |
| 1216 | settings_update_font_optionscxx . . $ settings_update_font_options(3a1a2342f95e7c64). (settings); |
| 1217 | settings_update_font_valuescxx . . $ settings_update_font_values(3a1a2342f95e7c64). (settings); |
| 1218 | |
| 1219 | return settings; |
| 1220 | } |
| 1221 | |
| 1222 | /** |
| 1223 | * gtk_settings_get_for_display: |
| 1224 | * @display: a `GdkDisplay` |
| 1225 | * |
| 1226 | * Gets the `GtkSettings` object for @display, creating it if necessary. |
| 1227 | * |
| 1228 | * Returns: (transfer none): a `GtkSettings` object |
| 1229 | */ |
| 1230 | GtkSettingscxx . . $ GtkSettings# * |
| 1231 | gtk_settings_get_for_displaycxx . . $ gtk_settings_get_for_display(99a7c29b9e9b8172). (GdkDisplaycxx . . $ GdkDisplay# *display) |
| 1232 | { |
| 1233 | int i; |
| 1234 | |
| 1235 | g_return_val_if_failcxx . . $ `<external>/5169755362661750954/gmessages.h:665:9`! (GDK_IS_DISPLAYcxx . . $ `gdk/gdkdisplay.h:37:9`! (display), NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!); |
| 1236 | |
| 1237 | if G_UNLIKELYcxx . . $ `<external>/12741050725406041920/gmacros.h:1285:9`! (display_settings == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!) |
| 1238 | display_settingscxx . . $ display_settings. = g_ptr_array_newcxx . . $ g_ptr_array_new(61b5db61367ab387). (); |
| 1239 | |
| 1240 | for (i = 0; i < display_settingscxx . . $ display_settings.->lencxx . . $ _GPtrArray#len.; i++) |
| 1241 | { |
| 1242 | GtkSettingscxx . . $ GtkSettings# *settings = g_ptr_array_indexcxx . . $ `<external>/13165152102340786875/garray.h:149:12`! (display_settings, i); |
| 1243 | if (settings->displaycxx . . $ _GtkSettings#display. == display) |
| 1244 | return settings; |
| 1245 | } |
| 1246 | |
| 1247 | return gtk_settings_create_for_displaycxx . . $ gtk_settings_create_for_display(99a7c29b9e9b8172). (display); |
| 1248 | } |
| 1249 | |
| 1250 | /** |
| 1251 | * gtk_settings_get_default: |
| 1252 | * |
| 1253 | * Gets the `GtkSettings` object for the default display, creating |
| 1254 | * it if necessary. |
| 1255 | * |
| 1256 | * See [[email protected]_for_display]. |
| 1257 | * |
| 1258 | * Returns: (nullable) (transfer none): a `GtkSettings` object. If there is |
| 1259 | * no default display, then returns %NULL. |
| 1260 | */ |
| 1261 | GtkSettingscxx . . $ GtkSettings#* |
| 1262 | gtk_settings_get_defaultcxx . . $ gtk_settings_get_default(8554497bfdb03e68). (void) |
| 1263 | { |
| 1264 | GdkDisplaycxx . . $ GdkDisplay# *display = gdk_display_get_defaultcxx . . $ gdk_display_get_default(b31d93ef98fc5572). (); |
| 1265 | |
| 1266 | if (display) |
| 1267 | return gtk_settings_get_for_displaycxx . . $ gtk_settings_get_for_display(99a7c29b9e9b8172). (display); |
| 1268 | |
| 1269 | g_debugcxx . . $ `<external>/5169755362661750954/gmessages.h:346:9`! ("%s() returning NULL GtkSettings object. Is a display available?", |
| 1270 | G_STRFUNCcxx . . $ `<external>/12741050725406041920/gmacros.h:935:9`!); |
| 1271 | return NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!; |
| 1272 | } |
| 1273 | |
| 1274 | static void |
| 1275 | gtk_settings_set_propertycxx . . $ gtk_settings_set_property(d7c4bb29f36c0dc4). (GObjectcxx . . $ GObject# *object, |
| 1276 | guintcxx . . $ guint# property_id, |
| 1277 | const GValuecxx . . $ GValue# *value, |
| 1278 | GParamSpeccxx . . $ GParamSpec# *pspec) |
| 1279 | { |
| 1280 | GtkSettingscxx . . $ GtkSettings# *settings = GTK_SETTINGScxx . . $ `gtk/gtksettings.h:32:9`! (object); |
| 1281 | |
| 1282 | g_value_copycxx . . $ g_value_copy(76788ea28990d685). (value, &settings->property_valuescxx . . $ _GtkSettings#property_values.[property_id - 1].valuecxx . . $ _GtkSettingsPropertyValue#value.); |
| 1283 | settings->property_valuescxx . . $ _GtkSettings#property_values.[property_id - 1].sourcecxx . . $ _GtkSettingsPropertyValue#source. = GTK_SETTINGS_SOURCE_APPLICATIONcxx . . $ GTK_SETTINGS_SOURCE_APPLICATION.; |
| 1284 | } |
| 1285 | |
| 1286 | static void |
| 1287 | settings_invalidate_stylecxx . . $ settings_invalidate_style(3a1a2342f95e7c64). (GtkSettingscxx . . $ GtkSettings# *settings) |
| 1288 | { |
| 1289 | gtk_style_provider_changedcxx . . $ gtk_style_provider_changed(9719a19f9c9a8adb). (GTK_STYLE_PROVIDERcxx . . $ `gtk/gtkstyleprovider.h:31:9`! (settings)); |
| 1290 | } |
| 1291 | |
| 1292 | static void |
| 1293 | settings_update_font_valuescxx . . $ settings_update_font_values(3a1a2342f95e7c64). (GtkSettingscxx . . $ GtkSettings# *settings) |
| 1294 | { |
| 1295 | PangoFontDescriptioncxx . . $ PangoFontDescription# *desc; |
| 1296 | const char *font_name; |
| 1297 | |
| 1298 | font_name = g_value_get_stringcxx . . $ g_value_get_string(cc0a2be2b8f7bdc8). (&settings->property_valuescxx . . $ _GtkSettings#property_values.[PROP_FONT_NAMEcxx . . $ PROP_FONT_NAME. - 1].valuecxx . . $ _GtkSettingsPropertyValue#value.); |
| 1299 | desc = pango_font_description_from_stringcxx . . $ pango_font_description_from_string(9fd9ad5a7e9d5b6b). (font_name); |
| 1300 | |
| 1301 | if (desc != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`! && |
| 1302 | (pango_font_description_get_set_fieldscxx . . $ pango_font_description_get_set_fields(5014320f1e99c9df). (desc) & PANGO_FONT_MASK_SIZEcxx . . $ PANGO_FONT_MASK_SIZE.) != 0) |
| 1303 | { |
| 1304 | settings->font_sizecxx . . $ _GtkSettings#font_size. = pango_font_description_get_sizecxx . . $ pango_font_description_get_size(3ca9016730d4c6e6). (desc); |
| 1305 | settings->font_size_absolutecxx . . $ _GtkSettings#font_size_absolute. = pango_font_description_get_size_is_absolutecxx . . $ pango_font_description_get_size_is_absolute(3ca9016730d4c6e6). (desc); |
| 1306 | } |
| 1307 | else |
| 1308 | { |
| 1309 | settings->font_sizecxx . . $ _GtkSettings#font_size. = 10 * PANGO_SCALEcxx . . $ `<external>/16549852590339199443/pango-types.h:96:9`!; |
| 1310 | settings->font_size_absolutecxx . . $ _GtkSettings#font_size_absolute. = FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!; |
| 1311 | } |
| 1312 | |
| 1313 | g_freecxx . . $ g_free(5d22bdacc48458e8). (settings->font_familycxx . . $ _GtkSettings#font_family.); |
| 1314 | |
| 1315 | if (desc != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`! && |
| 1316 | (pango_font_description_get_set_fieldscxx . . $ pango_font_description_get_set_fields(5014320f1e99c9df). (desc) & PANGO_FONT_MASK_FAMILYcxx . . $ PANGO_FONT_MASK_FAMILY.) != 0) |
| 1317 | { |
| 1318 | settings->font_familycxx . . $ _GtkSettings#font_family. = g_strdupcxx . . $ `<external>/7822753393113922331/gstrfuncs.h:324:9`! (pango_font_description_get_family (desc)); |
| 1319 | } |
| 1320 | else |
| 1321 | { |
| 1322 | settings->font_familycxx . . $ _GtkSettings#font_family. = g_strdupcxx . . $ `<external>/7822753393113922331/gstrfuncs.h:324:9`! ("Sans"); |
| 1323 | } |
| 1324 | |
| 1325 | if (desc) |
| 1326 | pango_font_description_freecxx . . $ pango_font_description_free(915e2822a6190560). (desc); |
| 1327 | } |
| 1328 | |
| 1329 | static void |
| 1330 | gtk_settings_notifycxx . . $ gtk_settings_notify(89706f8943b9e738). (GObjectcxx . . $ GObject# *object, |
| 1331 | GParamSpeccxx . . $ GParamSpec# *pspec) |
| 1332 | { |
| 1333 | GtkSettingscxx . . $ GtkSettings# *settings = GTK_SETTINGScxx . . $ `gtk/gtksettings.h:32:9`! (object); |
| 1334 | guintcxx . . $ guint# property_id = pspec->param_idcxx . . $ _GParamSpec#param_id.; |
| 1335 | |
| 1336 | if (settings->displaycxx . . $ _GtkSettings#display. == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!) /* initialization */ |
| 1337 | return; |
| 1338 | |
| 1339 | switch (property_id) |
| 1340 | { |
| 1341 | case PROP_DOUBLE_CLICK_TIMEcxx . . $ PROP_DOUBLE_CLICK_TIME.: |
| 1342 | case PROP_DOUBLE_CLICK_DISTANCEcxx . . $ PROP_DOUBLE_CLICK_DISTANCE.: |
| 1343 | settings_update_double_clickcxx . . $ settings_update_double_click(3a1a2342f95e7c64). (settings); |
| 1344 | break; |
| 1345 | case PROP_FONT_NAMEcxx . . $ PROP_FONT_NAME.: |
| 1346 | settings_update_font_valuescxx . . $ settings_update_font_values(3a1a2342f95e7c64). (settings); |
| 1347 | settings_invalidate_stylecxx . . $ settings_invalidate_style(3a1a2342f95e7c64). (settings); |
| 1348 | gtk_system_setting_changedcxx . . $ gtk_system_setting_changed(c41346705a083426). (settings->displaycxx . . $ _GtkSettings#display., GTK_SYSTEM_SETTING_FONT_NAMEcxx . . $ GTK_SYSTEM_SETTING_FONT_NAME.); |
| 1349 | break; |
| 1350 | case PROP_THEME_NAMEcxx . . $ PROP_THEME_NAME.: |
| 1351 | case PROP_APPLICATION_PREFER_DARK_THEMEcxx . . $ PROP_APPLICATION_PREFER_DARK_THEME.: |
| 1352 | settings_update_themecxx . . $ settings_update_theme(3a1a2342f95e7c64). (settings); |
| 1353 | break; |
| 1354 | case PROP_XFT_DPIcxx . . $ PROP_XFT_DPI.: |
| 1355 | settings_invalidate_stylecxx . . $ settings_invalidate_style(3a1a2342f95e7c64). (settings); |
| 1356 | gtk_system_setting_changedcxx . . $ gtk_system_setting_changed(c41346705a083426). (settings->displaycxx . . $ _GtkSettings#display., GTK_SYSTEM_SETTING_DPIcxx . . $ GTK_SYSTEM_SETTING_DPI.); |
| 1357 | break; |
| 1358 | case PROP_XFT_ANTIALIAScxx . . $ PROP_XFT_ANTIALIAS.: |
| 1359 | case PROP_XFT_HINTINGcxx . . $ PROP_XFT_HINTING.: |
| 1360 | case PROP_XFT_HINTSTYLEcxx . . $ PROP_XFT_HINTSTYLE.: |
| 1361 | case PROP_XFT_RGBAcxx . . $ PROP_XFT_RGBA.: |
| 1362 | case PROP_HINT_FONT_METRICScxx . . $ PROP_HINT_FONT_METRICS.: |
| 1363 | settings_update_font_optionscxx . . $ settings_update_font_options(3a1a2342f95e7c64). (settings); |
| 1364 | gtk_system_setting_changedcxx . . $ gtk_system_setting_changed(c41346705a083426). (settings->displaycxx . . $ _GtkSettings#display., GTK_SYSTEM_SETTING_FONT_CONFIGcxx . . $ GTK_SYSTEM_SETTING_FONT_CONFIG.); |
| 1365 | break; |
| 1366 | case PROP_FONTCONFIG_TIMESTAMPcxx . . $ PROP_FONTCONFIG_TIMESTAMP.: |
| 1367 | if (settings_update_fontconfigcxx . . $ settings_update_fontconfig(8c2d6b4329623181). (settings)) |
| 1368 | gtk_system_setting_changedcxx . . $ gtk_system_setting_changed(c41346705a083426). (settings->displaycxx . . $ _GtkSettings#display., GTK_SYSTEM_SETTING_FONT_CONFIGcxx . . $ GTK_SYSTEM_SETTING_FONT_CONFIG.); |
| 1369 | break; |
| 1370 | case PROP_FONT_RENDERINGcxx . . $ PROP_FONT_RENDERING.: |
| 1371 | gtk_system_setting_changedcxx . . $ gtk_system_setting_changed(c41346705a083426). (settings->displaycxx . . $ _GtkSettings#display., GTK_SYSTEM_SETTING_FONT_CONFIGcxx . . $ GTK_SYSTEM_SETTING_FONT_CONFIG.); |
| 1372 | break; |
| 1373 | case PROP_ENABLE_ANIMATIONScxx . . $ PROP_ENABLE_ANIMATIONS.: |
| 1374 | settings_invalidate_stylecxx . . $ settings_invalidate_style(3a1a2342f95e7c64). (settings); |
| 1375 | break; |
| 1376 | case PROP_CURSOR_THEME_NAMEcxx . . $ PROP_CURSOR_THEME_NAME.: |
| 1377 | case PROP_CURSOR_THEME_SIZEcxx . . $ PROP_CURSOR_THEME_SIZE.: |
| 1378 | settings_update_cursor_themecxx . . $ settings_update_cursor_theme(3a1a2342f95e7c64). (settings); |
| 1379 | break; |
| 1380 | default: |
| 1381 | break; |
| 1382 | } |
| 1383 | } |
| 1384 | |
| 1385 | static gbooleancxx . . $ gboolean# |
| 1386 | _gtk_settings_parse_convertcxx . . $ _gtk_settings_parse_convert(24efed610c309921). (const GValuecxx . . $ GValue# *src_value, |
| 1387 | GParamSpeccxx . . $ GParamSpec# *pspec, |
| 1388 | GValuecxx . . $ GValue# *dest_value) |
| 1389 | { |
| 1390 | gbooleancxx . . $ gboolean# success = FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!; |
| 1391 | |
| 1392 | g_return_val_if_failcxx . . $ `<external>/5169755362661750954/gmessages.h:665:9`! (G_VALUE_HOLDScxx . . $ `<external>/17218264759549183453/gvalue.h:91:9`! (dest_value, G_PARAM_SPEC_VALUE_TYPEcxx . . $ `<external>/7453068347527694854/gparam.h:105:9`! (pspec)), FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!); |
| 1393 | |
| 1394 | if (G_VALUE_HOLDScxx . . $ `<external>/17218264759549183453/gvalue.h:91:9`! (src_value, G_TYPE_GSTRINGcxx . . $ `<external>/9334670746570349148/glib-types.h:80:9`!)) |
| 1395 | { |
| 1396 | if (G_VALUE_HOLDScxx . . $ `<external>/17218264759549183453/gvalue.h:91:9`! (dest_value, G_TYPE_STRINGcxx . . $ `<external>/9567554376676449156/gtype.h:165:9`!)) |
| 1397 | { |
| 1398 | GStringcxx . . $ GString# *gstring = g_value_get_boxedcxx . . $ g_value_get_boxed(e12dff36056c2cce). (src_value); |
| 1399 | |
| 1400 | g_value_set_stringcxx . . $ g_value_set_string(65b9ea7708b82b9b). (dest_value, gstring ? gstring->strcxx . . $ _GString#str. : NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!); |
| 1401 | success = !g_param_value_validatecxx . . $ g_param_value_validate(6ed626ba7bb3be9f). (pspec, dest_value); |
| 1402 | } |
| 1403 | } |
| 1404 | else if (g_value_type_transformablecxx . . $ g_value_type_transformable(8bdd4f646c1f3ab7). (G_VALUE_TYPEcxx . . $ `<external>/17218264759549183453/gvalue.h:66:9`! (src_value), G_VALUE_TYPEcxx . . $ `<external>/17218264759549183453/gvalue.h:66:9`! (dest_value))) |
| 1405 | success = g_param_value_convertcxx . . $ g_param_value_convert(70c96c85f4456cd2). (pspec, src_value, dest_value, TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!); |
| 1406 | |
| 1407 | return success; |
| 1408 | } |
| 1409 | |
| 1410 | static void |
| 1411 | apply_queued_settingcxx . . $ apply_queued_setting(390a45006e6f6a44). (GtkSettingscxx . . $ GtkSettings# *settings, |
| 1412 | GParamSpeccxx . . $ GParamSpec# *pspec, |
| 1413 | GtkSettingsValuecxx . . $ GtkSettingsValue# *qvalue) |
| 1414 | { |
| 1415 | GValuecxx . . $ GValue# tmp_value = G_VALUE_INITcxx . . $ `<external>/17218264759549183453/gvalue.h:250:9`!; |
| 1416 | |
| 1417 | g_value_initcxx . . $ g_value_init(afc049a76445919c). (&tmp_value, G_PARAM_SPEC_VALUE_TYPEcxx . . $ `<external>/7453068347527694854/gparam.h:105:9`! (pspec)); |
| 1418 | if (_gtk_settings_parse_convertcxx . . $ _gtk_settings_parse_convert(24efed610c309921). (&qvalue->valuecxx . . $ _GtkSettingsValue#value., |
| 1419 | pspec, &tmp_value)) |
| 1420 | { |
| 1421 | if (settings->property_valuescxx . . $ _GtkSettings#property_values.[pspec->param_idcxx . . $ _GParamSpec#param_id. - 1].sourcecxx . . $ _GtkSettingsPropertyValue#source. <= qvalue->sourcecxx . . $ _GtkSettingsValue#source.) |
| 1422 | { |
| 1423 | g_value_copycxx . . $ g_value_copy(76788ea28990d685). (&tmp_value, &settings->property_valuescxx . . $ _GtkSettings#property_values.[pspec->param_idcxx . . $ _GParamSpec#param_id. - 1].valuecxx . . $ _GtkSettingsPropertyValue#value.); |
| 1424 | settings->property_valuescxx . . $ _GtkSettings#property_values.[pspec->param_idcxx . . $ _GParamSpec#param_id. - 1].sourcecxx . . $ _GtkSettingsPropertyValue#source. = qvalue->sourcecxx . . $ _GtkSettingsValue#source.; |
| 1425 | g_object_notify_by_pspeccxx . . $ g_object_notify_by_pspec(89706f8943b9e738). (G_OBJECTcxx . . $ `<external>/1341695927569185362/gobject.h:54:9`! (settings), pspec); |
| 1426 | } |
| 1427 | |
| 1428 | } |
| 1429 | else |
| 1430 | { |
| 1431 | char *debug = g_strdup_value_contentscxx . . $ g_strdup_value_contents(602930317b8318e8). (&qvalue->valuecxx . . $ _GtkSettingsValue#value.); |
| 1432 | |
| 1433 | g_messagecxx . . $ `<external>/5169755362661750954/gmessages.h:334:9`! ("%s: failed to retrieve property '%s' of type '%s' from ini file value \"%s\" of type '%s'", |
| 1434 | qvalue->origin ? qvalue->origin : "(for origin information, set GTK_DEBUG)", |
| 1435 | pspec->name, |
| 1436 | g_type_name (G_PARAM_SPEC_VALUE_TYPEcxx . . $ `<external>/7453068347527694854/gparam.h:105:9`! (pspec)), |
| 1437 | debug, |
| 1438 | G_VALUE_TYPE_NAMEcxx . . $ `<external>/17218264759549183453/gvalue.h:76:9`! (&tmp_value)); |
| 1439 | g_freecxx . . $ g_free(5d22bdacc48458e8). (debug); |
| 1440 | } |
| 1441 | g_value_unsetcxx . . $ g_value_unset(15c06aff79890746). (&tmp_value); |
| 1442 | } |
| 1443 | |
| 1444 | static void |
| 1445 | free_valuecxx . . $ free_value(5d22bdacc48458e8). (gpointercxx . . $ gpointer# data) |
| 1446 | { |
| 1447 | GtkSettingsValuecxx . . $ GtkSettingsValue# *qvalue = data; |
| 1448 | |
| 1449 | g_value_unsetcxx . . $ g_value_unset(15c06aff79890746). (&qvalue->valuecxx . . $ _GtkSettingsValue#value.); |
| 1450 | g_freecxx . . $ g_free(5d22bdacc48458e8). (qvalue->origincxx . . $ _GtkSettingsValue#origin.); |
| 1451 | g_freecxx . . $ g_free(5d22bdacc48458e8). (qvalue); |
| 1452 | } |
| 1453 | |
| 1454 | static void |
| 1455 | gtk_settings_set_property_value_internalcxx . . $ gtk_settings_set_property_value_internal(b24b9afc804331dc). (GtkSettingscxx . . $ GtkSettings# *settings, |
| 1456 | const char *prop_name, |
| 1457 | const GtkSettingsValuecxx . . $ GtkSettingsValue# *new_value, |
| 1458 | GtkSettingsSourcecxx . . $ GtkSettingsSource# source) |
| 1459 | { |
| 1460 | GtkSettingsValuecxx . . $ GtkSettingsValue# *qvalue; |
| 1461 | GParamSpeccxx . . $ GParamSpec# *pspec; |
| 1462 | char *name; |
| 1463 | GQuarkcxx . . $ GQuark# name_quark; |
| 1464 | |
| 1465 | if (!G_VALUE_HOLDS_LONGcxx . . $ `<external>/11191352410969199049/gvaluetypes.h:86:9`! (&new_value->value) && |
| 1466 | !G_VALUE_HOLDS_DOUBLEcxx . . $ `<external>/11191352410969199049/gvaluetypes.h:131:9`! (&new_value->value) && |
| 1467 | !G_VALUE_HOLDS_ENUMcxx . . $ `<external>/14280463788989859268/genums.h:127:9`! (&new_value->value) && |
| 1468 | !G_VALUE_HOLDS_STRINGcxx . . $ `<external>/11191352410969199049/gvaluetypes.h:140:9`! (&new_value->value) && |
| 1469 | !G_VALUE_HOLDScxx . . $ `<external>/17218264759549183453/gvalue.h:91:9`! (&new_value->value, G_TYPE_GSTRINGcxx . . $ `<external>/9334670746570349148/glib-types.h:80:9`!)) |
| 1470 | { |
| 1471 | g_warningcxx . . $ `<external>/5169755362661750954/gmessages.h:340:9`! (G_STRLOCcxx . . $ `<external>/12741050725406041920/gmacros.h:928:9`! ": value type invalid (%s)", g_type_name (G_VALUE_TYPEcxx . . $ `<external>/17218264759549183453/gvalue.h:66:9`! (&new_value->value))); |
| 1472 | return; |
| 1473 | } |
| 1474 | |
| 1475 | name = g_strdupcxx . . $ `<external>/7822753393113922331/gstrfuncs.h:324:9`! (prop_name); |
| 1476 | g_strcanoncxx . . $ g_strcanon(9db9b3dbeaa7a83a). (name, G_CSET_DIGITScxx . . $ `<external>/17829244646623346061/gscanner.h:53:9`! "-" G_CSET_a_2_zcxx . . $ `<external>/17829244646623346061/gscanner.h:52:9`! G_CSET_A_2_Zcxx . . $ `<external>/17829244646623346061/gscanner.h:51:9`!, '-'); |
| 1477 | name_quark = g_quark_from_stringcxx . . $ g_quark_from_string(c61c63047ce273de). (name); |
| 1478 | g_freecxx . . $ g_free(5d22bdacc48458e8). (name); |
| 1479 | |
| 1480 | qvalue = g_datalist_id_dup_datacxx . . $ g_datalist_id_dup_data(f4e1cb9029be7b7). (&settings->queued_settingscxx . . $ _GtkSettings#queued_settings., name_quark, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!); |
| 1481 | if (!qvalue) |
| 1482 | { |
| 1483 | qvalue = g_new0cxx . . $ `<external>/1123956534522462559/gmem.h:335:9`! (GtkSettingsValue, 1); |
| 1484 | g_datalist_id_set_data_fullcxx . . $ g_datalist_id_set_data_full(1a5926a1461fc12d). (&settings->queued_settingscxx . . $ _GtkSettings#queued_settings., name_quark, qvalue, free_valuecxx . . $ free_value(5d22bdacc48458e8).); |
| 1485 | } |
| 1486 | else |
| 1487 | { |
| 1488 | g_freecxx . . $ g_free(5d22bdacc48458e8). (qvalue->origincxx . . $ _GtkSettingsValue#origin.); |
| 1489 | g_value_unsetcxx . . $ g_value_unset(15c06aff79890746). (&qvalue->valuecxx . . $ _GtkSettingsValue#value.); |
| 1490 | } |
| 1491 | qvalue->origincxx . . $ _GtkSettingsValue#origin. = g_strdupcxx . . $ `<external>/7822753393113922331/gstrfuncs.h:324:9`! (new_value->origin); |
| 1492 | g_value_initcxx . . $ g_value_init(afc049a76445919c). (&qvalue->valuecxx . . $ _GtkSettingsValue#value., G_VALUE_TYPEcxx . . $ `<external>/17218264759549183453/gvalue.h:66:9`! (&new_value->value)); |
| 1493 | g_value_copycxx . . $ g_value_copy(76788ea28990d685). (&new_value->valuecxx . . $ _GtkSettingsValue#value., &qvalue->valuecxx . . $ _GtkSettingsValue#value.); |
| 1494 | qvalue->sourcecxx . . $ _GtkSettingsValue#source. = source; |
| 1495 | pspec = g_object_class_find_propertycxx . . $ g_object_class_find_property(b571283151040038). (G_OBJECT_GET_CLASScxx . . $ `<external>/1341695927569185362/gobject.h:89:9`! (settings), g_quark_to_stringcxx . . $ g_quark_to_string(81a3ae90da26a711). (name_quark)); |
| 1496 | if (pspec) |
| 1497 | apply_queued_settingcxx . . $ apply_queued_setting(390a45006e6f6a44). (settings, pspec, qvalue); |
| 1498 | } |
| 1499 | |
| 1500 | static void |
| 1501 | settings_update_double_clickcxx . . $ settings_update_double_click(3a1a2342f95e7c64). (GtkSettingscxx . . $ GtkSettings# *settings) |
| 1502 | { |
| 1503 | int double_click_time; |
| 1504 | int double_click_distance; |
| 1505 | |
| 1506 | g_object_getcxx . . $ g_object_get(1ac911bdc4e9a14d). (settings, |
| 1507 | "gtk-double-click-time", &double_click_time, |
| 1508 | "gtk-double-click-distance", &double_click_distance, |
| 1509 | NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!); |
| 1510 | |
| 1511 | gdk_display_set_double_click_timecxx . . $ gdk_display_set_double_click_time(498fdba2e0943bbc). (settings->displaycxx . . $ _GtkSettings#display., double_click_time); |
| 1512 | gdk_display_set_double_click_distancecxx . . $ gdk_display_set_double_click_distance(498fdba2e0943bbc). (settings->displaycxx . . $ _GtkSettings#display., double_click_distance); |
| 1513 | } |
| 1514 | |
| 1515 | static void |
| 1516 | settings_update_cursor_themecxx . . $ settings_update_cursor_theme(3a1a2342f95e7c64). (GtkSettingscxx . . $ GtkSettings# *settings) |
| 1517 | { |
| 1518 | char *theme = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!; |
| 1519 | int size = 0; |
| 1520 | |
| 1521 | g_object_getcxx . . $ g_object_get(1ac911bdc4e9a14d). (settings, |
| 1522 | "gtk-cursor-theme-name", &theme, |
| 1523 | "gtk-cursor-theme-size", &size, |
| 1524 | NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!); |
| 1525 | if (theme) |
| 1526 | { |
| 1527 | gdk_display_set_cursor_themecxx . . $ gdk_display_set_cursor_theme(35c3d231effa2d41). (settings->displaycxx . . $ _GtkSettings#display., theme, size); |
| 1528 | g_freecxx . . $ g_free(5d22bdacc48458e8). (theme); |
| 1529 | } |
| 1530 | } |
| 1531 | |
| 1532 | static void |
| 1533 | settings_update_font_optionscxx . . $ settings_update_font_options(3a1a2342f95e7c64). (GtkSettingscxx . . $ GtkSettings# *settings) |
| 1534 | { |
| 1535 | int hinting; |
| 1536 | char *hint_style_str; |
| 1537 | cairo_hint_style_tcxx . . $ cairo_hint_style_t# hint_style; |
| 1538 | int antialias; |
| 1539 | cairo_antialias_tcxx . . $ cairo_antialias_t# antialias_mode; |
| 1540 | gbooleancxx . . $ gboolean# hint_font_metrics; |
| 1541 | |
| 1542 | if (settings->font_optionscxx . . $ _GtkSettings#font_options.) |
| 1543 | cairo_font_options_destroycxx . . $ cairo_font_options_destroy(a792a70f8195dbf5). (settings->font_optionscxx . . $ _GtkSettings#font_options.); |
| 1544 | |
| 1545 | g_object_getcxx . . $ g_object_get(1ac911bdc4e9a14d). (settings, |
| 1546 | "gtk-xft-antialias", &antialias, |
| 1547 | "gtk-xft-hinting", &hinting, |
| 1548 | "gtk-xft-hintstyle", &hint_style_str, |
| 1549 | "gtk-hint-font-metrics", &hint_font_metrics, |
| 1550 | NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!); |
| 1551 | |
| 1552 | settings->font_optionscxx . . $ _GtkSettings#font_options. = cairo_font_options_createcxx . . $ cairo_font_options_create(a87260634a73aab3). (); |
| 1553 | |
| 1554 | cairo_font_options_set_hint_metricscxx . . $ cairo_font_options_set_hint_metrics(180115c7db5a6972). (settings->font_optionscxx . . $ _GtkSettings#font_options., |
| 1555 | hint_font_metrics ? CAIRO_HINT_METRICS_ONcxx . . $ CAIRO_HINT_METRICS_ON. |
| 1556 | : CAIRO_HINT_METRICS_OFFcxx . . $ CAIRO_HINT_METRICS_OFF.); |
| 1557 | |
| 1558 | hint_style = CAIRO_HINT_STYLE_DEFAULTcxx . . $ CAIRO_HINT_STYLE_DEFAULT.; |
| 1559 | if (hinting == 0) |
| 1560 | { |
| 1561 | hint_style = CAIRO_HINT_STYLE_NONEcxx . . $ CAIRO_HINT_STYLE_NONE.; |
| 1562 | } |
| 1563 | else if (hinting == 1) |
| 1564 | { |
| 1565 | if (hint_style_str) |
| 1566 | { |
| 1567 | if (strcmpcxx . . $ strcmp(5ae29d726ae57f88). (hint_style_str, "hintnone") == 0) |
| 1568 | hint_style = CAIRO_HINT_STYLE_NONEcxx . . $ CAIRO_HINT_STYLE_NONE.; |
| 1569 | else if (strcmpcxx . . $ strcmp(5ae29d726ae57f88). (hint_style_str, "hintslight") == 0) |
| 1570 | hint_style = CAIRO_HINT_STYLE_SLIGHTcxx . . $ CAIRO_HINT_STYLE_SLIGHT.; |
| 1571 | else if (strcmpcxx . . $ strcmp(5ae29d726ae57f88). (hint_style_str, "hintmedium") == 0) |
| 1572 | hint_style = CAIRO_HINT_STYLE_MEDIUMcxx . . $ CAIRO_HINT_STYLE_MEDIUM.; |
| 1573 | else if (strcmpcxx . . $ strcmp(5ae29d726ae57f88). (hint_style_str, "hintfull") == 0) |
| 1574 | hint_style = CAIRO_HINT_STYLE_FULLcxx . . $ CAIRO_HINT_STYLE_FULL.; |
| 1575 | } |
| 1576 | } |
| 1577 | |
| 1578 | g_freecxx . . $ g_free(5d22bdacc48458e8). (hint_style_str); |
| 1579 | |
| 1580 | cairo_font_options_set_hint_stylecxx . . $ cairo_font_options_set_hint_style(33e11c79ba2fc534). (settings->font_optionscxx . . $ _GtkSettings#font_options., hint_style); |
| 1581 | |
| 1582 | if (antialias == 0) |
| 1583 | antialias_mode = CAIRO_ANTIALIAS_NONEcxx . . $ CAIRO_ANTIALIAS_NONE.; |
| 1584 | else |
| 1585 | antialias_mode = CAIRO_ANTIALIAS_GRAYcxx . . $ CAIRO_ANTIALIAS_GRAY.; |
| 1586 | |
| 1587 | cairo_font_options_set_antialiascxx . . $ cairo_font_options_set_antialias(7157882dc9915317). (settings->font_optionscxx . . $ _GtkSettings#font_options., antialias_mode); |
| 1588 | } |
| 1589 | |
| 1590 | static gbooleancxx . . $ gboolean# |
| 1591 | settings_update_fontconfigcxx . . $ settings_update_fontconfig(8c2d6b4329623181). (GtkSettingscxx . . $ GtkSettings# *settings) |
| 1592 | { |
| 1593 | #if defined(GDK_WINDOWING_X11cxx . . $ `build/gdk/gdkconfig.h:13:9`!) || defined(GDK_WINDOWING_WAYLANDcxx . . $ `build/gdk/gdkconfig.h:17:9`!) |
| 1594 | static guintcxx . . $ guint# last_update_timestamp; |
| 1595 | static gbooleancxx . . $ gboolean# last_update_needed; |
| 1596 | |
| 1597 | guintcxx . . $ guint# timestamp; |
| 1598 | |
| 1599 | g_object_getcxx . . $ g_object_get(1ac911bdc4e9a14d). (settings, |
| 1600 | "gtk-fontconfig-timestamp", ×tamp, |
| 1601 | NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!); |
| 1602 | |
| 1603 | /* if timestamp is the same as last_update_timestamp, we already have |
| 1604 | * updated fontconig on this timestamp (another screen requested it perhaps?), |
| 1605 | * just return the cached result.*/ |
| 1606 | |
| 1607 | if (timestamp != last_update_timestamp) |
| 1608 | { |
| 1609 | PangoFontMapcxx . . $ PangoFontMap# *fontmap = pango_cairo_font_map_get_defaultcxx . . $ pango_cairo_font_map_get_default(479e81c2adde0831). (); |
| 1610 | gbooleancxx . . $ gboolean# update_needed = FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!; |
| 1611 | |
| 1612 | /* bug 547680 */ |
| 1613 | if (PANGO_IS_FC_FONT_MAPcxx . . $ `<external>/12785139584841471268/pangofc-fontmap.h:45:9`! (fontmap) && !FcConfigUptoDatecxx . . $ FcConfigUptoDate(1f00f376ab6a10cc). (NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!)) |
| 1614 | { |
| 1615 | pango_fc_font_map_config_changedcxx . . $ pango_fc_font_map_config_changed(fca130ee12edf362). (PANGO_FC_FONT_MAPcxx . . $ `<external>/12785139584841471268/pangofc-fontmap.h:44:9`! (fontmap)); |
| 1616 | if (FcInitReinitializecxx . . $ FcInitReinitialize(b126dc7c1de90089). ()) |
| 1617 | update_needed = TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!; |
| 1618 | } |
| 1619 | |
| 1620 | last_update_timestamp = timestamp; |
| 1621 | last_update_needed = update_needed; |
| 1622 | } |
| 1623 | |
| 1624 | return last_update_needed; |
| 1625 | #else |
| 1626 | return FALSE; |
| 1627 | #endif /* GDK_WINDOWING_X11 || GDK_WINDOWING_WAYLAND */ |
| 1628 | } |
| 1629 | |
| 1630 | static void |
| 1631 | settings_update_providercxx . . $ settings_update_provider(cb12836823980416). (GdkDisplaycxx . . $ GdkDisplay# *display, |
| 1632 | GtkCssProvidercxx . . $ GtkCssProvider# **old, |
| 1633 | GtkCssProvidercxx . . $ GtkCssProvider# *new) |
| 1634 | { |
| 1635 | if (display != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`! && *old != new) |
| 1636 | { |
| 1637 | if (*old) |
| 1638 | { |
| 1639 | gtk_style_context_remove_provider_for_displaycxx . . $ gtk_style_context_remove_provider_for_display(79483e047e949d0e). (display, |
| 1640 | GTK_STYLE_PROVIDERcxx . . $ `gtk/gtkstyleprovider.h:31:9`! (*old)); |
| 1641 | g_object_unrefcxx . . $ g_object_unref(5d22bdacc48458e8). (*old); |
| 1642 | *old = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!; |
| 1643 | } |
| 1644 | |
| 1645 | if (new) |
| 1646 | { |
| 1647 | gtk_style_context_add_provider_for_displaycxx . . $ gtk_style_context_add_provider_for_display(8a449d0cfd17a958). (display, |
| 1648 | GTK_STYLE_PROVIDERcxx . . $ `gtk/gtkstyleprovider.h:31:9`! (new), |
| 1649 | GTK_STYLE_PROVIDER_PRIORITY_THEMEcxx . . $ `gtk/gtkstyleprovider.h:53:9`!); |
| 1650 | *old = g_object_refcxx . . $ `<external>/1341695927569185362/gobject.h:533:9`! (new); |
| 1651 | } |
| 1652 | } |
| 1653 | } |
| 1654 | |
| 1655 | static void |
| 1656 | get_theme_namecxx . . $ get_theme_name(25ae6af10a7dad17). (GtkSettingscxx . . $ GtkSettings# *settings, |
| 1657 | char **theme_name, |
| 1658 | char **theme_variant) |
| 1659 | { |
| 1660 | GtkInterfaceContrastcxx . . $ GtkInterfaceContrast# prefers_contrast; |
| 1661 | gbooleancxx . . $ gboolean# prefer_dark; |
| 1662 | |
| 1663 | *theme_name = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!; |
| 1664 | *theme_variant = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!; |
| 1665 | |
| 1666 | if (g_getenvcxx . . $ g_getenv(fb58d2e09a2a1ce6). ("GTK_THEME")) |
| 1667 | *theme_name = g_strdupcxx . . $ `<external>/7822753393113922331/gstrfuncs.h:324:9`! (g_getenv ("GTK_THEME")); |
| 1668 | |
| 1669 | if (*theme_name && **theme_name) |
| 1670 | { |
| 1671 | char *p; |
| 1672 | p = strrchrcxx . . $ strrchr(2050848944e00d54). (*theme_name, ':'); |
| 1673 | if (p) |
| 1674 | { |
| 1675 | *p = '\0'; |
| 1676 | p++; |
| 1677 | *theme_variant = g_strdupcxx . . $ `<external>/7822753393113922331/gstrfuncs.h:324:9`! (p); |
| 1678 | } |
| 1679 | else |
| 1680 | { |
| 1681 | *theme_variant = g_strdupcxx . . $ `<external>/7822753393113922331/gstrfuncs.h:324:9`! (""); |
| 1682 | } |
| 1683 | |
| 1684 | return; |
| 1685 | } |
| 1686 | |
| 1687 | g_freecxx . . $ g_free(5d22bdacc48458e8). (*theme_name); |
| 1688 | |
| 1689 | g_object_getcxx . . $ g_object_get(1ac911bdc4e9a14d). (settings, |
| 1690 | "gtk-theme-name", theme_name, |
| 1691 | "gtk-application-prefer-dark-theme", &prefer_dark, |
| 1692 | NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!); |
| 1693 | |
| 1694 | g_object_getcxx . . $ g_object_get(1ac911bdc4e9a14d). (settings->theme_providercxx . . $ _GtkSettings#theme_provider., "prefers-contrast", &prefers_contrast, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!); |
| 1695 | if (prefers_contrast == GTK_INTERFACE_CONTRAST_MOREcxx . . $ GTK_INTERFACE_CONTRAST_MORE.) |
| 1696 | { |
| 1697 | if (prefer_dark) |
| 1698 | *theme_variant = g_strdupcxx . . $ `<external>/7822753393113922331/gstrfuncs.h:324:9`! ("hc-dark"); |
| 1699 | else |
| 1700 | *theme_variant = g_strdupcxx . . $ `<external>/7822753393113922331/gstrfuncs.h:324:9`! ("hc"); |
| 1701 | } |
| 1702 | else if (prefer_dark) |
| 1703 | *theme_variant = g_strdupcxx . . $ `<external>/7822753393113922331/gstrfuncs.h:324:9`! ("dark"); |
| 1704 | |
| 1705 | if (*theme_name && **theme_name) |
| 1706 | return; |
| 1707 | |
| 1708 | g_freecxx . . $ g_free(5d22bdacc48458e8). (*theme_name); |
| 1709 | *theme_name = g_strdupcxx . . $ `<external>/7822753393113922331/gstrfuncs.h:324:9`! (DEFAULT_THEME_NAMEcxx . . $ `gtk/gtksettingsprivate.h:25:9`!); |
| 1710 | } |
| 1711 | |
| 1712 | static void |
| 1713 | settings_update_themecxx . . $ settings_update_theme(3a1a2342f95e7c64). (GtkSettingscxx . . $ GtkSettings# *settings) |
| 1714 | { |
| 1715 | char *theme_name; |
| 1716 | char *theme_variant; |
| 1717 | const char *theme_dir; |
| 1718 | char *path; |
| 1719 | |
| 1720 | get_theme_namecxx . . $ get_theme_name(25ae6af10a7dad17). (settings, &theme_name, &theme_variant); |
| 1721 | |
| 1722 | gtk_css_provider_load_namedcxx . . $ gtk_css_provider_load_named(acbce17c274cd680). (settings->theme_providercxx . . $ _GtkSettings#theme_provider., |
| 1723 | theme_name, |
| 1724 | theme_variant); |
| 1725 | |
| 1726 | /* reload per-theme settings */ |
| 1727 | theme_dir = _gtk_css_provider_get_theme_dircxx . . $ _gtk_css_provider_get_theme_dir(844419c3c0950e95). (settings->theme_providercxx . . $ _GtkSettings#theme_provider.); |
| 1728 | if (theme_dir) |
| 1729 | { |
| 1730 | path = g_build_filenamecxx . . $ g_build_filename(a849077ff1b8d812). (theme_dir, "settings.ini", NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!); |
| 1731 | gtk_settings_load_from_key_filecxx . . $ gtk_settings_load_from_key_file(fce4901f2b14d8f7). (settings, path, GTK_SETTINGS_SOURCE_THEMEcxx . . $ GTK_SETTINGS_SOURCE_THEME.); |
| 1732 | g_freecxx . . $ g_free(5d22bdacc48458e8). (path); |
| 1733 | } |
| 1734 | |
| 1735 | g_freecxx . . $ g_free(5d22bdacc48458e8). (theme_name); |
| 1736 | g_freecxx . . $ g_free(5d22bdacc48458e8). (theme_variant); |
| 1737 | } |
| 1738 | |
| 1739 | const cairo_font_options_tcxx . . $ cairo_font_options_t# * |
| 1740 | gtk_settings_get_font_optionscxx . . $ gtk_settings_get_font_options(759144fdc0829c81). (GtkSettingscxx . . $ GtkSettings# *settings) |
| 1741 | { |
| 1742 | return settings->font_optionscxx . . $ _GtkSettings#font_options.; |
| 1743 | } |
| 1744 | |
| 1745 | GdkDisplaycxx . . $ GdkDisplay# * |
| 1746 | _gtk_settings_get_displaycxx . . $ _gtk_settings_get_display(92f7abe486bbcb4e). (GtkSettingscxx . . $ GtkSettings# *settings) |
| 1747 | { |
| 1748 | return settings->displaycxx . . $ _GtkSettings#display.; |
| 1749 | } |
| 1750 | |
| 1751 | static void |
| 1752 | gvalue_freecxx . . $ gvalue_free(5d22bdacc48458e8). (gpointercxx . . $ gpointer# data) |
| 1753 | { |
| 1754 | g_value_unsetcxx . . $ g_value_unset(15c06aff79890746). (data); |
| 1755 | g_freecxx . . $ g_free(5d22bdacc48458e8). (data); |
| 1756 | } |
| 1757 | |
| 1758 | static void |
| 1759 | gtk_settings_load_from_key_filecxx . . $ gtk_settings_load_from_key_file(fce4901f2b14d8f7). (GtkSettingscxx . . $ GtkSettings# *settings, |
| 1760 | const char *path, |
| 1761 | GtkSettingsSourcecxx . . $ GtkSettingsSource# source) |
| 1762 | { |
| 1763 | GErrorcxx . . $ GError# *error; |
| 1764 | GKeyFilecxx . . $ GKeyFile# *keyfile; |
| 1765 | char **keys; |
| 1766 | gsizecxx . . $ gsize# n_keys; |
| 1767 | int i; |
| 1768 | char *contents; |
| 1769 | gsizecxx . . $ gsize# contents_len; |
| 1770 | |
| 1771 | if (!g_file_get_contentscxx . . $ g_file_get_contents(295e1f4744034d8a). (path, &contents, &contents_len, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!)) |
| 1772 | return; |
| 1773 | |
| 1774 | error = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!; |
| 1775 | keys = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!; |
| 1776 | |
| 1777 | keyfile = g_key_file_newcxx . . $ g_key_file_new(9306a185df8cc356). (); |
| 1778 | |
| 1779 | if (!g_key_file_load_from_datacxx . . $ g_key_file_load_from_data(df81ac01d9816af1). (keyfile, contents, contents_len, G_KEY_FILE_NONEcxx . . $ G_KEY_FILE_NONE., &error)) |
| 1780 | { |
| 1781 | g_warningcxx . . $ `<external>/5169755362661750954/gmessages.h:340:9`! ("Failed to parse %s: %s", path, error->message); |
| 1782 | |
| 1783 | g_error_freecxx . . $ g_error_free(2ff7d11a2ecc01bd). (error); |
| 1784 | |
| 1785 | goto out; |
| 1786 | } |
| 1787 | |
| 1788 | keys = g_key_file_get_keyscxx . . $ g_key_file_get_keys(ca03be217b79bf4e). (keyfile, "Settings", &n_keys, &error); |
| 1789 | if (error) |
| 1790 | { |
| 1791 | g_warningcxx . . $ `<external>/5169755362661750954/gmessages.h:340:9`! ("Failed to parse %s: %s", path, error->message); |
| 1792 | g_error_freecxx . . $ g_error_free(2ff7d11a2ecc01bd). (error); |
| 1793 | goto out; |
| 1794 | } |
| 1795 | |
| 1796 | for (i = 0; i < n_keys; i++) |
| 1797 | { |
| 1798 | char *key; |
| 1799 | GParamSpeccxx . . $ GParamSpec# *pspec; |
| 1800 | GTypecxx . . $ GType# value_type; |
| 1801 | GtkSettingsValuecxx . . $ GtkSettingsValue# svalue = { NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, G_VALUE_INITcxx . . $ `<external>/17218264759549183453/gvalue.h:250:9`!, GTK_SETTINGS_SOURCE_DEFAULTcxx . . $ GTK_SETTINGS_SOURCE_DEFAULT. }; |
| 1802 | |
| 1803 | key = keys[i]; |
| 1804 | pspec = g_object_class_find_propertycxx . . $ g_object_class_find_property(b571283151040038). (G_OBJECT_GET_CLASScxx . . $ `<external>/1341695927569185362/gobject.h:89:9`! (settings), key); |
| 1805 | if (!pspec) |
| 1806 | { |
| 1807 | g_warningcxx . . $ `<external>/5169755362661750954/gmessages.h:340:9`! ("Unknown key %s in %s", key, path); |
| 1808 | continue; |
| 1809 | } |
| 1810 | |
| 1811 | if (pspec->owner_typecxx . . $ _GParamSpec#owner_type. != G_OBJECT_TYPEcxx . . $ `<external>/1341695927569185362/gobject.h:98:9`! (settings)) |
| 1812 | continue; |
| 1813 | |
| 1814 | value_type = G_PARAM_SPEC_VALUE_TYPEcxx . . $ `<external>/7453068347527694854/gparam.h:105:9`! (pspec); |
| 1815 | switch (G_TYPE_FUNDAMENTALcxx . . $ `<external>/9567554376676449156/gtype.h:42:9`! (value_type)) |
| 1816 | { |
| 1817 | case G_TYPE_BOOLEANcxx . . $ `<external>/9567554376676449156/gtype.h:99:9`!: |
| 1818 | { |
| 1819 | gbooleancxx . . $ gboolean# b_val; |
| 1820 | |
| 1821 | g_value_initcxx . . $ g_value_init(afc049a76445919c). (&svalue.valuecxx . . $ _GtkSettingsValue#value., G_TYPE_LONGcxx . . $ `<external>/9567554376676449156/gtype.h:117:9`!); |
| 1822 | b_val = g_key_file_get_booleancxx . . $ g_key_file_get_boolean(86fb9b993951271). (keyfile, "Settings", key, &error); |
| 1823 | if (!error) |
| 1824 | g_value_set_longcxx . . $ g_value_set_long(fd815f0c60eea506). (&svalue.valuecxx . . $ _GtkSettingsValue#value., b_val); |
| 1825 | break; |
| 1826 | } |
| 1827 | |
| 1828 | case G_TYPE_INTcxx . . $ `<external>/9567554376676449156/gtype.h:105:9`!: |
| 1829 | case G_TYPE_UINTcxx . . $ `<external>/9567554376676449156/gtype.h:111:9`!: |
| 1830 | { |
| 1831 | int i_val; |
| 1832 | |
| 1833 | g_value_initcxx . . $ g_value_init(afc049a76445919c). (&svalue.valuecxx . . $ _GtkSettingsValue#value., G_TYPE_LONGcxx . . $ `<external>/9567554376676449156/gtype.h:117:9`!); |
| 1834 | i_val = g_key_file_get_integercxx . . $ g_key_file_get_integer(86fb9b993951271). (keyfile, "Settings", key, &error); |
| 1835 | if (!error) |
| 1836 | g_value_set_longcxx . . $ g_value_set_long(fd815f0c60eea506). (&svalue.valuecxx . . $ _GtkSettingsValue#value., i_val); |
| 1837 | break; |
| 1838 | } |
| 1839 | |
| 1840 | case G_TYPE_DOUBLEcxx . . $ `<external>/9567554376676449156/gtype.h:159:9`!: |
| 1841 | { |
| 1842 | double d_val; |
| 1843 | |
| 1844 | g_value_initcxx . . $ g_value_init(afc049a76445919c). (&svalue.valuecxx . . $ _GtkSettingsValue#value., G_TYPE_DOUBLEcxx . . $ `<external>/9567554376676449156/gtype.h:159:9`!); |
| 1845 | d_val = g_key_file_get_doublecxx . . $ g_key_file_get_double(1495822f59838e3d). (keyfile, "Settings", key, &error); |
| 1846 | if (!error) |
| 1847 | g_value_set_doublecxx . . $ g_value_set_double(994eddfdeb9c9cc0). (&svalue.valuecxx . . $ _GtkSettingsValue#value., d_val); |
| 1848 | break; |
| 1849 | } |
| 1850 | |
| 1851 | case G_TYPE_ENUMcxx . . $ `<external>/9567554376676449156/gtype.h:141:9`!: |
| 1852 | { |
| 1853 | char *s_val; |
| 1854 | |
| 1855 | g_value_initcxx . . $ g_value_init(afc049a76445919c). (&svalue.valuecxx . . $ _GtkSettingsValue#value., value_type); |
| 1856 | s_val = g_key_file_get_stringcxx . . $ g_key_file_get_string(30132561f3054bb4). (keyfile, "Settings", key, &error); |
| 1857 | if (!error) |
| 1858 | { |
| 1859 | GEnumClasscxx . . $ GEnumClass# *eclass; |
| 1860 | GEnumValuecxx . . $ GEnumValue# *ev; |
| 1861 | |
| 1862 | eclass = g_type_class_refcxx . . $ g_type_class_ref(bfcfa4d6b7f7ef64). (value_type); |
| 1863 | ev = g_enum_get_value_by_nickcxx . . $ g_enum_get_value_by_nick(627112342b2ce16e). (eclass, s_val); |
| 1864 | |
| 1865 | if (ev) |
| 1866 | g_value_set_enumcxx . . $ g_value_set_enum(b698c61e8e30c4ea). (&svalue.valuecxx . . $ _GtkSettingsValue#value., ev->valuecxx . . $ _GEnumValue#value.); |
| 1867 | else |
| 1868 | g_set_errorcxx . . $ g_set_error(ca0c191bc68fc328). (&error, G_KEY_FILE_ERRORcxx . . $ `<external>/12366871247351836173/gkeyfile.h:45:9`!, |
| 1869 | G_KEY_FILE_ERROR_INVALID_VALUEcxx . . $ G_KEY_FILE_ERROR_INVALID_VALUE., |
| 1870 | "Key file contains key “%s” " |
| 1871 | "which has a value that cannot be interpreted.", |
| 1872 | key); |
| 1873 | |
| 1874 | g_type_class_unrefcxx . . $ g_type_class_unref(5d22bdacc48458e8). (eclass); |
| 1875 | } |
| 1876 | g_freecxx . . $ g_free(5d22bdacc48458e8). (s_val); |
| 1877 | break; |
| 1878 | } |
| 1879 | |
| 1880 | default: |
| 1881 | { |
| 1882 | char *s_val; |
| 1883 | |
| 1884 | g_value_initcxx . . $ g_value_init(afc049a76445919c). (&svalue.valuecxx . . $ _GtkSettingsValue#value., G_TYPE_GSTRINGcxx . . $ `<external>/9334670746570349148/glib-types.h:80:9`!); |
| 1885 | s_val = g_key_file_get_stringcxx . . $ g_key_file_get_string(30132561f3054bb4). (keyfile, "Settings", key, &error); |
| 1886 | if (!error) |
| 1887 | g_value_take_boxedcxx . . $ g_value_take_boxed(806599f585dac18b). (&svalue.valuecxx . . $ _GtkSettingsValue#value., g_string_newcxx . . $ g_string_new(e8737c02110bb79b). (s_val)); |
| 1888 | g_freecxx . . $ g_free(5d22bdacc48458e8). (s_val); |
| 1889 | break; |
| 1890 | } |
| 1891 | } |
| 1892 | if (error) |
| 1893 | { |
| 1894 | g_warningcxx . . $ `<external>/5169755362661750954/gmessages.h:340:9`! ("Error setting %s in %s: %s", key, path, error->message); |
| 1895 | g_error_freecxx . . $ g_error_free(2ff7d11a2ecc01bd). (error); |
| 1896 | error = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!; |
| 1897 | } |
| 1898 | else |
| 1899 | { |
| 1900 | GValuecxx . . $ GValue# *copy; |
| 1901 | |
| 1902 | copy = g_new0cxx . . $ `<external>/1123956534522462559/gmem.h:335:9`! (GValue, 1); |
| 1903 | |
| 1904 | g_value_initcxx . . $ g_value_init(afc049a76445919c). (copy, G_VALUE_TYPEcxx . . $ `<external>/17218264759549183453/gvalue.h:66:9`! (&svalue.value)); |
| 1905 | g_value_copycxx . . $ g_value_copy(76788ea28990d685). (&svalue.valuecxx . . $ _GtkSettingsValue#value., copy); |
| 1906 | |
| 1907 | g_param_spec_set_qdata_fullcxx . . $ g_param_spec_set_qdata_full(63dcbdfa93ccb2c8). (pspec, g_quark_from_stringcxx . . $ g_quark_from_string(c61c63047ce273de). (key), |
| 1908 | copy, gvalue_freecxx . . $ gvalue_free(5d22bdacc48458e8).); |
| 1909 | |
| 1910 | if (g_getenvcxx . . $ g_getenv(fb58d2e09a2a1ce6). ("GTK_DEBUG")) |
| 1911 | svalue.origincxx . . $ _GtkSettingsValue#origin. = (char *)path; |
| 1912 | |
| 1913 | gtk_settings_set_property_value_internalcxx . . $ gtk_settings_set_property_value_internal(b24b9afc804331dc). (settings, key, &svalue, source); |
| 1914 | g_value_unsetcxx . . $ g_value_unset(15c06aff79890746). (&svalue.valuecxx . . $ _GtkSettingsValue#value.); |
| 1915 | } |
| 1916 | } |
| 1917 | |
| 1918 | out: |
| 1919 | g_freecxx . . $ g_free(5d22bdacc48458e8). (contents); |
| 1920 | g_strfreevcxx . . $ g_strfreev(3ed91490e421178f). (keys); |
| 1921 | g_key_file_freecxx . . $ g_key_file_free(cbd4d0325e4855a2). (keyfile); |
| 1922 | } |
| 1923 | |
| 1924 | static gbooleancxx . . $ gboolean# |
| 1925 | settings_update_xsettingcxx . . $ settings_update_xsetting(be69404bc415217e). (GtkSettingscxx . . $ GtkSettings# *settings, |
| 1926 | GParamSpeccxx . . $ GParamSpec# *pspec, |
| 1927 | gbooleancxx . . $ gboolean# force) |
| 1928 | { |
| 1929 | GTypecxx . . $ GType# value_type; |
| 1930 | gbooleancxx . . $ gboolean# retval = FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!; |
| 1931 | |
| 1932 | if (settings->property_valuescxx . . $ _GtkSettings#property_values.[pspec->param_idcxx . . $ _GParamSpec#param_id. - 1].sourcecxx . . $ _GtkSettingsPropertyValue#source. == GTK_SETTINGS_SOURCE_APPLICATIONcxx . . $ GTK_SETTINGS_SOURCE_APPLICATION.) |
| 1933 | return FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!; |
| 1934 | |
| 1935 | if (settings->property_valuescxx . . $ _GtkSettings#property_values.[pspec->param_idcxx . . $ _GParamSpec#param_id. - 1].sourcecxx . . $ _GtkSettingsPropertyValue#source. == GTK_SETTINGS_SOURCE_XSETTINGcxx . . $ GTK_SETTINGS_SOURCE_XSETTING. && !force) |
| 1936 | return FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!; |
| 1937 | |
| 1938 | value_type = G_PARAM_SPEC_VALUE_TYPEcxx . . $ `<external>/7453068347527694854/gparam.h:105:9`! (pspec); |
| 1939 | |
| 1940 | if (g_value_type_transformablecxx . . $ g_value_type_transformable(8bdd4f646c1f3ab7). (G_TYPE_INTcxx . . $ `<external>/9567554376676449156/gtype.h:105:9`!, value_type) || |
| 1941 | g_value_type_transformablecxx . . $ g_value_type_transformable(8bdd4f646c1f3ab7). (G_TYPE_STRINGcxx . . $ `<external>/9567554376676449156/gtype.h:165:9`!, value_type) || |
| 1942 | g_value_type_transformablecxx . . $ g_value_type_transformable(8bdd4f646c1f3ab7). (GDK_TYPE_RGBAcxx . . $ `gdk/gdkrgba.h:43:9`!, value_type)) |
| 1943 | { |
| 1944 | GValuecxx . . $ GValue# val = G_VALUE_INITcxx . . $ `<external>/17218264759549183453/gvalue.h:250:9`!; |
| 1945 | |
| 1946 | g_value_initcxx . . $ g_value_init(afc049a76445919c). (&val, value_type); |
| 1947 | |
| 1948 | if (!gdk_display_get_settingcxx . . $ gdk_display_get_setting(944dfbce379a09ab). (settings->displaycxx . . $ _GtkSettings#display., pspec->namecxx . . $ _GParamSpec#name., &val)) |
| 1949 | return FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!; |
| 1950 | |
| 1951 | g_param_value_validatecxx . . $ g_param_value_validate(6ed626ba7bb3be9f). (pspec, &val); |
| 1952 | g_value_copycxx . . $ g_value_copy(76788ea28990d685). (&val, &settings->property_valuescxx . . $ _GtkSettings#property_values.[pspec->param_idcxx . . $ _GParamSpec#param_id. - 1].valuecxx . . $ _GtkSettingsPropertyValue#value.); |
| 1953 | settings->property_valuescxx . . $ _GtkSettings#property_values.[pspec->param_idcxx . . $ _GParamSpec#param_id. - 1].sourcecxx . . $ _GtkSettingsPropertyValue#source. = GTK_SETTINGS_SOURCE_XSETTINGcxx . . $ GTK_SETTINGS_SOURCE_XSETTING.; |
| 1954 | |
| 1955 | g_value_unsetcxx . . $ g_value_unset(15c06aff79890746). (&val); |
| 1956 | |
| 1957 | retval = TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!; |
| 1958 | } |
| 1959 | else |
| 1960 | { |
| 1961 | return FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!; |
| 1962 | } |
| 1963 | |
| 1964 | return retval; |
| 1965 | } |
| 1966 | |
| 1967 | static void |
| 1968 | settings_update_xsettingscxx . . $ settings_update_xsettings(3a1a2342f95e7c64). (GtkSettingscxx . . $ GtkSettings# *settings) |
| 1969 | { |
| 1970 | int i; |
| 1971 | |
| 1972 | for (i = 1; i < NUM_PROPERTIEScxx . . $ NUM_PROPERTIES.; i++) |
| 1973 | settings_update_xsettingcxx . . $ settings_update_xsetting(be69404bc415217e). (settings, pspecscxx . . $ pspecs.[i], FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!); |
| 1974 | } |
| 1975 | |
| 1976 | static void |
| 1977 | gtk_settings_get_propertycxx . . $ gtk_settings_get_property(cee2c52f22407c66). (GObjectcxx . . $ GObject# *object, |
| 1978 | guintcxx . . $ guint# property_id, |
| 1979 | GValuecxx . . $ GValue# *value, |
| 1980 | GParamSpeccxx . . $ GParamSpec# *pspec) |
| 1981 | { |
| 1982 | GtkSettingscxx . . $ GtkSettings# *settings = GTK_SETTINGScxx . . $ `gtk/gtksettings.h:32:9`! (object); |
| 1983 | |
| 1984 | settings_update_xsettingcxx . . $ settings_update_xsetting(be69404bc415217e). (settings, pspec, FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!); |
| 1985 | |
| 1986 | g_value_copycxx . . $ g_value_copy(76788ea28990d685). (&settings->property_valuescxx . . $ _GtkSettings#property_values.[property_id - 1].valuecxx . . $ _GtkSettingsPropertyValue#value., value); |
| 1987 | } |
| 1988 | |
| 1989 | GtkSettingsSourcecxx . . $ GtkSettingsSource# |
| 1990 | _gtk_settings_get_setting_sourcecxx . . $ _gtk_settings_get_setting_source(428b06f535651b0c). (GtkSettingscxx . . $ GtkSettings# *settings, |
| 1991 | const char *name) |
| 1992 | { |
| 1993 | GParamSpeccxx . . $ GParamSpec# *pspec; |
| 1994 | |
| 1995 | pspec = g_object_class_find_propertycxx . . $ g_object_class_find_property(b571283151040038). (G_OBJECT_GET_CLASScxx . . $ `<external>/1341695927569185362/gobject.h:89:9`! (settings), name); |
| 1996 | if (!pspec) |
| 1997 | return GTK_SETTINGS_SOURCE_DEFAULTcxx . . $ GTK_SETTINGS_SOURCE_DEFAULT.; |
| 1998 | |
| 1999 | return settings->property_valuescxx . . $ _GtkSettings#property_values.[pspec->param_idcxx . . $ _GParamSpec#param_id. - 1].sourcecxx . . $ _GtkSettingsPropertyValue#source.; |
| 2000 | } |
| 2001 | |
| 2002 | /** |
| 2003 | * gtk_settings_reset_property: |
| 2004 | * @settings: a `GtkSettings` object |
| 2005 | * @name: the name of the setting to reset |
| 2006 | * |
| 2007 | * Undoes the effect of calling g_object_set() to install an |
| 2008 | * application-specific value for a setting. |
| 2009 | * |
| 2010 | * After this call, the setting will again follow the session-wide |
| 2011 | * value for this setting. |
| 2012 | */ |
| 2013 | void |
| 2014 | gtk_settings_reset_propertycxx . . $ gtk_settings_reset_property(ea98dc5554e3c3de). (GtkSettingscxx . . $ GtkSettings# *settings, |
| 2015 | const char *name) |
| 2016 | { |
| 2017 | GParamSpeccxx . . $ GParamSpec# *pspec; |
| 2018 | GValuecxx . . $ GValue# *value; |
| 2019 | GValuecxx . . $ GValue# tmp_value = G_VALUE_INITcxx . . $ `<external>/17218264759549183453/gvalue.h:250:9`!; |
| 2020 | |
| 2021 | pspec = g_object_class_find_propertycxx . . $ g_object_class_find_property(b571283151040038). (G_OBJECT_GET_CLASScxx . . $ `<external>/1341695927569185362/gobject.h:89:9`! (settings), name); |
| 2022 | |
| 2023 | g_return_if_failcxx . . $ `<external>/5169755362661750954/gmessages.h:652:9`! (pspec != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!); |
| 2024 | |
| 2025 | value = g_param_spec_get_qdatacxx . . $ g_param_spec_get_qdata(27062c0ea673db24). (pspec, g_quark_from_stringcxx . . $ g_quark_from_string(c61c63047ce273de). (name)); |
| 2026 | |
| 2027 | g_value_initcxx . . $ g_value_init(afc049a76445919c). (&tmp_value, G_PARAM_SPEC_VALUE_TYPEcxx . . $ `<external>/7453068347527694854/gparam.h:105:9`! (pspec)); |
| 2028 | if (value && _gtk_settings_parse_convertcxx . . $ _gtk_settings_parse_convert(24efed610c309921). (value, pspec, &tmp_value)) |
| 2029 | g_value_copycxx . . $ g_value_copy(76788ea28990d685). (&tmp_value, &settings->property_valuescxx . . $ _GtkSettings#property_values.[pspec->param_idcxx . . $ _GParamSpec#param_id. - 1].valuecxx . . $ _GtkSettingsPropertyValue#value.); |
| 2030 | else |
| 2031 | g_param_value_set_defaultcxx . . $ g_param_value_set_default(b2512a401e854eb5). (pspec, &settings->property_valuescxx . . $ _GtkSettings#property_values.[pspec->param_idcxx . . $ _GParamSpec#param_id. - 1].valuecxx . . $ _GtkSettingsPropertyValue#value.); |
| 2032 | g_value_unsetcxx . . $ g_value_unset(15c06aff79890746). (&tmp_value); |
| 2033 | |
| 2034 | settings->property_valuescxx . . $ _GtkSettings#property_values.[pspec->param_idcxx . . $ _GParamSpec#param_id. - 1].sourcecxx . . $ _GtkSettingsPropertyValue#source. = GTK_SETTINGS_SOURCE_DEFAULTcxx . . $ GTK_SETTINGS_SOURCE_DEFAULT.; |
| 2035 | g_object_notify_by_pspeccxx . . $ g_object_notify_by_pspec(89706f8943b9e738). (G_OBJECTcxx . . $ `<external>/1341695927569185362/gobject.h:54:9`! (settings), pspec); |
| 2036 | } |
| 2037 | |
| 2038 | gbooleancxx . . $ gboolean# |
| 2039 | gtk_settings_get_enable_animationscxx . . $ gtk_settings_get_enable_animations(8c2d6b4329623181). (GtkSettingscxx . . $ GtkSettings# *settings) |
| 2040 | { |
| 2041 | GtkSettingsPropertyValuecxx . . $ GtkSettingsPropertyValue# *svalue = &settings->property_valuescxx . . $ _GtkSettings#property_values.[PROP_ENABLE_ANIMATIONScxx . . $ PROP_ENABLE_ANIMATIONS. - 1]; |
| 2042 | |
| 2043 | if (svalue->sourcecxx . . $ _GtkSettingsPropertyValue#source. < GTK_SETTINGS_SOURCE_XSETTINGcxx . . $ GTK_SETTINGS_SOURCE_XSETTING.) |
| 2044 | { |
| 2045 | GParamSpeccxx . . $ GParamSpec# *pspec; |
| 2046 | |
| 2047 | pspec = g_object_class_find_propertycxx . . $ g_object_class_find_property(b571283151040038). (G_OBJECT_GET_CLASScxx . . $ `<external>/1341695927569185362/gobject.h:89:9`! (settings), "gtk-enable-animations"); |
| 2048 | if (settings_update_xsettingcxx . . $ settings_update_xsetting(be69404bc415217e). (settings, pspec, FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!)) |
| 2049 | g_object_notify_by_pspeccxx . . $ g_object_notify_by_pspec(89706f8943b9e738). (G_OBJECTcxx . . $ `<external>/1341695927569185362/gobject.h:54:9`! (settings), pspec); |
| 2050 | } |
| 2051 | |
| 2052 | return g_value_get_booleancxx . . $ g_value_get_boolean(f890c5c75ead5b21). (&svalue->valuecxx . . $ _GtkSettingsPropertyValue#value.); |
| 2053 | } |
| 2054 | |
| 2055 | int |
| 2056 | gtk_settings_get_dnd_drag_thresholdcxx . . $ gtk_settings_get_dnd_drag_threshold(8c2d6b4329623181). (GtkSettingscxx . . $ GtkSettings# *settings) |
| 2057 | { |
| 2058 | GtkSettingsPropertyValuecxx . . $ GtkSettingsPropertyValue# *svalue = &settings->property_valuescxx . . $ _GtkSettings#property_values.[PROP_DND_DRAG_THRESHOLDcxx . . $ PROP_DND_DRAG_THRESHOLD. - 1]; |
| 2059 | |
| 2060 | if (svalue->sourcecxx . . $ _GtkSettingsPropertyValue#source. < GTK_SETTINGS_SOURCE_XSETTINGcxx . . $ GTK_SETTINGS_SOURCE_XSETTING.) |
| 2061 | { |
| 2062 | GParamSpeccxx . . $ GParamSpec# *pspec; |
| 2063 | |
| 2064 | pspec = g_object_class_find_propertycxx . . $ g_object_class_find_property(b571283151040038). (G_OBJECT_GET_CLASScxx . . $ `<external>/1341695927569185362/gobject.h:89:9`! (settings), "gtk-dnd-drag-threshold"); |
| 2065 | if (settings_update_xsettingcxx . . $ settings_update_xsetting(be69404bc415217e). (settings, pspec, FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!)) |
| 2066 | g_object_notify_by_pspeccxx . . $ g_object_notify_by_pspec(89706f8943b9e738). (G_OBJECTcxx . . $ `<external>/1341695927569185362/gobject.h:54:9`! (settings), pspec); |
| 2067 | } |
| 2068 | |
| 2069 | return g_value_get_intcxx . . $ g_value_get_int(f890c5c75ead5b21). (&svalue->valuecxx . . $ _GtkSettingsPropertyValue#value.); |
| 2070 | } |
| 2071 | |
| 2072 | static void |
| 2073 | settings_update_font_namecxx . . $ settings_update_font_name(3a1a2342f95e7c64). (GtkSettingscxx . . $ GtkSettings# *settings) |
| 2074 | { |
| 2075 | GtkSettingsPropertyValuecxx . . $ GtkSettingsPropertyValue# *svalue = &settings->property_valuescxx . . $ _GtkSettings#property_values.[PROP_FONT_NAMEcxx . . $ PROP_FONT_NAME. - 1]; |
| 2076 | |
| 2077 | if (svalue->sourcecxx . . $ _GtkSettingsPropertyValue#source. < GTK_SETTINGS_SOURCE_XSETTINGcxx . . $ GTK_SETTINGS_SOURCE_XSETTING.) |
| 2078 | { |
| 2079 | GParamSpeccxx . . $ GParamSpec# *pspec; |
| 2080 | |
| 2081 | pspec = g_object_class_find_propertycxx . . $ g_object_class_find_property(b571283151040038). (G_OBJECT_GET_CLASScxx . . $ `<external>/1341695927569185362/gobject.h:89:9`! (settings), "gtk-font-name"); |
| 2082 | if (settings_update_xsettingcxx . . $ settings_update_xsetting(be69404bc415217e). (settings, pspec, FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!)) |
| 2083 | g_object_notify_by_pspeccxx . . $ g_object_notify_by_pspec(89706f8943b9e738). (G_OBJECTcxx . . $ `<external>/1341695927569185362/gobject.h:54:9`! (settings), pspec); |
| 2084 | } |
| 2085 | } |
| 2086 | |
| 2087 | const char * |
| 2088 | gtk_settings_get_font_familycxx . . $ gtk_settings_get_font_family(4629a29c728a45e5). (GtkSettingscxx . . $ GtkSettings# *settings) |
| 2089 | { |
| 2090 | settings_update_font_namecxx . . $ settings_update_font_name(3a1a2342f95e7c64). (settings); |
| 2091 | |
| 2092 | return settings->font_familycxx . . $ _GtkSettings#font_family.; |
| 2093 | } |
| 2094 | |
| 2095 | int |
| 2096 | gtk_settings_get_font_sizecxx . . $ gtk_settings_get_font_size(8c2d6b4329623181). (GtkSettingscxx . . $ GtkSettings# *settings) |
| 2097 | { |
| 2098 | settings_update_font_namecxx . . $ settings_update_font_name(3a1a2342f95e7c64). (settings); |
| 2099 | |
| 2100 | return settings->font_sizecxx . . $ _GtkSettings#font_size.; |
| 2101 | } |
| 2102 | |
| 2103 | gbooleancxx . . $ gboolean# |
| 2104 | gtk_settings_get_font_size_is_absolutecxx . . $ gtk_settings_get_font_size_is_absolute(8c2d6b4329623181). (GtkSettingscxx . . $ GtkSettings# *settings) |
| 2105 | { |
| 2106 | settings_update_font_namecxx . . $ settings_update_font_name(3a1a2342f95e7c64). (settings); |
| 2107 | |
| 2108 | return settings->font_size_absolutecxx . . $ _GtkSettings#font_size_absolute.; |
| 2109 | } |