/**
* hildon_date_editor_get_date:
* @date: the @HildonDateEditor widget
- * @year: year
- * @month: month
- * @day: day
+ * @year: a pointer to store the selected year
+ * @month: a pointer to store the selected month
+ * @day: a pointer to store the selected day
*
- * Gets the date represented by the date editor.
- * You can pass NULL to any of the pointers if
- * you're not interested in obtaining it.
+ * Gets the date selected in @date.
+ * You can pass %NULL in any of the pointers if
+ * you're not interested in obtaining a particular field.
*
*/
void
GdkEventFocus *event,
gpointer data)
{
- g_idle_add ((GSourceFunc) hildon_date_editor_entry_select_all, GTK_ENTRY (widget));
+ gdk_threads_add_idle ((GSourceFunc) hildon_date_editor_entry_select_all, GTK_ENTRY (widget));
return FALSE;
}
{
g_signal_emit (ed, date_editor_signals[DATE_ERROR], 0, error_code, &r);
- g_idle_add ((GSourceFunc) hildon_date_editor_entry_select_all, widget);
+ gdk_threads_add_idle ((GSourceFunc) hildon_date_editor_entry_select_all, widget);
}
}
static gboolean
hildon_date_editor_entry_select_all (GtkWidget *widget)
{
- GDK_THREADS_ENTER ();
-
gtk_editable_select_region (GTK_EDITABLE (widget), 0, -1);
-
- GDK_THREADS_LEAVE ();
-
return FALSE;
}
/**
* hildon_date_editor_get_year:
- * @editor: the @HildonDateEditor widget
+ * @editor: the #HildonDateEditor widget
+ *
+ * Gets the year shown in the editor.
*
* Returns: the current year shown in the editor.
*/