X-Git-Url: https://vcs.maemo.org/git/?a=blobdiff_plain;ds=sidebyside;f=src%2Fhildon-weekday-picker.c;h=3f1c56ab9bc32387a72f643082980cde070fff72;hb=85419906ab4398031c5cb41a8bf7a821baf0125c;hp=d588efef525b72c4b20bc96686e57b06bed8355e;hpb=3619f9c53541a95bd6dbcc680e26a74e6649cb22;p=hildon diff --git a/src/hildon-weekday-picker.c b/src/hildon-weekday-picker.c index d588efe..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