/*
- * This file is part of hildon-libs
+ * This file is a part of hildon
*
* Copyright (C) 2005, 2006 Nokia Corporation, all rights reserved.
*
* 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
/**
* 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
* 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.
+ *
+ * <example>
+ * <title>HildonWeekdayPicker example</title>
+ * <programlisting>
+ * 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 );
+ * </programlisting>
+ * </example>
+ *
*/
/* GDate numbers days from 1 to 7 and G_DATE_MONDAY is 1st day. However
#include <gtk/gtktogglebutton.h>
#include <gtk/gtksizegroup.h>
#include <gtk/gtkwindow.h>
-#include "hildon-composite-widget.h"
+#include "hildon-private.h"
#include "hildon-weekday-picker-private.h"
static GtkContainerClass* parent_class;
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)
{
/* 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;