[maemo-commits] [maemo-commits] r9262 - in projects/haf/branches/hildon-libs/hildon-1: . src
From: subversion at stage.maemo.org subversion at stage.maemo.orgDate: Tue Jan 23 15:30:34 EET 2007
- Previous message: [maemo-commits] r9261 - in projects/haf/branches/hildon-libs/hildon-1: . src
- Next message: [maemo-commits] r9263 - in projects/haf/branches/gtk+/maemo-gtk-2-10: . gtk
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Author: mdk Date: 2007-01-23 15:30:33 +0200 (Tue, 23 Jan 2007) New Revision: 9262 Modified: projects/haf/branches/hildon-libs/hildon-1/ChangeLog.2 projects/haf/branches/hildon-libs/hildon-1/src/hildon-date-editor.c projects/haf/branches/hildon-libs/hildon-1/src/hildon-defines.c projects/haf/branches/hildon-libs/hildon-1/src/hildon-defines.h Log: Fixing the documentation for HildonTimeEditor. Removing the year limitations. Fixing the defines documentation. Modified: projects/haf/branches/hildon-libs/hildon-1/ChangeLog.2 =================================================================== --- projects/haf/branches/hildon-libs/hildon-1/ChangeLog.2 2007-01-23 13:18:53 UTC (rev 9261) +++ projects/haf/branches/hildon-libs/hildon-1/ChangeLog.2 2007-01-23 13:30:33 UTC (rev 9262) @@ -1,5 +1,13 @@ 2007-01-23 Michael Dominic Kostrzewa <michael.kostrzewa at 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 at nokia.com> + * src/hildon-banner.c: Fixing documentation for HildonBanner. * src/hildon-caption.c: Modified: projects/haf/branches/hildon-libs/hildon-1/src/hildon-date-editor.c =================================================================== --- projects/haf/branches/hildon-libs/hildon-1/src/hildon-date-editor.c 2007-01-23 13:18:53 UTC (rev 9261) +++ projects/haf/branches/hildon-libs/hildon-1/src/hildon-date-editor.c 2007-01-23 13:30:33 UTC (rev 9262) @@ -72,7 +72,7 @@ #define DEFAULT_MIN_YEAR 1970 -#define DEFAULT_MAX_YEAR 2037 +#define DEFAULT_MAX_YEAR 3000 static GtkContainerClass* parent_class; @@ -175,6 +175,13 @@ 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) { @@ -279,7 +286,7 @@ g_param_spec_uint ("min-year", "Minimum valid year", "Minimum valid year", - 1, 2100, + 1, 3000, DEFAULT_MIN_YEAR, G_PARAM_READWRITE)); @@ -292,7 +299,7 @@ g_param_spec_uint ("max-year", "Maximum valid year", "Maximum valid year", - 1, 2100, + 1, 3000, DEFAULT_MAX_YEAR, G_PARAM_READWRITE)); } @@ -621,7 +628,8 @@ } } -static void hildon_child_forall (GtkContainer *container, +static void +hildon_child_forall (GtkContainer *container, gboolean include_internals, GtkCallback callback, gpointer callback_data) @@ -1031,6 +1039,19 @@ 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 @@ -1327,7 +1348,7 @@ * * 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, @@ -1368,7 +1389,7 @@ * * 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, @@ -1409,7 +1430,7 @@ * * 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, @@ -1502,15 +1523,3 @@ 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; -} Modified: projects/haf/branches/hildon-libs/hildon-1/src/hildon-defines.c =================================================================== --- projects/haf/branches/hildon-libs/hildon-1/src/hildon-defines.c 2007-01-23 13:18:53 UTC (rev 9261) +++ projects/haf/branches/hildon-libs/hildon-1/src/hildon-defines.c 2007-01-23 13:30:33 UTC (rev 9262) @@ -39,6 +39,13 @@ static HildonIconSizes iis; /* hildon internal icon sizes */ +/** + * hildon_icon_sizes_init: + * + * Initializes the icon size structures. Normally + * it's not needed to call this manually. + * + */ void hildon_icon_sizes_init (void) { Modified: projects/haf/branches/hildon-libs/hildon-1/src/hildon-defines.h =================================================================== --- projects/haf/branches/hildon-libs/hildon-1/src/hildon-defines.h 2007-01-23 13:18:53 UTC (rev 9261) +++ projects/haf/branches/hildon-libs/hildon-1/src/hildon-defines.h 2007-01-23 13:30:33 UTC (rev 9262) @@ -220,16 +220,6 @@ #define HILDON_HARDKEY_DECREASE GDK_F8 -gulong -hildon_gtk_widget_set_logical_font (GtkWidget *widget, - const gchar *logicalfontname); - -gulong -hildon_gtk_widget_set_logical_color (GtkWidget *widget, - GtkRcFlags rcflags, - GtkStateType state, - const gchar *logicalcolorname); - void hildon_icon_sizes_init (void);
- Previous message: [maemo-commits] r9261 - in projects/haf/branches/hildon-libs/hildon-1: . src
- Next message: [maemo-commits] r9263 - in projects/haf/branches/gtk+/maemo-gtk-2-10: . gtk
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]