summaryrefslogtreecommitdiffstats
path: root/mx/mx_glib_deprecated.patch
blob: 7cdbc7645386e6e9a4b10635ca0b22a814999d85 (plain)
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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
diff -u -r mx-1.2.0/mx/mx-application.c clutter-project-mx-0dbbb1a/mx/mx-application.c
--- mx-1.2.0/mx/mx-application.c	2011-05-18 12:36:17.000000000 +0200
+++ clutter-project-mx-0dbbb1a/mx/mx-application.c	2011-07-04 11:36:13.000000000 +0200
@@ -829,7 +829,7 @@
  *   of #MxWindow<!-- -->s. The returned list is owned by
  *   @application and must not be altered.
  */
-G_CONST_RETURN GList*
+const GList*
 mx_application_get_windows (MxApplication *application)
 {
   g_return_val_if_fail (MX_IS_APPLICATION (application), NULL);
diff -u -r mx-1.2.0/mx/mx-application.h clutter-project-mx-0dbbb1a/mx/mx-application.h
--- mx-1.2.0/mx/mx-application.h	2011-05-18 12:36:17.000000000 +0200
+++ clutter-project-mx-0dbbb1a/mx/mx-application.h	2011-07-04 11:36:13.000000000 +0200
@@ -115,7 +115,7 @@
 void                  mx_application_remove_window (MxApplication *application,
                                                     MxWindow      *window);
 
-G_CONST_RETURN GList* mx_application_get_windows   (MxApplication *application);
+const GList         * mx_application_get_windows   (MxApplication *application);
 
 void                  mx_application_add_action    (MxApplication *application,
                                                     MxAction      *action);
diff -u -r mx-1.2.0/mx/mx-button.c clutter-project-mx-0dbbb1a/mx/mx-button.c
--- mx-1.2.0/mx/mx-button.c	2011-05-18 12:36:17.000000000 +0200
+++ clutter-project-mx-0dbbb1a/mx/mx-button.c	2011-07-04 11:36:13.000000000 +0200
@@ -1015,7 +1015,7 @@
  *
  * Returns: the text for the button. This must not be freed by the application
  */
-G_CONST_RETURN gchar *
+const gchar *
 mx_button_get_label (MxButton *button)
 {
   g_return_val_if_fail (MX_IS_BUTTON (button), NULL);
@@ -1346,7 +1346,7 @@
  *
  * Since: 1.2
  */
-G_CONST_RETURN gchar *
+const gchar *
 mx_button_get_icon_name (MxButton *button)
 {
   g_return_val_if_fail (MX_IS_BUTTON (button), NULL);
diff -u -r mx-1.2.0/mx/mx-button-group.c clutter-project-mx-0dbbb1a/mx/mx-button-group.c
--- mx-1.2.0/mx/mx-button-group.c	2011-05-18 12:36:17.000000000 +0200
+++ clutter-project-mx-0dbbb1a/mx/mx-button-group.c	2011-07-04 11:36:13.000000000 +0200
@@ -453,7 +453,7 @@
  * Returns: a list of buttons. The list is owned by the #MxButtonGroup and
  * should not be modified by the application.
  */
-G_CONST_RETURN GSList *
+const GSList *
 mx_button_group_get_buttons (MxButtonGroup *group)
 {
   g_return_val_if_fail (MX_IS_BUTTON_GROUP (group), NULL);
diff -u -r mx-1.2.0/mx/mx-button-group.h clutter-project-mx-0dbbb1a/mx/mx-button-group.h
--- mx-1.2.0/mx/mx-button-group.h	2011-05-18 12:36:17.000000000 +0200
+++ clutter-project-mx-0dbbb1a/mx/mx-button-group.h	2011-07-04 11:36:13.000000000 +0200
@@ -105,7 +105,7 @@
                                                gboolean       allow_no_active);
 gboolean  mx_button_group_get_allow_no_active (MxButtonGroup *group);
 
-G_CONST_RETURN GSList *mx_button_group_get_buttons (MxButtonGroup *group);
+const GSList *mx_button_group_get_buttons (MxButtonGroup *group);
 
 G_END_DECLS
 
diff -u -r mx-1.2.0/mx/mx-button.h clutter-project-mx-0dbbb1a/mx/mx-button.h
--- mx-1.2.0/mx/mx-button.h	2011-05-18 12:36:17.000000000 +0200
+++ clutter-project-mx-0dbbb1a/mx/mx-button.h	2011-07-04 11:36:13.000000000 +0200
@@ -82,10 +82,10 @@
 
 ClutterActor         *mx_button_new             (void);
 ClutterActor         *mx_button_new_with_label  (const gchar *text);
-G_CONST_RETURN gchar *mx_button_get_label       (MxButton    *button);
+const gchar          *mx_button_get_label       (MxButton    *button);
 void                  mx_button_set_label       (MxButton    *button,
                                                  const gchar *text);
-G_CONST_RETURN gchar *mx_button_get_icon_name   (MxButton    *button);
+const gchar          *mx_button_get_icon_name   (MxButton    *button);
 void                  mx_button_set_icon_name   (MxButton    *button,
                                                  const gchar *icon_name);
 guint                 mx_button_get_icon_size   (MxButton    *button);
diff -u -r mx-1.2.0/mx/mx-entry.c clutter-project-mx-0dbbb1a/mx/mx-entry.c
--- mx-1.2.0/mx/mx-entry.c	2011-05-18 12:36:17.000000000 +0200
+++ clutter-project-mx-0dbbb1a/mx/mx-entry.c	2011-07-04 11:36:13.000000000 +0200
@@ -1068,7 +1068,7 @@
  *
  * Returns: the text for the entry. This must not be freed by the application
  */
-G_CONST_RETURN gchar *
+const gchar *
 mx_entry_get_text (MxEntry *entry)
 {
   g_return_val_if_fail (MX_IS_ENTRY (entry), NULL);
@@ -1188,7 +1188,7 @@
  * Returns: the current value of the hint property. This string is owned by the
  * #MxEntry and should not be freed or modified.
  */
-G_CONST_RETURN
+const
 gchar *
 mx_entry_get_hint_text (MxEntry *entry)
 {
diff -u -r mx-1.2.0/mx/mx-entry.h clutter-project-mx-0dbbb1a/mx/mx-entry.h
--- mx-1.2.0/mx/mx-entry.h	2011-05-18 12:36:17.000000000 +0200
+++ clutter-project-mx-0dbbb1a/mx/mx-entry.h	2011-07-04 11:36:13.000000000 +0200
@@ -79,14 +79,14 @@
 
 ClutterActor         *mx_entry_new              (void);
 ClutterActor         *mx_entry_new_with_text    (const gchar *text);
-G_CONST_RETURN gchar *mx_entry_get_text         (MxEntry     *entry);
+const gchar          *mx_entry_get_text         (MxEntry     *entry);
 void                  mx_entry_set_text         (MxEntry     *entry,
                                                  const gchar *text);
 ClutterActor*         mx_entry_get_clutter_text (MxEntry     *entry);
 
 void                  mx_entry_set_hint_text    (MxEntry     *entry,
                                                  const gchar *text);
-G_CONST_RETURN gchar *mx_entry_get_hint_text    (MxEntry     *entry);
+const gchar          *mx_entry_get_hint_text    (MxEntry     *entry);
 
 void                  mx_entry_set_password_char (MxEntry  *entry,
                                                   gunichar  password_char);
diff -u -r mx-1.2.0/mx/mx-label.c clutter-project-mx-0dbbb1a/mx/mx-label.c
--- mx-1.2.0/mx/mx-label.c	2011-05-18 12:36:17.000000000 +0200
+++ clutter-project-mx-0dbbb1a/mx/mx-label.c	2011-07-04 11:36:13.000000000 +0200
@@ -635,7 +635,7 @@
  *
  * Returns: the text for the label. This must not be freed by the application
  */
-G_CONST_RETURN gchar *
+const gchar *
 mx_label_get_text (MxLabel *label)
 {
   g_return_val_if_fail (MX_IS_LABEL (label), NULL);
diff -u -r mx-1.2.0/mx/mx-label.h clutter-project-mx-0dbbb1a/mx/mx-label.h
--- mx-1.2.0/mx/mx-label.h	2011-05-18 12:36:17.000000000 +0200
+++ clutter-project-mx-0dbbb1a/mx/mx-label.h	2011-07-04 11:36:13.000000000 +0200
@@ -74,7 +74,7 @@
 
 ClutterActor         *mx_label_new              (void);
 ClutterActor         *mx_label_new_with_text    (const gchar *text);
-G_CONST_RETURN gchar *mx_label_get_text         (MxLabel     *label);
+const gchar          *mx_label_get_text         (MxLabel     *label);
 void                  mx_label_set_text         (MxLabel     *label,
                                                  const gchar *text);
 gboolean              mx_label_get_use_markup   (MxLabel *label);
diff -u -r mx-1.2.0/mx/mx-stylable.c clutter-project-mx-0dbbb1a/mx/mx-stylable.c
--- mx-1.2.0/mx/mx-stylable.c	2011-05-18 12:36:17.000000000 +0200
+++ clutter-project-mx-0dbbb1a/mx/mx-stylable.c	2011-07-04 11:36:13.000000000 +0200
@@ -784,7 +784,7 @@
  * Returns: the pseudo class string. The string is owned by the #MxWidget and
  * should not be modified or freed.
  */
-G_CONST_RETURN gchar*
+const gchar*
 mx_stylable_get_style_pseudo_class (MxStylable *stylable)
 {
   MxStylableIface *iface;
@@ -963,7 +963,7 @@
  * Returns: the class name string. The string is owned by the #MxWidget and
  * should not be modified or freed.
  */
-G_CONST_RETURN gchar*
+const gchar*
 mx_stylable_get_style_class (MxStylable *stylable)
 {
   MxStylableIface *iface;
diff -u -r mx-1.2.0/mx/mx-stylable.h clutter-project-mx-0dbbb1a/mx/mx-stylable.h
--- mx-1.2.0/mx/mx-stylable.h	2011-05-18 12:36:17.000000000 +0200
+++ clutter-project-mx-0dbbb1a/mx/mx-stylable.h	2011-07-04 11:36:13.000000000 +0200
@@ -70,13 +70,13 @@
   void       (* set_style) (MxStylable *stylable,
                             MxStyle    *style);
 
-  G_CONST_RETURN gchar* (* get_style_class) (MxStylable  *stylable);
-  void                  (* set_style_class) (MxStylable  *stylable,
-                                             const gchar *style_class);
-
-  G_CONST_RETURN gchar* (* get_style_pseudo_class) (MxStylable  *stylable);
-  void                  (* set_style_pseudo_class) (MxStylable  *stylable,
-                                                    const gchar *pseudo_class);
+  const gchar* (* get_style_class) (MxStylable  *stylable);
+  void         (* set_style_class) (MxStylable  *stylable,
+                                    const gchar *style_class);
+
+  const gchar* (* get_style_pseudo_class) (MxStylable  *stylable);
+  void         (* set_style_pseudo_class) (MxStylable  *stylable,
+                                           const gchar *pseudo_class);
 
   /* context virtual functions */
 
@@ -119,13 +119,13 @@
                                                  GValue            *value_out);
 
 
-G_CONST_RETURN gchar* mx_stylable_get_style_class (MxStylable  *stylable);
-void                  mx_stylable_set_style_class (MxStylable  *stylable,
-                                                   const gchar *style_class);
-
-G_CONST_RETURN gchar* mx_stylable_get_style_pseudo_class (MxStylable  *stylable);
-void                  mx_stylable_set_style_pseudo_class (MxStylable  *stylable,
-                                                          const gchar *pseudo_class);
+const gchar* mx_stylable_get_style_class (MxStylable  *stylable);
+void         mx_stylable_set_style_class (MxStylable  *stylable,
+                                          const gchar *style_class);
+
+const gchar* mx_stylable_get_style_pseudo_class (MxStylable  *stylable);
+void         mx_stylable_set_style_pseudo_class (MxStylable  *stylable,
+                                                 const gchar *pseudo_class);
 
 void mx_stylable_style_changed (MxStylable *stylable, MxStyleChangedFlags flags);
 void mx_stylable_connect_change_notifiers (MxStylable *stylable);
diff -u -r mx-1.2.0/mx/mx-tooltip.c clutter-project-mx-0dbbb1a/mx/mx-tooltip.c
--- mx-1.2.0/mx/mx-tooltip.c	2011-05-18 12:36:17.000000000 +0200
+++ clutter-project-mx-0dbbb1a/mx/mx-tooltip.c	2011-07-04 11:36:13.000000000 +0200
@@ -722,7 +722,7 @@
  * Returns: the text for the tooltip. This must not be freed by the application
  */
 
-G_CONST_RETURN gchar *
+const gchar *
 mx_tooltip_get_text (MxTooltip *tooltip)
 {
   g_return_val_if_fail (MX_IS_TOOLTIP (tooltip), NULL);
@@ -841,10 +841,12 @@
 mx_tooltip_hide (MxTooltip *tooltip)
 {
   ClutterAnimation *animation;
-  MxTooltipPrivate *priv = tooltip->priv;
+  MxTooltipPrivate *priv;
 
   g_return_if_fail (MX_IS_TOOLTIP (tooltip));
 
+  priv = tooltip->priv;
+
   /* make sure we're not currently already animating (e.g. hiding) */
   animation = clutter_actor_get_animation (CLUTTER_ACTOR (tooltip));
   if (animation)
@@ -909,7 +911,7 @@
  * Returns: the #ClutterGeometry, owned by the tooltip which must not be freed
  * by the application.
  */
-G_CONST_RETURN ClutterGeometry*
+const ClutterGeometry*
 mx_tooltip_get_tip_area (MxTooltip *tooltip)
 {
   g_return_val_if_fail (MX_IS_TOOLTIP (tooltip), NULL);
diff -u -r mx-1.2.0/mx/mx-tooltip.h clutter-project-mx-0dbbb1a/mx/mx-tooltip.h
--- mx-1.2.0/mx/mx-tooltip.h	2011-05-18 12:36:17.000000000 +0200
+++ clutter-project-mx-0dbbb1a/mx/mx-tooltip.h	2011-07-04 11:36:13.000000000 +0200
@@ -74,16 +74,16 @@
 GType mx_tooltip_get_type (void) G_GNUC_CONST;
 
 
-G_CONST_RETURN gchar *mx_tooltip_get_text (MxTooltip   *tooltip);
+const gchar          *mx_tooltip_get_text (MxTooltip   *tooltip);
 void                  mx_tooltip_set_text (MxTooltip   *tooltip,
                                            const gchar *text);
 
 void                  mx_tooltip_show      (MxTooltip   *tooltip);
 void                  mx_tooltip_hide      (MxTooltip   *tooltip);
 
-void                            mx_tooltip_set_tip_area (MxTooltip             *tooltip,
-                                                         const ClutterGeometry *area);
-G_CONST_RETURN ClutterGeometry* mx_tooltip_get_tip_area (MxTooltip             *tooltip);
+void                   mx_tooltip_set_tip_area (MxTooltip             *tooltip,
+                                                const ClutterGeometry *area);
+const ClutterGeometry* mx_tooltip_get_tip_area (MxTooltip             *tooltip);
 
 gboolean              mx_tooltip_is_in_browse_mode (void);