X-Git-Url: https://vcs.maemo.org/git/?a=blobdiff_plain;f=src%2Fhildon-weekday-picker.c;h=3f1c56ab9bc32387a72f643082980cde070fff72;hb=85419906ab4398031c5cb41a8bf7a821baf0125c;hp=67c0f003ce98d07e04a955b0d72d9389a54f2ccc;hpb=275c28ae5f3577a3c7dbabc63d9b166b6c844606;p=hildon
diff --git a/src/hildon-weekday-picker.c b/src/hildon-weekday-picker.c
index 67c0f00..3f1c56a 100644
--- a/src/hildon-weekday-picker.c
+++ b/src/hildon-weekday-picker.c
@@ -8,7 +8,7 @@
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public License
* as published by the Free Software Foundation; version 2.1 of
- * the License.
+ * 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
@@ -25,7 +25,7 @@
/**
* SECTION:hildon-weekday-picker
* @short_description: A widget for picking days on which a certain event
- * should take place
+ * should take place.
* @see_also: #HildonWeekdayPicker
*
* #HildonWeekdayPicker supports non-mutually exclusive selection of days of
@@ -35,6 +35,22 @@
* a certain event should take place, for example, which days a Calendar event
* should be repeated on. It is used in Calendar in the Repeat dialog, in Tasks
* in the Repeat dialog and in the Email set-up wizard.
+ *
+ *
+ * HildonWeekdayPicker example
+ *
+ * gint i;
+ * HildonWeekdayPicker *picker = hildon_weekday_picker_new ();
+ *
+ * hildon_weekday_picker_set_day (picker, i);
+ * hildon_weekday_picker_unset_day (picker, i);
+ * hildon_weekday_picker_toggle_day (picker, i);
+ * hildon_weekday_picker_set_all (picker);
+ *
+ * hildon_weekday_picker_unset_all( picker );
+ *
+ *
+ *
*/
/* GDate numbers days from 1 to 7 and G_DATE_MONDAY is 1st day. However
@@ -59,7 +75,7 @@
#include
#include
#include
-#include "hildon-composite-widget.h"
+#include "hildon-private.h"
#include "hildon-weekday-picker-private.h"
static GtkContainerClass* parent_class;
@@ -97,6 +113,13 @@ enum
static guint signals [LAST_SIGNAL] = { 0 } ;
+/**
+ * hildon_weekday_picker_get_type:
+ *
+ * Initializes and returns the type of a hildon weekday picker.
+ *
+ * @Returns: GType of #HildonWeekdayPicker
+ */
GType G_GNUC_CONST
hildon_weekday_picker_get_type (void)
{
@@ -137,7 +160,7 @@ hildon_weekday_picker_class_init (HildonWeekdayPickerClass *picke
/* Override virtual methods */
widget_class->size_request = hildon_weekday_picker_size_request;
widget_class->size_allocate = hildon_weekday_picker_size_allocate;
- widget_class->focus = hildon_composite_widget_focus;
+ widget_class->focus = hildon_private_composite_focus;
container_class->forall = hildon_weekday_picker_forall;
GTK_OBJECT_CLASS (picker_class)->destroy = hildon_weekday_picker_destroy;