summaryrefslogtreecommitdiff
path: root/gtk/gtkcalendar.h
diff options
context:
space:
mode:
authorMathias Hasselmann <hasselmm@src.gnome.org>2008-01-17 16:42:04 +0000
committerMathias Hasselmann <hasselmm@src.gnome.org>2008-01-17 16:42:04 +0000
commit188894d18e17169cb56710e7b97abcdd996f36eb (patch)
tree164bd99f5a9e6323f328116f95528ed4785129dc /gtk/gtkcalendar.h
parent7265ed4fc8832eeb7ef0c6c775f5d0d213886e3a (diff)
downloadgtk+-188894d18e17169cb56710e7b97abcdd996f36eb.tar.gz
Change GtkCalendarDetailFunc to return newly allocated string. (#339540)
* gtk/gtkcalendar.c: Release the memory returned by the detail_func. * gtk/gtkcalendar.h: Remove G_CONST_RETURN from GtkCalendarDetailFunc. * tests/testcalendar.c: Duplicate calendar details before returning. svn path=/trunk/; revision=19382
Diffstat (limited to 'gtk/gtkcalendar.h')
-rw-r--r--gtk/gtkcalendar.h13
1 files changed, 7 insertions, 6 deletions
diff --git a/gtk/gtkcalendar.h b/gtk/gtkcalendar.h
index 5fa887d39b..1e6ff9d39c 100644
--- a/gtk/gtkcalendar.h
+++ b/gtk/gtkcalendar.h
@@ -89,13 +89,14 @@ typedef enum
*
* Since: 2.16
*
- * Return value: Pango markup with details for the specified day, or %NULL.
+ * Return value: Newly allocated string with Pango markup with details
+ * for the specified day, or %NULL.
*/
-typedef G_CONST_RETURN gchar* (*GtkCalendarDetailFunc) (GtkCalendar *calendar,
- guint year,
- guint month,
- guint day,
- gpointer user_data);
+typedef gchar* (*GtkCalendarDetailFunc) (GtkCalendar *calendar,
+ guint year,
+ guint month,
+ guint day,
+ gpointer user_data);
struct _GtkCalendar
{