-#ifdef MODEST_USE_CALENDAR_WIDGETS
-static void
-color_button_clicked (GtkButton *button)
-{
- PipCalendarColor color;
-
- /* Show ColorPicker dialog */
- color = pip_color_picker_select_color(PipCalendarColorInvalid, PipColorPickerText);
-
- /* Check if some color is selected rather than dialog is dismissed */
- if (color != PipCalendarColorInvalid) {
- GdkColor *gdk_color = (GdkColor *) pip_calendar_color_get_gdkcolor (color);
- if (gdk_color)
- hildon_color_button_set_color ((HildonColorButton *) button, gdk_color);
- }
-}
-#endif
-