Adding some missing bugfixes from pre-consolidation from another branch. Adding the...
[hildon] / src / hildon-date-editor.c
index afb53c8..9f8be07 100644 (file)
@@ -48,7 +48,7 @@
 #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"
@@ -58,6 +58,8 @@
 
 #define                                         _(string) dgettext(PACKAGE, string)
 
+#define                                         c_(string) dgettext("hildon-common-strings", string)
+
 #define                                         ENTRY_BORDERS 11
 
 #define                                         DATE_EDITOR_HEIGHT 30
@@ -213,7 +215,7 @@ hildon_date_editor_class_init                   (HildonDateEditorClass *editor_c
     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;
@@ -1207,7 +1209,7 @@ hildon_date_editor_date_error                   (HildonDateEditor *editor,
             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: