wok diff libunique/stuff/remove_G_CONST_RETURN.patch @ rev 21552

updated nsd (4.0.1 -> 4.1.27)
author Hans-G?nter Theisgen
date Wed May 08 15:12:37 2019 +0100 (2019-05-08)
parents
children
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/libunique/stuff/remove_G_CONST_RETURN.patch	Wed May 08 15:12:37 2019 +0100
     1.3 @@ -0,0 +1,117 @@
     1.4 +diff -Nur libunique-1.1.6.orig/unique/uniqueapp.c libunique-1.1.6/unique/uniqueapp.c
     1.5 +--- libunique-1.1.6.orig/unique/uniqueapp.c	2011-12-01 07:38:17.748122298 +0000
     1.6 ++++ libunique-1.1.6/unique/uniqueapp.c	2011-12-01 07:39:59.132319788 +0000
     1.7 +@@ -781,7 +781,7 @@
     1.8 + }
     1.9 +
    1.10 +
    1.11 +-G_CONST_RETURN gchar *
    1.12 ++const gchar *
    1.13 + unique_command_to_string (UniqueApp *app,
    1.14 +                           gint       command)
    1.15 + {
    1.16 +@@ -863,7 +863,7 @@
    1.17 +   return retval;
    1.18 + }
    1.19 +
    1.20 +-G_CONST_RETURN gchar *
    1.21 ++const gchar *
    1.22 + unique_response_to_string (UniqueResponse response)
    1.23 + {
    1.24 +   GEnumClass *enum_class;
    1.25 +diff -Nur libunique-1.1.6.orig/unique/uniquebackend.c libunique-1.1.6/unique/uniquebackend.c
    1.26 +--- libunique-1.1.6.orig/unique/uniquebackend.c	2011-12-01 07:38:17.748122298 +0000
    1.27 ++++ libunique-1.1.6/unique/uniquebackend.c	2011-12-01 07:39:24.418677950 +0000
    1.28 +@@ -111,7 +111,7 @@
    1.29 +  *
    1.30 +  * Return value: FIXME
    1.31 +  */
    1.32 +-G_CONST_RETURN gchar *
    1.33 ++const gchar *
    1.34 + unique_backend_get_name (UniqueBackend *backend)
    1.35 + {
    1.36 +   g_return_val_if_fail (UNIQUE_IS_BACKEND (backend), NULL);
    1.37 +@@ -154,7 +154,7 @@
    1.38 +  *
    1.39 +  * Return value: FIXME
    1.40 +  */
    1.41 +-G_CONST_RETURN gchar *
    1.42 ++const gchar *
    1.43 + unique_backend_get_startup_id (UniqueBackend *backend)
    1.44 + {
    1.45 +   g_return_val_if_fail (UNIQUE_IS_BACKEND (backend), NULL);
    1.46 +diff -Nur libunique-1.1.6.orig/unique/uniquebackend.h libunique-1.1.6/unique/uniquebackend.h
    1.47 +--- libunique-1.1.6.orig/unique/uniquebackend.h	2011-12-01 07:38:17.748122298 +0000
    1.48 ++++ libunique-1.1.6/unique/uniquebackend.h	2011-12-01 07:42:13.833467492 +0000
    1.49 +@@ -94,10 +94,10 @@
    1.50 +
    1.51 + UniqueBackend *       unique_backend_create         (void);
    1.52 +
    1.53 +-G_CONST_RETURN gchar *unique_backend_get_name       (UniqueBackend     *backend);
    1.54 ++const gchar *unique_backend_get_name       (UniqueBackend     *backend);
    1.55 + void                  unique_backend_set_name       (UniqueBackend     *backend,
    1.56 +                                                      const gchar       *name);
    1.57 +-G_CONST_RETURN gchar *unique_backend_get_startup_id (UniqueBackend     *backend);
    1.58 ++const gchar *unique_backend_get_startup_id (UniqueBackend     *backend);
    1.59 + void                  unique_backend_set_startup_id (UniqueBackend     *backend,
    1.60 +                                                      const gchar       *startup_id);
    1.61 + GdkScreen *           unique_backend_get_screen     (UniqueBackend     *backend);
    1.62 +diff -Nur libunique-1.1.6.orig/unique/uniqueinternals.h libunique-1.1.6/unique/uniqueinternals.h
    1.63 +--- libunique-1.1.6.orig/unique/uniqueinternals.h	2011-12-01 07:38:17.748122298 +0000
    1.64 ++++ libunique-1.1.6/unique/uniqueinternals.h	2011-12-01 07:41:17.142977914 +0000
    1.65 +@@ -44,11 +44,11 @@
    1.66 +  * and then back into an id
    1.67 +  */
    1.68 + UniqueResponse        unique_response_from_string  (const gchar    *response);
    1.69 +-G_CONST_RETURN gchar *unique_response_to_string    (UniqueResponse  response);
    1.70 ++const gchar *unique_response_to_string    (UniqueResponse  response);
    1.71 +
    1.72 + gint                  unique_command_from_string   (UniqueApp      *app,
    1.73 +                                                     const gchar    *command);
    1.74 +-G_CONST_RETURN gchar *unique_command_to_string     (UniqueApp      *app,
    1.75 ++const gchar *unique_command_to_string     (UniqueApp      *app,
    1.76 +                                                     gint            command);
    1.77 +
    1.78 + G_END_DECLS
    1.79 +diff -Nur libunique-1.1.6.orig/unique/uniquemessage.c libunique-1.1.6/unique/uniquemessage.c
    1.80 +--- libunique-1.1.6.orig/unique/uniquemessage.c	2011-12-01 07:38:17.748122298 +0000
    1.81 ++++ libunique-1.1.6/unique/uniquemessage.c	2011-12-01 07:41:45.743225713 +0000
    1.82 +@@ -185,7 +185,7 @@
    1.83 +  *
    1.84 +  * Since: 1.0.2
    1.85 +  */
    1.86 +-G_CONST_RETURN guchar *
    1.87 ++const guchar *
    1.88 + unique_message_data_get (UniqueMessageData *message_data,
    1.89 +                          gsize             *length)
    1.90 + {
    1.91 +@@ -525,7 +525,7 @@
    1.92 +  *   owned by the #UniqueMessageData structure and should not be
    1.93 +  *   modified or freed
    1.94 +  */
    1.95 +-G_CONST_RETURN gchar *
    1.96 ++const gchar *
    1.97 + unique_message_data_get_startup_id (UniqueMessageData *message_data)
    1.98 + {
    1.99 +   g_return_val_if_fail (message_data != NULL, NULL);
   1.100 +diff -Nur libunique-1.1.6.orig/unique/uniquemessage.h libunique-1.1.6/unique/uniquemessage.h
   1.101 +--- libunique-1.1.6.orig/unique/uniquemessage.h	2011-12-01 07:38:17.748122298 +0000
   1.102 ++++ libunique-1.1.6/unique/uniquemessage.h	2011-12-01 07:40:47.576064565 +0000
   1.103 +@@ -48,7 +48,7 @@
   1.104 + void                   unique_message_data_set            (UniqueMessageData *message_data,
   1.105 +                                                            const guchar      *data,
   1.106 +                                                            gsize              length);
   1.107 +-G_CONST_RETURN guchar *unique_message_data_get            (UniqueMessageData *message_data,
   1.108 ++const guchar *unique_message_data_get            (UniqueMessageData *message_data,
   1.109 +                                                            gsize             *length);
   1.110 +
   1.111 + gboolean               unique_message_data_set_text       (UniqueMessageData *message_data,
   1.112 +@@ -63,7 +63,7 @@
   1.113 + gchar *                unique_message_data_get_filename   (UniqueMessageData *message_data);
   1.114 +
   1.115 + GdkScreen *            unique_message_data_get_screen     (UniqueMessageData *message_data);
   1.116 +-G_CONST_RETURN gchar * unique_message_data_get_startup_id (UniqueMessageData *message_data);
   1.117 ++const gchar * unique_message_data_get_startup_id (UniqueMessageData *message_data);
   1.118 + guint                  unique_message_data_get_workspace  (UniqueMessageData *message_data);
   1.119 +
   1.120 + G_END_DECLS