noconst.patch 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  1. G_CONST_RETURN is deprecated in glib 2.30 so remove to to avoid
  2. build failures.
  3. RP 2011/10/12
  4. Upstream-Status: Pending
  5. Index: libunique-1.1.6/unique/uniqueapp.c
  6. ===================================================================
  7. --- libunique-1.1.6.orig/unique/uniqueapp.c 2011-10-12 01:21:25.842046488 +0100
  8. +++ libunique-1.1.6/unique/uniqueapp.c 2011-10-12 01:21:55.062046796 +0100
  9. @@ -781,7 +781,7 @@
  10. }
  11. -G_CONST_RETURN gchar *
  12. +const gchar *
  13. unique_command_to_string (UniqueApp *app,
  14. gint command)
  15. {
  16. @@ -863,7 +863,7 @@
  17. return retval;
  18. }
  19. -G_CONST_RETURN gchar *
  20. +const gchar *
  21. unique_response_to_string (UniqueResponse response)
  22. {
  23. GEnumClass *enum_class;
  24. Index: libunique-1.1.6/unique/uniquebackend.c
  25. ===================================================================
  26. --- libunique-1.1.6.orig/unique/uniquebackend.c 2011-10-12 01:21:25.742046323 +0100
  27. +++ libunique-1.1.6/unique/uniquebackend.c 2011-10-12 01:21:55.062046796 +0100
  28. @@ -111,7 +111,7 @@
  29. *
  30. * Return value: FIXME
  31. */
  32. -G_CONST_RETURN gchar *
  33. +const gchar *
  34. unique_backend_get_name (UniqueBackend *backend)
  35. {
  36. g_return_val_if_fail (UNIQUE_IS_BACKEND (backend), NULL);
  37. @@ -154,7 +154,7 @@
  38. *
  39. * Return value: FIXME
  40. */
  41. -G_CONST_RETURN gchar *
  42. +const gchar *
  43. unique_backend_get_startup_id (UniqueBackend *backend)
  44. {
  45. g_return_val_if_fail (UNIQUE_IS_BACKEND (backend), NULL);
  46. Index: libunique-1.1.6/unique/uniquebackend.h
  47. ===================================================================
  48. --- libunique-1.1.6.orig/unique/uniquebackend.h 2011-10-12 01:21:25.992046521 +0100
  49. +++ libunique-1.1.6/unique/uniquebackend.h 2011-10-12 01:21:56.512047875 +0100
  50. @@ -94,10 +94,10 @@
  51. UniqueBackend * unique_backend_create (void);
  52. -G_CONST_RETURN gchar *unique_backend_get_name (UniqueBackend *backend);
  53. +const gchar *unique_backend_get_name (UniqueBackend *backend);
  54. void unique_backend_set_name (UniqueBackend *backend,
  55. const gchar *name);
  56. -G_CONST_RETURN gchar *unique_backend_get_startup_id (UniqueBackend *backend);
  57. +const gchar *unique_backend_get_startup_id (UniqueBackend *backend);
  58. void unique_backend_set_startup_id (UniqueBackend *backend,
  59. const gchar *startup_id);
  60. GdkScreen * unique_backend_get_screen (UniqueBackend *backend);
  61. Index: libunique-1.1.6/unique/uniqueinternals.h
  62. ===================================================================
  63. --- libunique-1.1.6.orig/unique/uniqueinternals.h 2011-10-12 01:21:25.892046532 +0100
  64. +++ libunique-1.1.6/unique/uniqueinternals.h 2011-10-12 01:21:56.512047875 +0100
  65. @@ -44,11 +44,11 @@
  66. * and then back into an id
  67. */
  68. UniqueResponse unique_response_from_string (const gchar *response);
  69. -G_CONST_RETURN gchar *unique_response_to_string (UniqueResponse response);
  70. +const gchar *unique_response_to_string (UniqueResponse response);
  71. gint unique_command_from_string (UniqueApp *app,
  72. const gchar *command);
  73. -G_CONST_RETURN gchar *unique_command_to_string (UniqueApp *app,
  74. +const gchar *unique_command_to_string (UniqueApp *app,
  75. gint command);
  76. G_END_DECLS
  77. Index: libunique-1.1.6/unique/uniquemessage.c
  78. ===================================================================
  79. --- libunique-1.1.6.orig/unique/uniquemessage.c 2011-10-12 01:21:25.942046524 +0100
  80. +++ libunique-1.1.6/unique/uniquemessage.c 2011-10-12 01:21:55.072046595 +0100
  81. @@ -185,7 +185,7 @@
  82. *
  83. * Since: 1.0.2
  84. */
  85. -G_CONST_RETURN guchar *
  86. +const guchar *
  87. unique_message_data_get (UniqueMessageData *message_data,
  88. gsize *length)
  89. {
  90. @@ -525,7 +525,7 @@
  91. * owned by the #UniqueMessageData structure and should not be
  92. * modified or freed
  93. */
  94. -G_CONST_RETURN gchar *
  95. +const gchar *
  96. unique_message_data_get_startup_id (UniqueMessageData *message_data)
  97. {
  98. g_return_val_if_fail (message_data != NULL, NULL);
  99. Index: libunique-1.1.6/unique/uniquemessage.h
  100. ===================================================================
  101. --- libunique-1.1.6.orig/unique/uniquemessage.h 2011-10-12 01:21:25.792046596 +0100
  102. +++ libunique-1.1.6/unique/uniquemessage.h 2011-10-12 01:21:56.512047875 +0100
  103. @@ -48,7 +48,7 @@
  104. void unique_message_data_set (UniqueMessageData *message_data,
  105. const guchar *data,
  106. gsize length);
  107. -G_CONST_RETURN guchar *unique_message_data_get (UniqueMessageData *message_data,
  108. +const guchar *unique_message_data_get (UniqueMessageData *message_data,
  109. gsize *length);
  110. gboolean unique_message_data_set_text (UniqueMessageData *message_data,
  111. @@ -63,7 +63,7 @@
  112. gchar * unique_message_data_get_filename (UniqueMessageData *message_data);
  113. GdkScreen * unique_message_data_get_screen (UniqueMessageData *message_data);
  114. -G_CONST_RETURN gchar * unique_message_data_get_startup_id (UniqueMessageData *message_data);
  115. +const gchar * unique_message_data_get_startup_id (UniqueMessageData *message_data);
  116. guint unique_message_data_get_workspace (UniqueMessageData *message_data);
  117. G_END_DECLS