gcc-6: use $(GNU_ARCH) in manifest
[unleashed-userland.git] / components / libunique / patches / 02-const.patch
blob89c8e06c4ba7a3c2bc1b30d67a6e7d3888393c49
1 --- libunique-1.1.6/unique/uniqueapp.c 2009-11-01 18:33:13.000000000 +0000
2 +++ libunique-1.1.6/unique/uniqueapp.c 2014-03-01 20:11:15.885297861 +0000
3 @@ -781,7 +781,7 @@
7 -G_CONST_RETURN gchar *
8 +const gchar *
9 unique_command_to_string (UniqueApp *app,
10 gint command)
12 @@ -863,7 +863,7 @@
13 return retval;
16 -G_CONST_RETURN gchar *
17 +const gchar *
18 unique_response_to_string (UniqueResponse response)
20 GEnumClass *enum_class;
21 --- libunique-1.1.6/unique/uniquebackend.c 2009-11-09 11:02:06.000000000 +0000
22 +++ libunique-1.1.6/unique/uniquebackend.c 2014-03-01 20:12:29.982779176 +0000
23 @@ -111,7 +111,7 @@
25 * Return value: FIXME
27 -G_CONST_RETURN gchar *
28 +const gchar *
29 unique_backend_get_name (UniqueBackend *backend)
31 g_return_val_if_fail (UNIQUE_IS_BACKEND (backend), NULL);
32 @@ -154,7 +154,7 @@
34 * Return value: FIXME
36 -G_CONST_RETURN gchar *
37 +const gchar *
38 unique_backend_get_startup_id (UniqueBackend *backend)
40 g_return_val_if_fail (UNIQUE_IS_BACKEND (backend), NULL);
41 --- libunique-1.1.6/unique/uniquebackend.h 2009-09-21 13:31:14.000000000 +0100
42 +++ libunique-1.1.6/unique/uniquebackend.h 2014-03-01 20:12:08.951888152 +0000
43 @@ -94,10 +94,10 @@
45 UniqueBackend * unique_backend_create (void);
47 -G_CONST_RETURN gchar *unique_backend_get_name (UniqueBackend *backend);
48 +const gchar *unique_backend_get_name (UniqueBackend *backend);
49 void unique_backend_set_name (UniqueBackend *backend,
50 const gchar *name);
51 -G_CONST_RETURN gchar *unique_backend_get_startup_id (UniqueBackend *backend);
52 +const gchar *unique_backend_get_startup_id (UniqueBackend *backend);
53 void unique_backend_set_startup_id (UniqueBackend *backend,
54 const gchar *startup_id);
55 GdkScreen * unique_backend_get_screen (UniqueBackend *backend);
56 --- libunique-1.1.6/unique/uniqueinternals.h 2009-09-21 13:31:14.000000000 +0100
57 +++ libunique-1.1.6/unique/uniqueinternals.h 2014-03-01 20:11:36.336711830 +0000
58 @@ -44,11 +44,11 @@
59 * and then back into an id
61 UniqueResponse unique_response_from_string (const gchar *response);
62 -G_CONST_RETURN gchar *unique_response_to_string (UniqueResponse response);
63 +const gchar *unique_response_to_string (UniqueResponse response);
65 gint unique_command_from_string (UniqueApp *app,
66 const gchar *command);
67 -G_CONST_RETURN gchar *unique_command_to_string (UniqueApp *app,
68 +const gchar *unique_command_to_string (UniqueApp *app,
69 gint command);
71 G_END_DECLS
72 --- libunique-1.1.6/unique/uniquemessage.c 2009-11-09 11:02:06.000000000 +0000
73 +++ libunique-1.1.6/unique/uniquemessage.c 2014-03-01 20:12:51.055567900 +0000
74 @@ -185,7 +185,7 @@
76 * Since: 1.0.2
78 -G_CONST_RETURN guchar *
79 +const guchar *
80 unique_message_data_get (UniqueMessageData *message_data,
81 gsize *length)
83 @@ -525,7 +525,7 @@
84 * owned by the #UniqueMessageData structure and should not be
85 * modified or freed
87 -G_CONST_RETURN gchar *
88 +const gchar *
89 unique_message_data_get_startup_id (UniqueMessageData *message_data)
91 g_return_val_if_fail (message_data != NULL, NULL);
92 --- libunique-1.1.6/unique/uniquemessage.h 2009-09-21 13:31:14.000000000 +0100
93 +++ libunique-1.1.6/unique/uniquemessage.h 2014-03-01 20:11:53.252348862 +0000
94 @@ -48,7 +48,7 @@
95 void unique_message_data_set (UniqueMessageData *message_data,
96 const guchar *data,
97 gsize length);
98 -G_CONST_RETURN guchar *unique_message_data_get (UniqueMessageData *message_data,
99 +const guchar *unique_message_data_get (UniqueMessageData *message_data,
100 gsize *length);
102 gboolean unique_message_data_set_text (UniqueMessageData *message_data,
103 @@ -63,7 +63,7 @@
104 gchar * unique_message_data_get_filename (UniqueMessageData *message_data);
106 GdkScreen * unique_message_data_get_screen (UniqueMessageData *message_data);
107 -G_CONST_RETURN gchar * unique_message_data_get_startup_id (UniqueMessageData *message_data);
108 +const gchar * unique_message_data_get_startup_id (UniqueMessageData *message_data);
109 guint unique_message_data_get_workspace (UniqueMessageData *message_data);
111 G_END_DECLS