Adding a hildon-time-picker example.
authorMichael Dominic Kostrzewa <michael.kostrzewa@nokia.com>
Mon, 15 Jan 2007 12:29:55 +0000 (12:29 +0000)
committerMichael Dominic Kostrzewa <michael.kostrzewa@nokia.com>
Mon, 15 Jan 2007 12:29:55 +0000 (12:29 +0000)
ChangeLog
examples/Makefile.am
examples/hildon-time-picker/hildon-time-picker-example.c [new file with mode: 0644]

index 13ff62a..a7b11a1 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2007-01-15  Michael Dominic Kostrzewa  <michael.kostrzewa@nokia.com> 
+
+       * examples/Makefile.am:
+       * examples/hildon-time-picker:
+       * examples/hildon-time-picker/hildon-time-picker-example.c: Adding a
+       hildon-time-picker example.
+
 2007-01-11  Michael Dominic Kostrzewa  <michael.kostrzewa@nokia.com> 
 
        * configure.ac:
index 2af0037..d6e2fc4 100644 (file)
@@ -7,7 +7,8 @@ noinst_PROGRAMS                         = hildon-window-example         \
                                          hildon-weekday-picker-example \
                                          hildon-sort-dialog-example    \
                                          hildon-controlbar-example     \
-                                         hildon-note-example
+                                         hildon-note-example           \
+                                         hildon-time-picker-example
 
 # HIldon window
 hildon_window_example_LDADD            = $(HILDON_WIDGETS_OBJ_LIBS)
@@ -29,6 +30,11 @@ hildon_weekday_picker_example_LDADD  = $(HILDON_WIDGETS_OBJ_LIBS)
 hildon_weekday_picker_example_CFLAGS   = $(HILDON_WIDGETS_OBJ_CFLAGS)
 hildon_weekday_picker_example_SOURCES  = hildon-weekday-picker/hildon-weekday-picker-example.c
 
+# Hildon time picker
+hildon_time_picker_example_LDADD       = $(HILDON_WIDGETS_OBJ_LIBS)
+hildon_time_picker_example_CFLAGS      = $(HILDON_WIDGETS_OBJ_CFLAGS)
+hildon_time_picker_example_SOURCES     = hildon-time-picker/hildon-time-picker-example.c
+
 # Hildon sort dialog
 hildon_sort_dialog_example_LDADD       = $(HILDON_WIDGETS_OBJ_LIBS)
 hildon_sort_dialog_example_CFLAGS      = $(HILDON_WIDGETS_OBJ_CFLAGS)
diff --git a/examples/hildon-time-picker/hildon-time-picker-example.c b/examples/hildon-time-picker/hildon-time-picker-example.c
new file mode 100644 (file)
index 0000000..590eaf4
--- /dev/null
@@ -0,0 +1,21 @@
+#include <stdio.h>
+#include <stdlib.h>
+#include <glib.h>
+#include <gtk/gtk.h>
+#include "hildon-window.h"
+#include "hildon-time-picker.h"
+#include "hildon-program.h"
+
+int
+main (int argc, char **args)
+{
+    gtk_init (&argc, &args);
+    
+    GtkDialog *dialog = GTK_DIALOG (hildon_time_picker_new (NULL));
+
+    gtk_widget_show_all (GTK_WIDGET (dialog));
+    gtk_dialog_run (dialog);
+    
+    return 0;
+}
+