1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
|
From e3807249480b48ad403f94d62c39afca9251b149 Mon Sep 17 00:00:00 2001
From: "Brian J. Tarricone" <brian@tarricone.org>
Date: Fri, 26 Apr 2024 01:20:14 -0700
Subject: [PATCH] Fix invalid param flags
---
src/xfce-desktop.c | 20 ++++++--------------
1 file changed, 6 insertions(+), 14 deletions(-)
diff --git a/src/xfce-desktop.c b/src/xfce-desktop.c
index b4f837ef..37b4b277 100644
--- a/src/xfce-desktop.c
+++ b/src/xfce-desktop.c
@@ -730,31 +730,26 @@ xfce_desktop_class_init(XfceDesktopClass *klass)
widget_class->popup_menu = xfce_desktop_popup_menu;
widget_class->style_updated = xfce_desktop_style_updated;
-#define XFDESKTOP_PARAM_FLAGS (G_PARAM_READWRITE \
- | G_PARAM_STATIC_NAME \
- | G_PARAM_STATIC_NICK \
- | G_PARAM_STATIC_BLURB)
-
g_object_class_install_property(gobject_class, PROP_SCREEN,
g_param_spec_object("screen",
"gdk screen",
"gdk screen",
GDK_TYPE_SCREEN,
- XFDESKTOP_PARAM_FLAGS | G_PARAM_CONSTRUCT_ONLY));
+ G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS));
g_object_class_install_property(gobject_class, PROP_CHANNEL,
g_param_spec_object("channel",
"xfconf channel",
"xfconf channel",
XFCONF_TYPE_CHANNEL,
- XFDESKTOP_PARAM_FLAGS | G_PARAM_CONSTRUCT_ONLY));
+ G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS));
g_object_class_install_property(gobject_class, PROP_PROPERTY_PREFIX,
g_param_spec_string("property-prefix",
"xfconf property prefix",
"xfconf property prefix",
"",
- XFDESKTOP_PARAM_FLAGS | G_PARAM_CONSTRUCT_ONLY));
+ G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS));
#ifdef ENABLE_DESKTOP_ICONS
g_object_class_install_property(gobject_class, PROP_ICON_STYLE,
@@ -768,7 +762,7 @@ xfce_desktop_class_init(XfceDesktopClass *klass)
#else
XFCE_DESKTOP_ICON_STYLE_WINDOWS,
#endif /* ENABLE_FILE_ICONS */
- XFDESKTOP_PARAM_FLAGS));
+ G_PARAM_READWRITE | G_PARAM_CONSTRUCT | G_PARAM_STATIC_STRINGS));
#endif /* ENABLE_DESKTOP_ICONS */
g_object_class_install_property(gobject_class, PROP_SINGLE_WORKSPACE_MODE,
@@ -776,16 +770,14 @@ xfce_desktop_class_init(XfceDesktopClass *klass)
"single-workspace-mode",
"single-workspace-mode",
TRUE,
- XFDESKTOP_PARAM_FLAGS));
+ G_PARAM_READWRITE | G_PARAM_CONSTRUCT | G_PARAM_STATIC_STRINGS));
g_object_class_install_property(gobject_class, PROP_SINGLE_WORKSPACE_NUMBER,
g_param_spec_int("single-workspace-number",
"single-workspace-number",
"single-workspace-number",
0, G_MAXINT16, 0,
- XFDESKTOP_PARAM_FLAGS));
-
-#undef XFDESKTOP_PARAM_FLAGS
+ G_PARAM_READWRITE | G_PARAM_CONSTRUCT | G_PARAM_STATIC_STRINGS));
xfce_desktop_settings_bindings_init();
}
--
GitLab
|