commit e286c0afa30a3bce933220bfd0ff959669500103
Author: Szilárd Pfeiffer <mailbox@pfeifferszilard.hu>
Date:   Sun Aug 22 09:50:33 2010 +0200

    Implemented function to get marked state of a day.

diff --git a/docs/reference/gtk/gtk3-sections.txt b/docs/reference/gtk/gtk3-sections.txt
index a4aabbf..2fa7e7b 100644
--- a/docs/reference/gtk/gtk3-sections.txt
+++ b/docs/reference/gtk/gtk3-sections.txt
@@ -593,6 +593,7 @@ gtk_calendar_select_month
 gtk_calendar_select_day
 gtk_calendar_mark_day
 gtk_calendar_unmark_day
+gtk_calendar_get_day_is_marked
 gtk_calendar_clear_marks
 
 <SUBSECTION>
diff --git a/gtk/gtk.symbols b/gtk/gtk.symbols
index 3281f2c..46b115c 100644
--- a/gtk/gtk.symbols
+++ b/gtk/gtk.symbols
@@ -556,6 +556,7 @@ gtk_button_set_use_underline
 #if IN_FILE(__GTK_CALENDAR_C__)
 gtk_calendar_clear_marks
 gtk_calendar_get_date
+gtk_calendar_get_day_is_marked
 gtk_calendar_get_detail_height_rows
 gtk_calendar_get_detail_width_chars
 gtk_calendar_get_display_options
diff --git a/gtk/gtkcalendar.c b/gtk/gtkcalendar.c
index b7f3b56..123e281 100644
--- a/gtk/gtkcalendar.c
+++ b/gtk/gtkcalendar.c
@@ -3973,6 +3973,31 @@ gtk_calendar_mark_day (GtkCalendar *calendar,
 }
 
 /**
+ * gtk_calendar_get_day_is_marked:
+ * @calendar: a #GtkCalendar
+ * @day: the day number between 1 and 31.
+ *
+ * Whether the day is marked. 
+ *
+ * Since: 3.0
+ */
+gboolean
+gtk_calendar_get_day_is_marked (GtkCalendar *calendar,
+				guint       day)
+{
+  GtkCalendarPrivate *priv;
+
+  g_return_val_if_fail (GTK_IS_CALENDAR (calendar), FALSE);
+
+  priv = calendar->priv;
+
+  if (day >= 1 && day <= 31)
+    return priv->marked_date[day - 1];
+
+  return FALSE;
+}
+
+/**
  * gtk_calendar_unmark_day:
  * @calendar: a #GtkCalendar.
  * @day: the day number to unmark between 1 and 31.
diff --git a/gtk/gtkcalendar.h b/gtk/gtkcalendar.h
index 51cd8f3..40427dd 100644
--- a/gtk/gtkcalendar.h
+++ b/gtk/gtkcalendar.h
@@ -159,6 +159,7 @@ void       gtk_calendar_set_detail_height_rows (GtkCalendar    *calendar,
 
 gint       gtk_calendar_get_detail_width_chars (GtkCalendar    *calendar);
 gint       gtk_calendar_get_detail_height_rows (GtkCalendar    *calendar);
+gboolean   gtk_calendar_get_day_is_marked (GtkCalendar *calendar, guint day);
 
 G_END_DECLS
 
