]> Pileus Git - ~andy/gtk/blobdiff - tests/testcalendar.c
use the right type for "subparser_data" and remove the (gpointer*) cast.
[~andy/gtk] / tests / testcalendar.c
index 4e1bb8494770d3c739e87e6a8241b46e1d30ef1f..62423b1c9722a1ab68077fab26dd6b802d51bbdc 100644 (file)
@@ -105,7 +105,7 @@ static void
 calendar_update_details (CalendarData *data)
 {
   guint year, month, day;
-  const gchar *detail;
+  gchar *detail;
 
   gtk_calendar_get_date (GTK_CALENDAR (data->calendar_widget), &year, &month, &day);
   detail = calendar_get_detail (data, year, month, day);
@@ -113,6 +113,8 @@ calendar_update_details (CalendarData *data)
   g_signal_handler_block (data->details_buffer, data->details_changed);
   gtk_text_buffer_set_text (data->details_buffer, detail ? detail : "", -1);
   g_signal_handler_unblock (data->details_buffer, data->details_changed);
+
+  g_free (detail);
 }
 
 static void
@@ -257,7 +259,7 @@ void calendar_select_font (GtkWidget    *button,
        }
 }
 
-static G_CONST_RETURN gchar*
+static gchar*
 calendar_detail_cb (GtkCalendar *calendar,
                     guint        year,
                     guint        month,