summaryrefslogtreecommitdiff
path: root/libs/gtkmm2/gtk/src/calendar.ccg
diff options
context:
space:
mode:
Diffstat (limited to 'libs/gtkmm2/gtk/src/calendar.ccg')
-rw-r--r--libs/gtkmm2/gtk/src/calendar.ccg42
1 files changed, 42 insertions, 0 deletions
diff --git a/libs/gtkmm2/gtk/src/calendar.ccg b/libs/gtkmm2/gtk/src/calendar.ccg
new file mode 100644
index 0000000000..e7ea84cf44
--- /dev/null
+++ b/libs/gtkmm2/gtk/src/calendar.ccg
@@ -0,0 +1,42 @@
+// -*- c++ -*-
+/* $Id: calendar.ccg,v 1.1 2003/01/21 13:38:43 murrayc Exp $ */
+
+/*
+ *
+ * Copyright 1998-2002 The gtkmm Development Team
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Library General Public
+ * License as published by the Free Software Foundation; either
+ * version 2 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Library General Public License for more details.
+ *
+ * You should have received a copy of the GNU Library General Public
+ * License along with this library; if not, write to the Free
+ * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+ */
+
+#include <gtk/gtkcalendar.h>
+
+namespace Gtk
+{
+
+void Calendar::get_date(Glib::Date& date) const
+{
+ guint year = 0;
+ guint month = 0;
+ guint day = 0;
+
+ get_date(year, month, day);
+
+ date.set_year(year);
+ date.set_month(static_cast<Glib::Date::Month>(Glib::Date::JANUARY + month)); // Month from 1 to 12 instead from 0 to 11
+ date.set_day(day);
+}
+
+} //namespace Gtk
+