[maemo-commits] [maemo-commits] r9661 - in projects/haf/branches/hildon-libs/hildon-1: . src
From: subversion at stage.maemo.org subversion at stage.maemo.orgDate: Tue Feb 6 12:02:10 EET 2007
- Previous message: [maemo-commits] r9660 - in projects/haf/branches/maemo-af-desktop/hildon-desktop: . libhildondesktop src
- Next message: [maemo-commits] r9662 - projects/haf/branches/gtk+/maemo-gtk-2-10/debian
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Author: mdk Date: 2007-02-06 12:02:09 +0200 (Tue, 06 Feb 2007) New Revision: 9661 Modified: projects/haf/branches/hildon-libs/hildon-1/ChangeLog.2 projects/haf/branches/hildon-libs/hildon-1/src/hildon-color-button.c projects/haf/branches/hildon-libs/hildon-1/src/hildon-color-button.h projects/haf/branches/hildon-libs/hildon-1/src/hildon-helper.c Log: Updating documentation of the HildonColorButton and correcting some formatting glitches in the hildon-helper functions. Modified: projects/haf/branches/hildon-libs/hildon-1/ChangeLog.2 =================================================================== --- projects/haf/branches/hildon-libs/hildon-1/ChangeLog.2 2007-02-06 08:41:01 UTC (rev 9660) +++ projects/haf/branches/hildon-libs/hildon-1/ChangeLog.2 2007-02-06 10:02:09 UTC (rev 9661) @@ -1,3 +1,10 @@ +2007-02-06 Michael Dominic Kostrzewa <michael.kostrzewa at nokia.com> + + * src/hildon-color-button.c: + * src/hildon-color-button.h: Updating documentation. + + * src/hildon-helper.c: Correcting some formatting glitches. + 2007-02-06 Xan Lopez <xan.lopez at nokia.com> * src/hildon-helper.c: Modified: projects/haf/branches/hildon-libs/hildon-1/src/hildon-color-button.c =================================================================== --- projects/haf/branches/hildon-libs/hildon-1/src/hildon-color-button.c 2007-02-06 08:41:01 UTC (rev 9660) +++ projects/haf/branches/hildon-libs/hildon-1/src/hildon-color-button.c 2007-02-06 10:02:09 UTC (rev 9661) @@ -143,6 +143,13 @@ static gpointer parent_class = NULL; +/** + * hildon_color_button_get_type: + * + * Initializes and returns the type of a hildon color button. + * + * @Returns: GType of #HildonColorButton. + */ GType G_GNUC_CONST hildon_color_button_get_type (void) { Modified: projects/haf/branches/hildon-libs/hildon-1/src/hildon-color-button.h =================================================================== --- projects/haf/branches/hildon-libs/hildon-1/src/hildon-color-button.h 2007-02-06 08:41:01 UTC (rev 9660) +++ projects/haf/branches/hildon-libs/hildon-1/src/hildon-color-button.h 2007-02-06 10:02:09 UTC (rev 9661) @@ -75,7 +75,8 @@ hildon_color_button_new_with_color (const GdkColor *color); void -hildon_color_button_get_color (HildonColorButton *button, GdkColor *color); +hildon_color_button_get_color (HildonColorButton *button, + GdkColor *color); void hildon_color_button_set_color (HildonColorButton *button, Modified: projects/haf/branches/hildon-libs/hildon-1/src/hildon-helper.c =================================================================== --- projects/haf/branches/hildon-libs/hildon-1/src/hildon-helper.c 2007-02-06 08:41:01 UTC (rev 9660) +++ projects/haf/branches/hildon-libs/hildon-1/src/hildon-helper.c 2007-02-06 10:02:09 UTC (rev 9661) @@ -235,29 +235,29 @@ } static GQuark -hildon_helper_insensitive_message_quark (void) +hildon_helper_insensitive_message_quark (void) { - static GQuark quark = 0; + static GQuark quark = 0; - if (G_UNLIKELY (quark == 0)) - quark = g_quark_from_static_string ("hildon-insensitive-message"); + if (G_UNLIKELY (quark == 0)) + quark = g_quark_from_static_string ("hildon-insensitive-message"); - return quark; + return quark; } - static void -show_insensitive_message (GtkWidget *widget, gpointer user_data) +show_insensitive_message (GtkWidget *widget, + gpointer user_data) { - gchar *message = NULL; + gchar *message = NULL; - g_assert (GTK_IS_WIDGET (widget)); + g_assert (GTK_IS_WIDGET (widget)); - message = (gchar*) g_object_get_qdata (G_OBJECT (widget), - hildon_helper_insensitive_message_quark ()); + message = (gchar*) g_object_get_qdata (G_OBJECT (widget), + hildon_helper_insensitive_message_quark ()); - if (message) - hildon_banner_show_information (widget, NULL, message); + if (message) + hildon_banner_show_information (widget, NULL, message); } @@ -313,22 +313,22 @@ **/ void -hildon_helper_set_insensitive_messagef (GtkWidget *widget, - const gchar *format, - ...) +hildon_helper_set_insensitive_messagef (GtkWidget *widget, + const gchar *format, + ...) { - g_return_if_fail (GTK_IS_WIDGET (widget)); + g_return_if_fail (GTK_IS_WIDGET (widget)); - gchar *message; - va_list args; + gchar *message; + va_list args; - va_start (args, format); - message = g_strdup_vprintf (format, args); - va_end (args); + va_start (args, format); + message = g_strdup_vprintf (format, args); + va_end (args); - hildon_helper_set_insensitive_message (widget, message); + hildon_helper_set_insensitive_message (widget, message); - g_free (message); + g_free (message); } /**
- Previous message: [maemo-commits] r9660 - in projects/haf/branches/maemo-af-desktop/hildon-desktop: . libhildondesktop src
- Next message: [maemo-commits] r9662 - projects/haf/branches/gtk+/maemo-gtk-2-10/debian
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]