the program
+2006-03-02 Luc Pionchon <luc.pionchon@nokia.com>
+
+ More cleanup,
+
+ * hildon-widgets/hildon-dialoghelp.h: use G_BEGIN_DECLS +
+ coding style cleanup
+
+ * hildon-widgets/hildon-color-popup.h: likewise.
+
+ * hildon-widgets/hildon-color-popup.[ch] (hildon_color_popup_new):
+ use const parameter
+
+ * hildon-widgets/hildon-color-selector.c
+ (hildon_color_selector_new): use g_return_val_if_fail instead of
+ g_assert.
+ (select_color): use g_assert instead of g_return_if_fail
+
+ * hildon-widgets/hildon-calendar-popup.c
+ (hildon_calendar_allow_exit): use g_assert instead of g_return_if_fail.
+
+
2006-03-01 Luc Pionchon <luc.pionchon@nokia.com>
Cleanup font selection dialog,
#include <time.h>
#include <libintl.h>
#include <hildon-widgets/hildon-calendar-popup.h>
-#include <hildon-widgets/gtk-infoprint.h> /* FIXME: broken include ? */
+#include <hildon-widgets/gtk-infoprint.h> /* FIXME: use GtkInfoprint instead of gtk-infoprint (deprecated). */
#define _(String) dgettext(PACKAGE, String)
HildonCalendarPopup *cal;
HildonCalendarPopupPrivate *priv;
- g_return_if_fail (GTK_IS_WIDGET (self));
- g_return_if_fail (HILDON_IS_CALENDAR_POPUP (data));
+ g_assert(GTK_IS_WIDGET (self));
+ g_assert(HILDON_IS_CALENDAR_POPUP (data));
cal = HILDON_CALENDAR_POPUP(data);
priv = HILDON_CALENDAR_POPUP_GET_PRIVATE(cal);
*/
GtkWidget *
-hildon_color_popup_new(GtkWindow *parent, GdkColor *initial_color,
+hildon_color_popup_new(GtkWindow *parent, const GdkColor *initial_color,
HildonColorPopup *popup_data)
{
GtkWidget *popup;
#include <gtk/gtkwindow.h>
#include <gtk/gtkdialog.h>
+G_BEGIN_DECLS
+
typedef struct
{
- GtkWidget *ctrlbar_red, *ctrlbar_green, *ctrlbar_blue;
+ GtkWidget *ctrlbar_red;
+ GtkWidget *ctrlbar_green;
+ GtkWidget *ctrlbar_blue;
+
} HildonColorPopup;
-GtkWidget *hildon_color_popup_new(GtkWindow * parent, GdkColor *initial_color, HildonColorPopup *popupdata);
+GtkWidget *hildon_color_popup_new(GtkWindow *parent,
+ const GdkColor *initial_color,
+ HildonColorPopup *popupdata);
+
+void hildon_color_popup_set_color_from_sliders(GdkColor *color,
+ HildonColorPopup *popupdata);
+
+
+G_END_DECLS
-void hildon_color_popup_set_color_from_sliders(GdkColor *color, HildonColorPopup *popupdata);
-#endif
+#endif /* __HILDON_COLOR_POPUP_H__ */
{
GtkWidget *dialog = g_object_new(HILDON_TYPE_COLOR_SELECTOR, NULL);
- g_assert(dialog);
+ g_return_val_if_fail(dialog, NULL);
if (parent)
{
{
gint x, y;
- g_return_if_fail(HILDON_IS_COLOR_SELECTOR(selector));
+ g_assert(HILDON_IS_COLOR_SELECTOR(selector));
/* Get the selection coordinates */
x = ( (event_x - HILDON_COLOR_SELECTOR_BOX_BORDER) /
#ifndef __HILDON_DIALOG_HELP_H__
#define __HILDON_DIALOG_HELP_H__
-#ifdef __cplusplus
-extern "C" {
-#endif /* __cplusplus */
-
-/*#include <gtk/gtk.h>*/
#include <gtk/gtkdialog.h>
-void gtk_dialog_help_enable(GtkDialog * dialog);
-void gtk_dialog_help_disable(GtkDialog * dialog);
+G_BEGIN_DECLS
+
+void gtk_dialog_help_enable (GtkDialog * dialog);
+void gtk_dialog_help_disable (GtkDialog * dialog);
+
+G_END_DECLS
-#ifdef __cplusplus
-}
-#endif /* __cplusplus */
-#endif /* __DIALOG_HELP_H__ */
+#endif /* __HILDON_DIALOG_HELP_H__ */