2008-05-26 Michael Natterer <mitch@imendio.com>
authorMichael Natterer <mitch@imendio.com>
Mon, 26 May 2008 09:26:43 +0000 (09:26 +0000)
committerMichael Natterer <mitch@imendio.com>
Mon, 26 May 2008 09:26:43 +0000 (09:26 +0000)
* src/hildon-time-editor.c (hildon_time_editor_class_init): The
widget_class->tap_and_hold_setup signal slot doesn't exist any
longer, stop overriding it.

(hildon_time_editor_init): g_signal_connect() to the
tap-and-hold-setup signal instead.

(hildon_time_editor_entry_keypress): add case to fix warning.

ChangeLog
src/hildon-time-editor.c

index eb1dc9b..28d1446 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,14 @@
+2008-05-26  Michael Natterer  <mitch@imendio.com>
+
+       * src/hildon-time-editor.c (hildon_time_editor_class_init): The
+       widget_class->tap_and_hold_setup signal slot doesn't exist any
+       longer, stop overriding it.
+
+       (hildon_time_editor_init): g_signal_connect() to the
+       tap-and-hold-setup signal instead.
+
+       (hildon_time_editor_entry_keypress): add case to fix warning.
+
 2008-05-23  Alberto Garcia  <agarcia@igalia.com>
 
        * doc/hildon-docs.sgml
index 6396869..fe0297e 100644 (file)
@@ -366,9 +366,6 @@ hildon_time_editor_class_init                   (HildonTimeEditorClass *editor_c
     object_class->set_property                  = hildon_time_editor_set_property;
     widget_class->size_request                  = hildon_time_editor_size_request;
     widget_class->size_allocate                 = hildon_time_editor_size_allocate;
-#ifdef MAEMO_GTK 
-    widget_class->tap_and_hold_setup            = hildon_time_editor_tap_and_hold_setup;
-#endif
     widget_class->focus                         = hildon_time_editor_focus;
 
     container_class->forall                     = hildon_time_editor_forall;
@@ -609,6 +606,13 @@ hildon_time_editor_init                         (HildonTimeEditor *editor)
     hildon_time_editor_set_to_current_time (editor);
 
     gtk_widget_pop_composite_child ();
+
+#ifdef MAEMO_GTK 
+    g_signal_connect (editor, "tap-and-hold-setup",
+                      G_CALLBACK (hildon_time_editor_tap_and_hold_setup),
+                      NULL);
+#endif
+
 }
 
 static void 
@@ -1821,7 +1825,7 @@ hildon_time_editor_entry_keypress (GtkEntry *entry,
     {
     case GDK_Return:
     case GDK_ISO_Enter:
-      hildon_time_editor_icon_clicked (entry, data);
+      hildon_time_editor_icon_clicked (GTK_WIDGET (entry), data);
       return TRUE;
     default:
       return FALSE;