![]() |
![]() |
![]() |
hildon 2.0.6 Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy | Implemented Interfaces | Signals |
HildonWeekdayPickerHildonWeekdayPicker — A widget for picking days on which a certain event should take place. |
![]() |
HildonWeekdayPicker; HildonWeekdayPickerClass; GtkWidget * hildon_weekday_picker_new (void
); void hildon_weekday_picker_set_day (HildonWeekdayPicker *picker
,GDateWeekday day
); void hildon_weekday_picker_unset_day (HildonWeekdayPicker *picker
,GDateWeekday day
); void hildon_weekday_picker_toggle_day (HildonWeekdayPicker *picker
,GDateWeekday day
); void hildon_weekday_picker_set_all (HildonWeekdayPicker *picker
); void hildon_weekday_picker_unset_all (HildonWeekdayPicker *picker
); gboolean hildon_weekday_picker_isset_day (HildonWeekdayPicker *picker
,GDateWeekday day
);
GObject +----GInitiallyUnowned +----GtkObject +----GtkWidget +----GtkContainer +----HildonWeekdayPicker
HildonWeekdayPicker supports non-mutually exclusive selection of days of the week. Selected days of the week are shown with a pushed-in effect.
HildonWeekdayPicker is used where users are required to pick days on which 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 8. HildonWeekdayPicker example
1 2 3 4 5 6 7 8 9 |
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 ); |
typedef struct { GtkContainerClass parent_class; void (*selection_changed) (HildonWeekdayPicker *self); } HildonWeekdayPickerClass;
GtkWidget * hildon_weekday_picker_new (void
);
Creates a new HildonWeekdayPicker.
Returns : |
pointer to a new HildonWeekdayPicker widget. |
void hildon_weekday_picker_set_day (HildonWeekdayPicker *picker
,GDateWeekday day
);
Sets specified weekday active.
|
the HildonWeekdayPicker widget |
|
day to be set active |
void hildon_weekday_picker_unset_day (HildonWeekdayPicker *picker
,GDateWeekday day
);
Unselect specified weekday.
|
the HildonWeekdayPicker widget |
|
day to be set inactive |
void hildon_weekday_picker_toggle_day (HildonWeekdayPicker *picker
,GDateWeekday day
);
Toggles current status of the specified weekday.
|
the HildonWeekdayPicker widget |
|
day to be toggled |
void hildon_weekday_picker_set_all (HildonWeekdayPicker *picker
);
Sets all weekdays active.
|
the HildonWeekdayPicker widget |
void hildon_weekday_picker_unset_all (HildonWeekdayPicker *picker
);
Sets all weekdays inactive.
|
the HildonWeekdayPicker widget |
gboolean hildon_weekday_picker_isset_day (HildonWeekdayPicker *picker
,GDateWeekday day
);
Checks if the specified weekday is set active.
|
the HildonWeekdayPicker widget |
|
day to be checked. |
Returns : |
TRUE if the day is set, FALSE if the day is not set |
"selection-changed"
signalvoid user_function (HildonWeekdayPicker *hildonweekdaypicker, gint arg1, gpointer user_data) : Run Last / Action
|
the object which received the signal. |
|
|
|
user data set when the signal handler was connected. |