diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-27 15:25:44 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-27 15:25:44 +0000 |
commit | 26e5532cd264d58100e9db9c28ee6f13c4b36ab8 (patch) | |
tree | 6165da9db89a878424c0da6b6f8824dece5735ec /headers | |
parent | Initial commit. (diff) | |
download | gsettings-desktop-schemas-26e5532cd264d58100e9db9c28ee6f13c4b36ab8.tar.xz gsettings-desktop-schemas-26e5532cd264d58100e9db9c28ee6f13c4b36ab8.zip |
Adding upstream version 3.38.0.upstream/3.38.0upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'headers')
-rw-r--r-- | headers/dummy-msvc.c | 5 | ||||
-rw-r--r-- | headers/gdesktop-enums.h | 230 | ||||
-rw-r--r-- | headers/meson.build | 45 |
3 files changed, 280 insertions, 0 deletions
diff --git a/headers/dummy-msvc.c b/headers/dummy-msvc.c new file mode 100644 index 0000000..8da963c --- /dev/null +++ b/headers/dummy-msvc.c @@ -0,0 +1,5 @@ +/* dummy source file required for building Introspection files on Visual Studio */ +void dummy() +{ + return; +} diff --git a/headers/gdesktop-enums.h b/headers/gdesktop-enums.h new file mode 100644 index 0000000..2ab6643 --- /dev/null +++ b/headers/gdesktop-enums.h @@ -0,0 +1,230 @@ +/* + * Copyright © 2010 Codethink Limited + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301, USA. + * + * Authors: + * Ryan Lortie <desrt@desrt.ca> + */ + +#ifndef __gdesktop_enums_h__ +#define __gdesktop_enums_h__ + +typedef enum +{ + G_DESKTOP_PROXY_MODE_NONE, + G_DESKTOP_PROXY_MODE_MANUAL, + G_DESKTOP_PROXY_MODE_AUTO +} GDesktopProxyMode; + +typedef enum +{ + G_DESKTOP_TOOLBAR_STYLE_BOTH, + G_DESKTOP_TOOLBAR_STYLE_BOTH_HORIZ, + G_DESKTOP_TOOLBAR_STYLE_ICONS, + G_DESKTOP_TOOLBAR_STYLE_TEXT +} GDesktopToolbarStyle; + +typedef enum +{ + G_DESKTOP_TOOLBAR_ICON_SIZE_SMALL, + G_DESKTOP_TOOLBAR_ICON_SIZE_LARGE +} GDesktopToolbarIconSize; + +typedef enum +{ + G_DESKTOP_BACKGROUND_STYLE_NONE, + G_DESKTOP_BACKGROUND_STYLE_WALLPAPER, + G_DESKTOP_BACKGROUND_STYLE_CENTERED, + G_DESKTOP_BACKGROUND_STYLE_SCALED, + G_DESKTOP_BACKGROUND_STYLE_STRETCHED, + G_DESKTOP_BACKGROUND_STYLE_ZOOM, + G_DESKTOP_BACKGROUND_STYLE_SPANNED +} GDesktopBackgroundStyle; + +typedef enum +{ + G_DESKTOP_BACKGROUND_SHADING_SOLID, + G_DESKTOP_BACKGROUND_SHADING_VERTICAL, + G_DESKTOP_BACKGROUND_SHADING_HORIZONTAL +} GDesktopBackgroundShading; + +typedef enum +{ + G_DESKTOP_MOUSE_DWELL_MODE_WINDOW, + G_DESKTOP_MOUSE_DWELL_MODE_GESTURE +} GDesktopMouseDwellMode; + +typedef enum +{ + G_DESKTOP_MOUSE_DWELL_DIRECTION_LEFT, + G_DESKTOP_MOUSE_DWELL_DIRECTION_RIGHT, + G_DESKTOP_MOUSE_DWELL_DIRECTION_UP, + G_DESKTOP_MOUSE_DWELL_DIRECTION_DOWN +} GDesktopMouseDwellDirection; + +typedef enum +{ + G_DESKTOP_CLOCK_FORMAT_24H, + G_DESKTOP_CLOCK_FORMAT_12H +} GDesktopClockFormat; + +typedef enum +{ + G_DESKTOP_SCREENSAVER_MODE_BLANK_ONLY, + G_DESKTOP_SCREENSAVER_MODE_RANDOM, + G_DESKTOP_SCREENSAVER_MODE_SINGLE +} GDesktopScreensaverMode; + +typedef enum +{ + G_DESKTOP_MAGNIFIER_MOUSE_TRACKING_MODE_NONE, + G_DESKTOP_MAGNIFIER_MOUSE_TRACKING_MODE_CENTERED, + G_DESKTOP_MAGNIFIER_MOUSE_TRACKING_MODE_PROPORTIONAL, + G_DESKTOP_MAGNIFIER_MOUSE_TRACKING_MODE_PUSH +} GDesktopMagnifierMouseTrackingMode; + +typedef enum +{ + G_DESKTOP_MAGNIFIER_FOCUS_TRACKING_MODE_NONE, + G_DESKTOP_MAGNIFIER_FOCUS_TRACKING_MODE_CENTERED, + G_DESKTOP_MAGNIFIER_FOCUS_TRACKING_MODE_PROPORTIONAL, + G_DESKTOP_MAGNIFIER_FOCUS_TRACKING_MODE_PUSH +} GDesktopMagnifierFocusTrackingMode; + +typedef enum +{ + G_DESKTOP_MAGNIFIER_CARET_TRACKING_MODE_NONE, + G_DESKTOP_MAGNIFIER_CARET_TRACKING_MODE_CENTERED, + G_DESKTOP_MAGNIFIER_CARET_TRACKING_MODE_PROPORTIONAL, + G_DESKTOP_MAGNIFIER_CARET_TRACKING_MODE_PUSH +} GDesktopMagnifierCaretTrackingMode; +typedef enum +{ + G_DESKTOP_MAGNIFIER_SCREEN_POSITION_NONE, + G_DESKTOP_MAGNIFIER_SCREEN_POSITION_FULL_SCREEN, + G_DESKTOP_MAGNIFIER_SCREEN_POSITION_TOP_HALF, + G_DESKTOP_MAGNIFIER_SCREEN_POSITION_BOTTOM_HALF, + G_DESKTOP_MAGNIFIER_SCREEN_POSITION_LEFT_HALF, + G_DESKTOP_MAGNIFIER_SCREEN_POSITION_RIGHT_HALF, +} GDesktopMagnifierScreenPosition; + +typedef enum +{ + G_DESKTOP_TITLEBAR_ACTION_TOGGLE_SHADE, + G_DESKTOP_TITLEBAR_ACTION_TOGGLE_MAXIMIZE, + G_DESKTOP_TITLEBAR_ACTION_TOGGLE_MAXIMIZE_HORIZONTALLY, + G_DESKTOP_TITLEBAR_ACTION_TOGGLE_MAXIMIZE_VERTICALLY, + G_DESKTOP_TITLEBAR_ACTION_MINIMIZE, + G_DESKTOP_TITLEBAR_ACTION_NONE, + G_DESKTOP_TITLEBAR_ACTION_LOWER, + G_DESKTOP_TITLEBAR_ACTION_MENU, +} GDesktopTitlebarAction; + +typedef enum +{ + G_DESKTOP_FOCUS_MODE_CLICK, + G_DESKTOP_FOCUS_MODE_SLOPPY, + G_DESKTOP_FOCUS_MODE_MOUSE, +} GDesktopFocusMode; + +typedef enum +{ + G_DESKTOP_FOCUS_NEW_WINDOWS_SMART, + G_DESKTOP_FOCUS_NEW_WINDOWS_STRICT, +} GDesktopFocusNewWindows; + +typedef enum +{ + G_DESKTOP_VISUAL_BELL_FULLSCREEN_FLASH, + G_DESKTOP_VISUAL_BELL_FRAME_FLASH, +} GDesktopVisualBellType; + +typedef enum +{ + G_DESKTOP_LOCATION_ACCURACY_LEVEL_COUNTRY, + G_DESKTOP_LOCATION_ACCURACY_LEVEL_CITY, + G_DESKTOP_LOCATION_ACCURACY_LEVEL_NEIGHBORHOOD, + G_DESKTOP_LOCATION_ACCURACY_LEVEL_STREET, + G_DESKTOP_LOCATION_ACCURACY_LEVEL_EXACT +} GDesktopLocationAccuracyLevel; + +typedef enum +{ + G_DESKTOP_TOUCHPAD_HANDEDNESS_RIGHT, + G_DESKTOP_TOUCHPAD_HANDEDNESS_LEFT, + G_DESKTOP_TOUCHPAD_HANDEDNESS_MOUSE +} GDesktopTouchpadHandedness; + +typedef enum +{ + G_DESKTOP_TOUCHPAD_CLICK_METHOD_DEFAULT, + G_DESKTOP_TOUCHPAD_CLICK_METHOD_NONE, + G_DESKTOP_TOUCHPAD_CLICK_METHOD_AREAS, + G_DESKTOP_TOUCHPAD_CLICK_METHOD_FINGERS +} GDesktopTouchpadClickMethod; + +typedef enum +{ + G_DESKTOP_TOUCHPAD_BUTTON_TAP_MAP_DEFAULT, + G_DESKTOP_TOUCHPAD_BUTTON_TAP_MAP_LRM, + G_DESKTOP_TOUCHPAD_BUTTON_TAP_MAP_LMR +} GDesktopTouchpadTapButtonMap; + +typedef enum +{ + G_DESKTOP_DEVICE_SEND_EVENTS_ENABLED, + G_DESKTOP_DEVICE_SEND_EVENTS_DISABLED, + G_DESKTOP_DEVICE_SEND_EVENTS_DISABLED_ON_EXTERNAL_MOUSE +} GDesktopDeviceSendEvents; + +typedef enum +{ + G_DESKTOP_TABLET_MAPPING_ABSOLUTE, + G_DESKTOP_TABLET_MAPPING_RELATIVE +} GDesktopTabletMapping; + +typedef enum +{ + G_DESKTOP_PAD_BUTTON_ACTION_NONE, + G_DESKTOP_PAD_BUTTON_ACTION_HELP, + G_DESKTOP_PAD_BUTTON_ACTION_SWITCH_MONITOR, + G_DESKTOP_PAD_BUTTON_ACTION_KEYBINDING +} GDesktopPadButtonAction; + +typedef enum +{ + G_DESKTOP_STYLUS_BUTTON_ACTION_DEFAULT, + G_DESKTOP_STYLUS_BUTTON_ACTION_MIDDLE, + G_DESKTOP_STYLUS_BUTTON_ACTION_RIGHT, + G_DESKTOP_STYLUS_BUTTON_ACTION_BACK, + G_DESKTOP_STYLUS_BUTTON_ACTION_FORWARD +} GDesktopStylusButtonAction; + +typedef enum +{ + G_DESKTOP_POINTER_ACCEL_PROFILE_DEFAULT, + G_DESKTOP_POINTER_ACCEL_PROFILE_FLAT, + G_DESKTOP_POINTER_ACCEL_PROFILE_ADAPTIVE +} GDesktopPointerAccelProfile; + +typedef enum +{ + G_DESKTOP_USB_PROTECTION_LOCKSCREEN, + G_DESKTOP_USB_PROTECTION_ALWAYS +} GDesktopUsbProtection; + +#endif /* __gdesktop_enums_h__ */ diff --git a/headers/meson.build b/headers/meson.build new file mode 100644 index 0000000..2aed919 --- /dev/null +++ b/headers/meson.build @@ -0,0 +1,45 @@ +headers = files( + 'gdesktop-enums.h' +) + +install_headers(headers, subdir: gsettings_desktop_schemas_name) + +enums_xml = custom_target( + 'org.gnome.desktop.enums.xml', + input: headers, + output: 'org.gnome.desktop.enums.xml', + command: [glib_mkenums, + '--comments', '<!-- @comment@ -->', + '--fhead', '<schemalist>', + '--vhead', '<@type@ id="org.gnome.desktop.@EnumName@">', + '--vprod', ' <value nick="@valuenick@" value="@valuenum@"/>', + '--vtail', ' </@type@>', + '--ftail', '</schemalist>', '@INPUT@'], + capture: true, + install: true, + install_dir: schemasdir) + +if get_option('introspection') + gir_sources = headers + + # Use a dummy .c source for Visual Studio builds-it is not enough + # to send in just a header file to build a dummy library on MSVC + if cc.get_id() == 'msvc' + gir_sources += ['dummy-msvc.c'] + endif + + noinst_lib = shared_library('noinst', + gir_sources, + install: false) + + gnome.generate_gir(noinst_lib, + sources: headers, + namespace: 'GDesktopEnums', + identifier_prefix: 'GDesktop', + nsversion : '3.0', + install: true, + extra_args: [ + '--header-only', + ] + ) +endif |