/*
- * This file is part of hildon-libs
+ * This file is a part of hildon
*
* Copyright (C) 2005, 2006 Nokia Corporation, all rights reserved.
*
#include "hildon-calendar-popup.h"
#include "hildon-defines.h"
#include "hildon-input-mode-hint.h"
-#include "hildon-composite-widget.h"
+#include "hildon-private.h"
#include "hildon-marshalers.h"
#include "hildon-enum-types.h"
#include "hildon-time-editor.h"
#define _(string) dgettext(PACKAGE, string)
+#define c_(string) dgettext("hildon-common-strings", string)
+
#define ENTRY_BORDERS 11
#define DATE_EDITOR_HEIGHT 30
static gboolean
hildon_date_editor_date_error (HildonDateEditor *editor,
- HildonDateTimeEditorError type);
+ HildonDateTimeError type);
static gboolean
hildon_date_editor_entry_focus_in (GtkWidget *widget,
gobject_class->get_property = hildon_date_editor_get_property;
widget_class->size_request = hildon_date_editor_size_request;
widget_class->size_allocate = hildon_date_editor_size_allocate;
- widget_class->focus = hildon_composite_widget_focus;
+ widget_class->focus = hildon_private_composite_focus;
container_class->forall = hildon_child_forall;
GTK_OBJECT_CLASS(editor_class)->destroy = hildon_date_editor_destroy;
G_STRUCT_OFFSET (HildonDateEditorClass, date_error),
g_signal_accumulator_true_handled, NULL,
_hildon_marshal_BOOLEAN__ENUM,
- G_TYPE_BOOLEAN, 1, HILDON_TYPE_DATE_TIME_EDITOR_ERROR);
+ G_TYPE_BOOLEAN, 1, HILDON_TYPE_DATE_TIME_ERROR);
/**
* HildonDateEditor:year:
static gboolean
hildon_date_editor_date_error (HildonDateEditor *editor,
- HildonDateTimeEditorError type)
+ HildonDateTimeError type)
{
HildonDateEditorPrivate *priv = HILDON_DATE_EDITOR_GET_PRIVATE (editor);
g_assert (priv);
break;
case HILDON_DATE_TIME_ERROR_INVALID_CHAR:
- hildon_banner_show_information (GTK_WIDGET (editor), NULL, _("ckct_ib_illegal_character"));
+ hildon_banner_show_information (GTK_WIDGET (editor), NULL, c_("ckct_ib_illegal_character"));
break;
case HILDON_DATE_TIME_ERROR_INVALID_DATE: