2007-01-23 Michael Dominic Kostrzewa <michael.kostrzewa@nokia.com>
+ * src/hildon-date-editor.c: Fixing the documentation for
+ HildonTimeEditor. Removing the year limitations.
+
+ * src/hildon-defines.c:
+ * src/hildon-defines.h: Fixing the defines documentation.
+
+2007-01-23 Michael Dominic Kostrzewa <michael.kostrzewa@nokia.com>
+
* src/hildon-banner.c: Fixing documentation for HildonBanner.
* src/hildon-caption.c:
#define DEFAULT_MIN_YEAR 1970
-#define DEFAULT_MAX_YEAR 2037
+#define DEFAULT_MAX_YEAR 3000
static GtkContainerClass* parent_class;
static guint date_editor_signals[LAST_SIGNAL] = { 0 };
+/**
+ * hildon_date_editor_get_type:
+ *
+ * Initializes and returns the type of a hildon date editor.
+ *
+ * @Returns: GType of #HildonDateEditor
+ */
GType G_GNUC_CONST
hildon_date_editor_get_type (void)
{
g_param_spec_uint ("min-year",
"Minimum valid year",
"Minimum valid year",
- 1, 2100,
+ 1, 3000,
DEFAULT_MIN_YEAR,
G_PARAM_READWRITE));
g_param_spec_uint ("max-year",
"Maximum valid year",
"Maximum valid year",
- 1, 2100,
+ 1, 3000,
DEFAULT_MAX_YEAR,
G_PARAM_READWRITE));
}
}
}
-static void hildon_child_forall (GtkContainer *container,
+static void
+hildon_child_forall (GtkContainer *container,
gboolean include_internals,
GtkCallback callback,
gpointer callback_data)
return error_code;
}
+/* Idle callback */
+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;
+}
+
/* When entry becomes full, we move the focus to the next field.
If we are on the last field, the whole contents are validated. */
static void
*
* Sets the year shown in the editor.
*
- * Returns: TRUE if the year is valid
+ * Returns: TRUE if the year is valid and has been set.
*/
gboolean
hildon_date_editor_set_year (HildonDateEditor *editor,
*
* Sets the month shown in the editor.
*
- * Returns: TRUE if the month is valid
+ * Returns: TRUE if the month is valid and has been set.
*/
gboolean
hildon_date_editor_set_month (HildonDateEditor *editor,
*
* Sets the day shown in the editor.
*
- * Returns: TRUE if the day is valid
+ * Returns: TRUE if the day is valid and has been set.
*/
gboolean
hildon_date_editor_set_day (HildonDateEditor *editor,
return (guint) atoi (gtk_entry_get_text (GTK_ENTRY (priv->d_entry)));
}
-/* Idle callback */
-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;
-}