* a different time from the selector, this will be shown in the button.
*/
+#include <libintl.h>
+
#include "hildon-time-selector.h"
#include "hildon-touch-selector.h"
#include "hildon-picker-button.h"
#include "hildon-time-button.h"
+#define _(String) \
+ dgettext("hildon-libs", String)
+
+#define c_(String) \
+ dgettext("hildon-common-strings", String)
+
G_DEFINE_TYPE (HildonTimeButton, hildon_time_button, HILDON_TYPE_PICKER_BUTTON)
#if 0
HildonButtonArrangement arrangement,
guint minutes_step)
{
- GtkWidget *button;
- GtkWidget *time_selector;
-
- button = g_object_new (HILDON_TYPE_TIME_BUTTON,
- "title", _("wdgt_ti_time"), "arrangement", arrangement, "size", size, NULL);
-
- time_selector = hildon_time_selector_new_step (minutes_step);
-
- hildon_picker_button_set_selector (HILDON_PICKER_BUTTON (button),
- HILDON_TOUCH_SELECTOR (time_selector));
-
- return button;
+ return g_object_new (HILDON_TYPE_TIME_BUTTON,
+ "title", _("wdgt_ti_time"),
+ "arrangement", arrangement,
+ "size", size,
+ "touch-selector", hildon_time_selector_new_step (minutes_step),
+ NULL);
}
/**