Moving the examples out of the directory.
authorMichael Dominic Kostrzewa <michael.kostrzewa@nokia.com>
Wed, 17 Jan 2007 15:01:08 +0000 (15:01 +0000)
committerMichael Dominic Kostrzewa <michael.kostrzewa@nokia.com>
Wed, 17 Jan 2007 15:01:08 +0000 (15:01 +0000)
22 files changed:
ChangeLog
examples/Makefile.am
examples/hildon-banner-example.c [new file with mode: 0644]
examples/hildon-banner/hildon-banner-example.c [deleted file]
examples/hildon-caption-example.c [new file with mode: 0644]
examples/hildon-caption/hildon-caption-example.c [deleted file]
examples/hildon-color-button-example.c [new file with mode: 0644]
examples/hildon-color-button/hildon-color-button-example.c [deleted file]
examples/hildon-color-chooser-example.c [new file with mode: 0644]
examples/hildon-color-chooser/hildon-color-chooser-example.c [deleted file]
examples/hildon-controlbar-example.c [new file with mode: 0644]
examples/hildon-controlbar/hildon-controlbar-example.c [deleted file]
examples/hildon-note-example.c [new file with mode: 0644]
examples/hildon-note/hildon-note-example.c [deleted file]
examples/hildon-sort-dialog-example.c [new file with mode: 0644]
examples/hildon-sort-dialog/hildon-sort-dialog-example.c [deleted file]
examples/hildon-time-picker-example.c [new file with mode: 0644]
examples/hildon-time-picker/hildon-time-picker-example.c [deleted file]
examples/hildon-weekday-picker-example.c [new file with mode: 0644]
examples/hildon-weekday-picker/hildon-weekday-picker-example.c [deleted file]
examples/hildon-window-example.c [new file with mode: 0644]
examples/hildon-window/hildon-window-example.c [deleted file]

index d7d165f..97b1365 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2007-01-17  Michael Dominic Kostrzewa  <michael.kostrzewa@nokia.com> 
 
+       * examples/: Moving the examples out of the directory.
+
+2007-01-17  Michael Dominic Kostrzewa  <michael.kostrzewa@nokia.com> 
+
        * src/hildon.h: Changing from hildon-widgets.h
 
        * examples/hildon-banner/hildon-banner-example.c:
index 7638fed..aa3d440 100644 (file)
@@ -15,51 +15,51 @@ noinst_PROGRAMS                             = hildon-window-example         \
 # HIldon window
 hildon_window_example_LDADD            = $(HILDON_OBJ_LIBS)
 hildon_window_example_CFLAGS           = $(HILDON_OBJ_CFLAGS)
-hildon_window_example_SOURCES          = hildon-window/hildon-window-example.c
+hildon_window_example_SOURCES          = hildon-window-example.c
 
 # Hildon banner
 hildon_banner_example_LDADD            = $(HILDON_OBJ_LIBS)
 hildon_banner_example_CFLAGS           = $(HILDON_OBJ_CFLAGS)
-hildon_banner_example_SOURCES          = hildon-banner/hildon-banner-example.c
+hildon_banner_example_SOURCES          = hildon-banner-example.c
 
 # Hildon caption
 hildon_caption_example_LDADD           = $(HILDON_OBJ_LIBS)
 hildon_caption_example_CFLAGS          = $(HILDON_OBJ_CFLAGS)
-hildon_caption_example_SOURCES         = hildon-caption/hildon-caption-example.c
+hildon_caption_example_SOURCES         = hildon-caption-example.c
 
 # Hildon weekday picker
 hildon_weekday_picker_example_LDADD    = $(HILDON_OBJ_LIBS)
 hildon_weekday_picker_example_CFLAGS   = $(HILDON_OBJ_CFLAGS)
-hildon_weekday_picker_example_SOURCES  = hildon-weekday-picker/hildon-weekday-picker-example.c
+hildon_weekday_picker_example_SOURCES  = hildon-weekday-picker-example.c
 
 # Hildon time picker
 hildon_time_picker_example_LDADD       = $(HILDON_OBJ_LIBS)
 hildon_time_picker_example_CFLAGS      = $(HILDON_OBJ_CFLAGS)
-hildon_time_picker_example_SOURCES     = hildon-time-picker/hildon-time-picker-example.c
+hildon_time_picker_example_SOURCES     = hildon-time-picker-example.c
 
 # Hildon sort dialog
 hildon_sort_dialog_example_LDADD       = $(HILDON_OBJ_LIBS)
 hildon_sort_dialog_example_CFLAGS      = $(HILDON_OBJ_CFLAGS)
-hildon_sort_dialog_example_SOURCES     = hildon-sort-dialog/hildon-sort-dialog-example.c
+hildon_sort_dialog_example_SOURCES     = hildon-sort-dialog-example.c
 
 # Hildon control bar
 hildon_controlbar_example_LDADD                = $(HILDON_OBJ_LIBS)
 hildon_controlbar_example_CFLAGS       = $(HILDON_OBJ_CFLAGS)
-hildon_controlbar_example_SOURCES      = hildon-controlbar/hildon-controlbar-example.c
+hildon_controlbar_example_SOURCES      = hildon-controlbar-example.c
 
 # Hildon note example
 hildon_note_example_LDADD              = $(HILDON_OBJ_LIBS)
 hildon_note_example_CFLAGS             = $(HILDON_OBJ_CFLAGS)
-hildon_note_example_SOURCES            = hildon-note/hildon-note-example.c
+hildon_note_example_SOURCES            = hildon-note-example.c
 
 # Hildon color chppser example
 hildon_color_chooser_example_LDADD     = $(HILDON_OBJ_LIBS)
 hildon_color_chooser_example_CFLAGS    = $(HILDON_OBJ_CFLAGS)
-hildon_color_chooser_example_SOURCES   = hildon-color-chooser/hildon-color-chooser-example.c
+hildon_color_chooser_example_SOURCES   = hildon-color-chooser-example.c
 
 # Hildon color button example
 hildon_color_button_example_LDADD      = $(HILDON_OBJ_LIBS)
 hildon_color_button_example_CFLAGS     = $(HILDON_OBJ_CFLAGS)
-hildon_color_button_example_SOURCES    = hildon-color-button/hildon-color-button-example.c
+hildon_color_button_example_SOURCES    = hildon-color-button-example.c
 
 endif
diff --git a/examples/hildon-banner-example.c b/examples/hildon-banner-example.c
new file mode 100644 (file)
index 0000000..c722c49
--- /dev/null
@@ -0,0 +1,104 @@
+/*
+ * This file is a part of hildon examples
+ *
+ * Copyright (C) 2005, 2006 Nokia Corporation, all rights reserved.
+ *
+ * Author: Michael Dominic Kostrzewa <michael.kostrzewa@nokia.com>
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public License
+ * as published by the Free Software Foundation; version 2.1 of
+ * the License.
+ *
+ * This library is distributed in the hope that it will be useful, but
+ * WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA
+ *
+ */
+
+#include                                        <stdio.h>
+#include                                        <stdlib.h>
+#include                                        <glib.h>
+#include                                        <gtk/gtk.h>
+#include                                        "hildon.h"
+
+static gboolean
+on_animation_idle                               (GtkWidget *banner)
+{
+    gtk_widget_destroy (banner);
+    return FALSE;
+}
+
+static gboolean
+on_progress_idle                                (GtkWidget *banner)
+{
+    gtk_widget_destroy (banner);
+    return FALSE;
+}
+
+static gboolean
+on_information_clicked                          (GtkWidget *widget)
+{
+    hildon_banner_show_information (widget, NULL, "Information banner"); 
+    return TRUE;
+}
+
+static gboolean
+on_animation_clicked                            (GtkWidget *widget)
+{
+    GtkWidget *banner = hildon_banner_show_animation (widget, NULL, "Animation banner"); 
+    g_timeout_add (2000, (gpointer) on_animation_idle, banner);
+    return TRUE;
+}
+
+static gboolean
+on_progress_clicked                             (GtkWidget *widget)
+{
+    GtkWidget *banner = hildon_banner_show_progress (widget, NULL, "Progress banner"); 
+    g_timeout_add (2000, (gpointer) on_progress_idle, banner);
+    return TRUE;
+}
+
+int
+main                                            (int argc, 
+                                                 char **args)
+{
+    gtk_init (&argc, &args);
+    
+    HildonProgram *program = hildon_program_get_instance ();
+
+    GtkWidget *window = hildon_window_new ();
+    hildon_program_add_window (program, HILDON_WINDOW (window));    
+
+    gtk_container_set_border_width (GTK_CONTAINER (window), 6);
+
+    GtkVBox *vbox = GTK_VBOX (gtk_vbox_new (6, FALSE));
+    GtkButton *button1 = GTK_BUTTON (gtk_button_new_with_label ("Information"));
+    g_signal_connect (G_OBJECT (button1), "clicked", G_CALLBACK (on_information_clicked), NULL);
+
+    GtkButton *button2 = GTK_BUTTON (gtk_button_new_with_label ("Animation"));
+    g_signal_connect (G_OBJECT (button2), "clicked", G_CALLBACK (on_animation_clicked), NULL);
+
+    GtkButton *button3 = GTK_BUTTON (gtk_button_new_with_label ("Progress"));
+    g_signal_connect (G_OBJECT (button3), "clicked", G_CALLBACK (on_progress_clicked), NULL);
+
+    g_signal_connect (G_OBJECT (window), "delete_event", G_CALLBACK (gtk_main_quit), NULL);
+
+    gtk_box_pack_start (GTK_BOX (vbox), GTK_WIDGET (button1), TRUE, TRUE, 0);
+    gtk_box_pack_start (GTK_BOX (vbox), GTK_WIDGET (button2), TRUE, TRUE, 0);
+    gtk_box_pack_start (GTK_BOX (vbox), GTK_WIDGET (button3), TRUE, TRUE, 0);
+    gtk_container_add (GTK_CONTAINER (window), GTK_WIDGET (vbox));
+
+    gtk_widget_show_all (GTK_WIDGET (window));
+    
+    gtk_main ();
+    return 0;
+}
+
+
diff --git a/examples/hildon-banner/hildon-banner-example.c b/examples/hildon-banner/hildon-banner-example.c
deleted file mode 100644 (file)
index c722c49..0000000
+++ /dev/null
@@ -1,104 +0,0 @@
-/*
- * This file is a part of hildon examples
- *
- * Copyright (C) 2005, 2006 Nokia Corporation, all rights reserved.
- *
- * Author: Michael Dominic Kostrzewa <michael.kostrzewa@nokia.com>
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public License
- * as published by the Free Software Foundation; version 2.1 of
- * the License.
- *
- * This library is distributed in the hope that it will be useful, but
- * WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA
- *
- */
-
-#include                                        <stdio.h>
-#include                                        <stdlib.h>
-#include                                        <glib.h>
-#include                                        <gtk/gtk.h>
-#include                                        "hildon.h"
-
-static gboolean
-on_animation_idle                               (GtkWidget *banner)
-{
-    gtk_widget_destroy (banner);
-    return FALSE;
-}
-
-static gboolean
-on_progress_idle                                (GtkWidget *banner)
-{
-    gtk_widget_destroy (banner);
-    return FALSE;
-}
-
-static gboolean
-on_information_clicked                          (GtkWidget *widget)
-{
-    hildon_banner_show_information (widget, NULL, "Information banner"); 
-    return TRUE;
-}
-
-static gboolean
-on_animation_clicked                            (GtkWidget *widget)
-{
-    GtkWidget *banner = hildon_banner_show_animation (widget, NULL, "Animation banner"); 
-    g_timeout_add (2000, (gpointer) on_animation_idle, banner);
-    return TRUE;
-}
-
-static gboolean
-on_progress_clicked                             (GtkWidget *widget)
-{
-    GtkWidget *banner = hildon_banner_show_progress (widget, NULL, "Progress banner"); 
-    g_timeout_add (2000, (gpointer) on_progress_idle, banner);
-    return TRUE;
-}
-
-int
-main                                            (int argc, 
-                                                 char **args)
-{
-    gtk_init (&argc, &args);
-    
-    HildonProgram *program = hildon_program_get_instance ();
-
-    GtkWidget *window = hildon_window_new ();
-    hildon_program_add_window (program, HILDON_WINDOW (window));    
-
-    gtk_container_set_border_width (GTK_CONTAINER (window), 6);
-
-    GtkVBox *vbox = GTK_VBOX (gtk_vbox_new (6, FALSE));
-    GtkButton *button1 = GTK_BUTTON (gtk_button_new_with_label ("Information"));
-    g_signal_connect (G_OBJECT (button1), "clicked", G_CALLBACK (on_information_clicked), NULL);
-
-    GtkButton *button2 = GTK_BUTTON (gtk_button_new_with_label ("Animation"));
-    g_signal_connect (G_OBJECT (button2), "clicked", G_CALLBACK (on_animation_clicked), NULL);
-
-    GtkButton *button3 = GTK_BUTTON (gtk_button_new_with_label ("Progress"));
-    g_signal_connect (G_OBJECT (button3), "clicked", G_CALLBACK (on_progress_clicked), NULL);
-
-    g_signal_connect (G_OBJECT (window), "delete_event", G_CALLBACK (gtk_main_quit), NULL);
-
-    gtk_box_pack_start (GTK_BOX (vbox), GTK_WIDGET (button1), TRUE, TRUE, 0);
-    gtk_box_pack_start (GTK_BOX (vbox), GTK_WIDGET (button2), TRUE, TRUE, 0);
-    gtk_box_pack_start (GTK_BOX (vbox), GTK_WIDGET (button3), TRUE, TRUE, 0);
-    gtk_container_add (GTK_CONTAINER (window), GTK_WIDGET (vbox));
-
-    gtk_widget_show_all (GTK_WIDGET (window));
-    
-    gtk_main ();
-    return 0;
-}
-
-
diff --git a/examples/hildon-caption-example.c b/examples/hildon-caption-example.c
new file mode 100644 (file)
index 0000000..2d8b5b8
--- /dev/null
@@ -0,0 +1,63 @@
+/*
+ * This file is a part of hildon examples
+ *
+ * Copyright (C) 2005, 2006 Nokia Corporation, all rights reserved.
+ *
+ * Author: Michael Dominic Kostrzewa <michael.kostrzewa@nokia.com>
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public License
+ * as published by the Free Software Foundation; version 2.1 of
+ * the License.
+ *
+ * This library is distributed in the hope that it will be useful, but
+ * WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA
+ *
+ */
+
+#include                                        <stdio.h>
+#include                                        <stdlib.h>
+#include                                        <glib.h>
+#include                                        <gtk/gtk.h>
+#include                                        "hildon.h"
+
+int
+main                                            (int argc, 
+                                                 char **args)
+{
+    gtk_init (&argc, &args);
+    
+    GtkDialog *dialog = GTK_DIALOG (gtk_dialog_new ());
+
+    GtkSizeGroup *size_group = gtk_size_group_new (GTK_SIZE_GROUP_HORIZONTAL);
+
+    GtkWidget *caption1 = hildon_caption_new (size_group, "Caption std", gtk_entry_new (), 
+                                              NULL, 0);
+    GtkWidget *caption2 = hildon_caption_new (size_group, "Caption left", gtk_entry_new (), 
+                                              gtk_image_new_from_stock (GTK_STOCK_OK, GTK_ICON_SIZE_BUTTON), 0);
+    GtkWidget *caption3 = hildon_caption_new (size_group, "Caption right", gtk_entry_new (), 
+                                              gtk_image_new_from_stock (GTK_STOCK_OK, GTK_ICON_SIZE_BUTTON), 0);
+
+    hildon_caption_set_icon_position (HILDON_CAPTION (caption2), HILDON_CAPTION_POSITION_LEFT);
+    hildon_caption_set_icon_position (HILDON_CAPTION (caption3), HILDON_CAPTION_POSITION_RIGHT);
+    
+    gtk_box_pack_start (GTK_BOX (dialog->vbox), caption1, FALSE, FALSE, 0);
+    gtk_box_pack_start (GTK_BOX (dialog->vbox), caption2, FALSE, FALSE, 0);
+    gtk_box_pack_start (GTK_BOX (dialog->vbox), caption3, FALSE, FALSE, 0);
+
+    gtk_dialog_add_button (dialog, "Close", GTK_RESPONSE_CLOSE);
+
+    gtk_widget_show_all (GTK_WIDGET (dialog));
+    gtk_dialog_run (dialog);
+    
+    return 0;
+}
+
+
diff --git a/examples/hildon-caption/hildon-caption-example.c b/examples/hildon-caption/hildon-caption-example.c
deleted file mode 100644 (file)
index 2d8b5b8..0000000
+++ /dev/null
@@ -1,63 +0,0 @@
-/*
- * This file is a part of hildon examples
- *
- * Copyright (C) 2005, 2006 Nokia Corporation, all rights reserved.
- *
- * Author: Michael Dominic Kostrzewa <michael.kostrzewa@nokia.com>
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public License
- * as published by the Free Software Foundation; version 2.1 of
- * the License.
- *
- * This library is distributed in the hope that it will be useful, but
- * WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA
- *
- */
-
-#include                                        <stdio.h>
-#include                                        <stdlib.h>
-#include                                        <glib.h>
-#include                                        <gtk/gtk.h>
-#include                                        "hildon.h"
-
-int
-main                                            (int argc, 
-                                                 char **args)
-{
-    gtk_init (&argc, &args);
-    
-    GtkDialog *dialog = GTK_DIALOG (gtk_dialog_new ());
-
-    GtkSizeGroup *size_group = gtk_size_group_new (GTK_SIZE_GROUP_HORIZONTAL);
-
-    GtkWidget *caption1 = hildon_caption_new (size_group, "Caption std", gtk_entry_new (), 
-                                              NULL, 0);
-    GtkWidget *caption2 = hildon_caption_new (size_group, "Caption left", gtk_entry_new (), 
-                                              gtk_image_new_from_stock (GTK_STOCK_OK, GTK_ICON_SIZE_BUTTON), 0);
-    GtkWidget *caption3 = hildon_caption_new (size_group, "Caption right", gtk_entry_new (), 
-                                              gtk_image_new_from_stock (GTK_STOCK_OK, GTK_ICON_SIZE_BUTTON), 0);
-
-    hildon_caption_set_icon_position (HILDON_CAPTION (caption2), HILDON_CAPTION_POSITION_LEFT);
-    hildon_caption_set_icon_position (HILDON_CAPTION (caption3), HILDON_CAPTION_POSITION_RIGHT);
-    
-    gtk_box_pack_start (GTK_BOX (dialog->vbox), caption1, FALSE, FALSE, 0);
-    gtk_box_pack_start (GTK_BOX (dialog->vbox), caption2, FALSE, FALSE, 0);
-    gtk_box_pack_start (GTK_BOX (dialog->vbox), caption3, FALSE, FALSE, 0);
-
-    gtk_dialog_add_button (dialog, "Close", GTK_RESPONSE_CLOSE);
-
-    gtk_widget_show_all (GTK_WIDGET (dialog));
-    gtk_dialog_run (dialog);
-    
-    return 0;
-}
-
-
diff --git a/examples/hildon-color-button-example.c b/examples/hildon-color-button-example.c
new file mode 100644 (file)
index 0000000..e534934
--- /dev/null
@@ -0,0 +1,54 @@
+/*
+ * This file is a part of hildon examples
+ *
+ * Copyright (C) 2005, 2006 Nokia Corporation, all rights reserved.
+ *
+ * Author: Michael Dominic Kostrzewa <michael.kostrzewa@nokia.com>
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public License
+ * as published by the Free Software Foundation; version 2.1 of
+ * the License.
+ *
+ * This library is distributed in the hope that it will be useful, but
+ * WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA
+ *
+ */
+
+#include                                        <stdio.h>
+#include                                        <stdlib.h>
+#include                                        <glib.h>
+#include                                        <gtk/gtk.h>
+#include                                        "hildon.h"
+
+int
+main                                            (int argc, 
+                                                 char **args)
+{
+    gtk_init (&argc, &args);
+    
+    GtkDialog *dialog = GTK_DIALOG (gtk_dialog_new ());
+    GtkWidget *button = hildon_color_button_new ();
+    GtkWidget *label = gtk_label_new ("Pick the color:");
+    GtkWidget *hbox = gtk_hbox_new (FALSE, 12);
+
+    gtk_box_pack_start (GTK_BOX (hbox), label, TRUE, TRUE, 0);
+    gtk_box_pack_start (GTK_BOX (hbox), button, FALSE, FALSE, 0);
+    gtk_box_pack_start (GTK_BOX (dialog->vbox), hbox, TRUE, TRUE, 0);
+
+    gtk_dialog_add_button (dialog, "Close", GTK_RESPONSE_CLOSE);
+
+    gtk_widget_show_all (GTK_WIDGET (dialog));
+    gtk_dialog_run (dialog);
+    
+    return 0;
+}
+
+
diff --git a/examples/hildon-color-button/hildon-color-button-example.c b/examples/hildon-color-button/hildon-color-button-example.c
deleted file mode 100644 (file)
index e534934..0000000
+++ /dev/null
@@ -1,54 +0,0 @@
-/*
- * This file is a part of hildon examples
- *
- * Copyright (C) 2005, 2006 Nokia Corporation, all rights reserved.
- *
- * Author: Michael Dominic Kostrzewa <michael.kostrzewa@nokia.com>
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public License
- * as published by the Free Software Foundation; version 2.1 of
- * the License.
- *
- * This library is distributed in the hope that it will be useful, but
- * WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA
- *
- */
-
-#include                                        <stdio.h>
-#include                                        <stdlib.h>
-#include                                        <glib.h>
-#include                                        <gtk/gtk.h>
-#include                                        "hildon.h"
-
-int
-main                                            (int argc, 
-                                                 char **args)
-{
-    gtk_init (&argc, &args);
-    
-    GtkDialog *dialog = GTK_DIALOG (gtk_dialog_new ());
-    GtkWidget *button = hildon_color_button_new ();
-    GtkWidget *label = gtk_label_new ("Pick the color:");
-    GtkWidget *hbox = gtk_hbox_new (FALSE, 12);
-
-    gtk_box_pack_start (GTK_BOX (hbox), label, TRUE, TRUE, 0);
-    gtk_box_pack_start (GTK_BOX (hbox), button, FALSE, FALSE, 0);
-    gtk_box_pack_start (GTK_BOX (dialog->vbox), hbox, TRUE, TRUE, 0);
-
-    gtk_dialog_add_button (dialog, "Close", GTK_RESPONSE_CLOSE);
-
-    gtk_widget_show_all (GTK_WIDGET (dialog));
-    gtk_dialog_run (dialog);
-    
-    return 0;
-}
-
-
diff --git a/examples/hildon-color-chooser-example.c b/examples/hildon-color-chooser-example.c
new file mode 100644 (file)
index 0000000..a343790
--- /dev/null
@@ -0,0 +1,50 @@
+/*
+ * This file is a part of hildon examples
+ *
+ * Copyright (C) 2005, 2006 Nokia Corporation, all rights reserved.
+ *
+ * Author: Michael Dominic Kostrzewa <michael.kostrzewa@nokia.com>
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public License
+ * as published by the Free Software Foundation; version 2.1 of
+ * the License.
+ *
+ * This library is distributed in the hope that it will be useful, but
+ * WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA
+ *
+ */
+
+#include                                        <stdio.h>
+#include                                        <stdlib.h>
+#include                                        <glib.h>
+#include                                        <gtk/gtk.h>
+#include                                        "hildon.h"
+
+int
+main                                            (int argc, 
+                                                 char **args)
+{
+    gtk_init (&argc, &args);
+    
+    GtkDialog *dialog = GTK_DIALOG (gtk_dialog_new ());
+    GtkWidget *chooser = hildon_color_chooser_new ();
+
+    gtk_box_pack_start (GTK_BOX (dialog->vbox), chooser, TRUE, TRUE, 0);
+
+    gtk_dialog_add_button (dialog, "Close", GTK_RESPONSE_CLOSE);
+
+    gtk_widget_show_all (GTK_WIDGET (dialog));
+    gtk_dialog_run (dialog);
+    
+    return 0;
+}
+
+
diff --git a/examples/hildon-color-chooser/hildon-color-chooser-example.c b/examples/hildon-color-chooser/hildon-color-chooser-example.c
deleted file mode 100644 (file)
index a343790..0000000
+++ /dev/null
@@ -1,50 +0,0 @@
-/*
- * This file is a part of hildon examples
- *
- * Copyright (C) 2005, 2006 Nokia Corporation, all rights reserved.
- *
- * Author: Michael Dominic Kostrzewa <michael.kostrzewa@nokia.com>
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public License
- * as published by the Free Software Foundation; version 2.1 of
- * the License.
- *
- * This library is distributed in the hope that it will be useful, but
- * WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA
- *
- */
-
-#include                                        <stdio.h>
-#include                                        <stdlib.h>
-#include                                        <glib.h>
-#include                                        <gtk/gtk.h>
-#include                                        "hildon.h"
-
-int
-main                                            (int argc, 
-                                                 char **args)
-{
-    gtk_init (&argc, &args);
-    
-    GtkDialog *dialog = GTK_DIALOG (gtk_dialog_new ());
-    GtkWidget *chooser = hildon_color_chooser_new ();
-
-    gtk_box_pack_start (GTK_BOX (dialog->vbox), chooser, TRUE, TRUE, 0);
-
-    gtk_dialog_add_button (dialog, "Close", GTK_RESPONSE_CLOSE);
-
-    gtk_widget_show_all (GTK_WIDGET (dialog));
-    gtk_dialog_run (dialog);
-    
-    return 0;
-}
-
-
diff --git a/examples/hildon-controlbar-example.c b/examples/hildon-controlbar-example.c
new file mode 100644 (file)
index 0000000..1b6a378
--- /dev/null
@@ -0,0 +1,56 @@
+/*
+ * This file is a part of hildon examples
+ *
+ * Copyright (C) 2005, 2006 Nokia Corporation, all rights reserved.
+ *
+ * Author: Michael Dominic Kostrzewa <michael.kostrzewa@nokia.com>
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public License
+ * as published by the Free Software Foundation; version 2.1 of
+ * the License.
+ *
+ * This library is distributed in the hope that it will be useful, but
+ * WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA
+ *
+ */
+
+#include                                        <stdio.h>
+#include                                        <stdlib.h>
+#include                                        <glib.h>
+#include                                        <gtk/gtk.h>
+#include                                        "hildon.h"
+
+int
+main                                            (int argc, 
+                                                 char **args)
+{
+    gtk_init (&argc, &args);
+    
+    HildonProgram *program = hildon_program_get_instance ();
+
+    GtkWidget *window = hildon_window_new ();
+    hildon_program_add_window (program, HILDON_WINDOW (window));    
+
+    gtk_container_set_border_width (GTK_CONTAINER (window), 6);
+    
+    HildonControlbar *bar = HILDON_CONTROLBAR (hildon_controlbar_new ());
+    hildon_controlbar_set_range (bar, 20, 120);
+    hildon_controlbar_set_value (bar, 100);
+
+    g_signal_connect (G_OBJECT (window), "delete_event", G_CALLBACK (gtk_main_quit), NULL);
+    gtk_container_add (GTK_CONTAINER (window), GTK_WIDGET (bar));
+    gtk_widget_show_all (GTK_WIDGET (window));
+    
+    gtk_main ();
+    return 0;
+}
+
+
diff --git a/examples/hildon-controlbar/hildon-controlbar-example.c b/examples/hildon-controlbar/hildon-controlbar-example.c
deleted file mode 100644 (file)
index 1b6a378..0000000
+++ /dev/null
@@ -1,56 +0,0 @@
-/*
- * This file is a part of hildon examples
- *
- * Copyright (C) 2005, 2006 Nokia Corporation, all rights reserved.
- *
- * Author: Michael Dominic Kostrzewa <michael.kostrzewa@nokia.com>
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public License
- * as published by the Free Software Foundation; version 2.1 of
- * the License.
- *
- * This library is distributed in the hope that it will be useful, but
- * WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA
- *
- */
-
-#include                                        <stdio.h>
-#include                                        <stdlib.h>
-#include                                        <glib.h>
-#include                                        <gtk/gtk.h>
-#include                                        "hildon.h"
-
-int
-main                                            (int argc, 
-                                                 char **args)
-{
-    gtk_init (&argc, &args);
-    
-    HildonProgram *program = hildon_program_get_instance ();
-
-    GtkWidget *window = hildon_window_new ();
-    hildon_program_add_window (program, HILDON_WINDOW (window));    
-
-    gtk_container_set_border_width (GTK_CONTAINER (window), 6);
-    
-    HildonControlbar *bar = HILDON_CONTROLBAR (hildon_controlbar_new ());
-    hildon_controlbar_set_range (bar, 20, 120);
-    hildon_controlbar_set_value (bar, 100);
-
-    g_signal_connect (G_OBJECT (window), "delete_event", G_CALLBACK (gtk_main_quit), NULL);
-    gtk_container_add (GTK_CONTAINER (window), GTK_WIDGET (bar));
-    gtk_widget_show_all (GTK_WIDGET (window));
-    
-    gtk_main ();
-    return 0;
-}
-
-
diff --git a/examples/hildon-note-example.c b/examples/hildon-note-example.c
new file mode 100644 (file)
index 0000000..398bc50
--- /dev/null
@@ -0,0 +1,108 @@
+/*
+ * This file is a part of hildon examples
+ *
+ * Copyright (C) 2005, 2006 Nokia Corporation, all rights reserved.
+ *
+ * Author: Michael Dominic Kostrzewa <michael.kostrzewa@nokia.com>
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public License
+ * as published by the Free Software Foundation; version 2.1 of
+ * the License.
+ *
+ * This library is distributed in the hope that it will be useful, but
+ * WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA
+ *
+ */
+
+#include                                        <stdio.h>
+#include                                        <stdlib.h>
+#include                                        <glib.h>
+#include                                        <gtk/gtk.h>
+#include                                        "hildon.h"
+
+static gboolean
+on_information_clicked                          (GtkWidget *widget)
+{
+    HildonNote* note = HILDON_NOTE (hildon_note_new_information (NULL, 
+            "This is a really really really long text that should " 
+            "get wrapped but never truncated because truncating stuff "
+            "automatically is really really bad! Blah blah blah!"));
+
+    gtk_dialog_run (GTK_DIALOG (note));
+    gtk_object_destroy (GTK_OBJECT (note));
+    
+    return TRUE;
+}
+
+static gboolean
+on_confirmation_clicked                         (GtkWidget *widget)
+{
+    HildonNote* note = HILDON_NOTE (hildon_note_new_confirmation (NULL, 
+            "Do you want to confirm?!"));
+
+    gtk_dialog_run (GTK_DIALOG (note));
+    gtk_object_destroy (GTK_OBJECT (note));
+    
+    return TRUE;
+}
+
+static gboolean
+on_progress_clicked                             (GtkWidget *widget)
+{
+    GtkProgressBar *bar = GTK_PROGRESS_BAR (gtk_progress_bar_new ());
+    HildonNote *note = HILDON_NOTE (hildon_note_new_cancel_with_progress_bar (NULL, 
+                "Do you want to foo bar?", bar));
+
+    gtk_dialog_run (GTK_DIALOG (note));
+    gtk_object_destroy (GTK_OBJECT (note));
+
+    return TRUE;
+}
+
+int
+main                                            (int argc, 
+                                                 char **args)
+{
+    gtk_init (&argc, &args);
+    
+    HildonProgram *program = hildon_program_get_instance ();
+
+    GtkWidget *window = hildon_window_new ();
+    hildon_program_add_window (program, HILDON_WINDOW (window));    
+
+    gtk_container_set_border_width (GTK_CONTAINER (window), 6);
+
+    GtkVBox *vbox = GTK_VBOX (gtk_vbox_new (6, FALSE));
+    GtkButton *button1 = GTK_BUTTON (gtk_button_new_with_label ("Information note"));
+    g_signal_connect (G_OBJECT (button1), "clicked", G_CALLBACK (on_information_clicked), NULL);
+
+    GtkButton *button2 = GTK_BUTTON (gtk_button_new_with_label ("Confirmation note"));
+    g_signal_connect (G_OBJECT (button2), "clicked", G_CALLBACK (on_confirmation_clicked), NULL);
+
+    GtkButton *button3 = GTK_BUTTON (gtk_button_new_with_label ("Progress note"));
+    g_signal_connect (G_OBJECT (button3), "clicked", G_CALLBACK (on_progress_clicked), NULL);
+
+    g_signal_connect (G_OBJECT (window), "delete_event", G_CALLBACK (gtk_main_quit), NULL);
+
+    gtk_box_pack_start (GTK_BOX (vbox), GTK_WIDGET (button1), TRUE, TRUE, 0);
+    gtk_box_pack_start (GTK_BOX (vbox), GTK_WIDGET (button2), TRUE, TRUE, 0);
+    gtk_box_pack_start (GTK_BOX (vbox), GTK_WIDGET (button3), TRUE, TRUE, 0);
+
+    gtk_container_add (GTK_CONTAINER (window), GTK_WIDGET (vbox));
+
+    gtk_widget_show_all (GTK_WIDGET (window));
+    
+    gtk_main ();
+
+    return 0;
+}
+
+
diff --git a/examples/hildon-note/hildon-note-example.c b/examples/hildon-note/hildon-note-example.c
deleted file mode 100644 (file)
index 398bc50..0000000
+++ /dev/null
@@ -1,108 +0,0 @@
-/*
- * This file is a part of hildon examples
- *
- * Copyright (C) 2005, 2006 Nokia Corporation, all rights reserved.
- *
- * Author: Michael Dominic Kostrzewa <michael.kostrzewa@nokia.com>
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public License
- * as published by the Free Software Foundation; version 2.1 of
- * the License.
- *
- * This library is distributed in the hope that it will be useful, but
- * WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA
- *
- */
-
-#include                                        <stdio.h>
-#include                                        <stdlib.h>
-#include                                        <glib.h>
-#include                                        <gtk/gtk.h>
-#include                                        "hildon.h"
-
-static gboolean
-on_information_clicked                          (GtkWidget *widget)
-{
-    HildonNote* note = HILDON_NOTE (hildon_note_new_information (NULL, 
-            "This is a really really really long text that should " 
-            "get wrapped but never truncated because truncating stuff "
-            "automatically is really really bad! Blah blah blah!"));
-
-    gtk_dialog_run (GTK_DIALOG (note));
-    gtk_object_destroy (GTK_OBJECT (note));
-    
-    return TRUE;
-}
-
-static gboolean
-on_confirmation_clicked                         (GtkWidget *widget)
-{
-    HildonNote* note = HILDON_NOTE (hildon_note_new_confirmation (NULL, 
-            "Do you want to confirm?!"));
-
-    gtk_dialog_run (GTK_DIALOG (note));
-    gtk_object_destroy (GTK_OBJECT (note));
-    
-    return TRUE;
-}
-
-static gboolean
-on_progress_clicked                             (GtkWidget *widget)
-{
-    GtkProgressBar *bar = GTK_PROGRESS_BAR (gtk_progress_bar_new ());
-    HildonNote *note = HILDON_NOTE (hildon_note_new_cancel_with_progress_bar (NULL, 
-                "Do you want to foo bar?", bar));
-
-    gtk_dialog_run (GTK_DIALOG (note));
-    gtk_object_destroy (GTK_OBJECT (note));
-
-    return TRUE;
-}
-
-int
-main                                            (int argc, 
-                                                 char **args)
-{
-    gtk_init (&argc, &args);
-    
-    HildonProgram *program = hildon_program_get_instance ();
-
-    GtkWidget *window = hildon_window_new ();
-    hildon_program_add_window (program, HILDON_WINDOW (window));    
-
-    gtk_container_set_border_width (GTK_CONTAINER (window), 6);
-
-    GtkVBox *vbox = GTK_VBOX (gtk_vbox_new (6, FALSE));
-    GtkButton *button1 = GTK_BUTTON (gtk_button_new_with_label ("Information note"));
-    g_signal_connect (G_OBJECT (button1), "clicked", G_CALLBACK (on_information_clicked), NULL);
-
-    GtkButton *button2 = GTK_BUTTON (gtk_button_new_with_label ("Confirmation note"));
-    g_signal_connect (G_OBJECT (button2), "clicked", G_CALLBACK (on_confirmation_clicked), NULL);
-
-    GtkButton *button3 = GTK_BUTTON (gtk_button_new_with_label ("Progress note"));
-    g_signal_connect (G_OBJECT (button3), "clicked", G_CALLBACK (on_progress_clicked), NULL);
-
-    g_signal_connect (G_OBJECT (window), "delete_event", G_CALLBACK (gtk_main_quit), NULL);
-
-    gtk_box_pack_start (GTK_BOX (vbox), GTK_WIDGET (button1), TRUE, TRUE, 0);
-    gtk_box_pack_start (GTK_BOX (vbox), GTK_WIDGET (button2), TRUE, TRUE, 0);
-    gtk_box_pack_start (GTK_BOX (vbox), GTK_WIDGET (button3), TRUE, TRUE, 0);
-
-    gtk_container_add (GTK_CONTAINER (window), GTK_WIDGET (vbox));
-
-    gtk_widget_show_all (GTK_WIDGET (window));
-    
-    gtk_main ();
-
-    return 0;
-}
-
-
diff --git a/examples/hildon-sort-dialog-example.c b/examples/hildon-sort-dialog-example.c
new file mode 100644 (file)
index 0000000..e80b82b
--- /dev/null
@@ -0,0 +1,47 @@
+/*
+ * This file is a part of hildon examples
+ *
+ * Copyright (C) 2005, 2006 Nokia Corporation, all rights reserved.
+ *
+ * Author: Michael Dominic Kostrzewa <michael.kostrzewa@nokia.com>
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public License
+ * as published by the Free Software Foundation; version 2.1 of
+ * the License.
+ *
+ * This library is distributed in the hope that it will be useful, but
+ * WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA
+ *
+ */
+
+#include                                        <stdio.h>
+#include                                        <stdlib.h>
+#include                                        <glib.h>
+#include                                        <gtk/gtk.h>
+#include                                        "hildon.h"
+
+int
+main (int argc, char **args)
+{
+    gtk_init (&argc, &args);
+    
+    GtkDialog *dialog = GTK_DIALOG (hildon_sort_dialog_new (NULL));
+
+    hildon_sort_dialog_add_sort_key (HILDON_SORT_DIALOG (dialog), "First key");
+    hildon_sort_dialog_add_sort_key_reversed (HILDON_SORT_DIALOG (dialog), "Second, key");
+
+    gtk_widget_show_all (GTK_WIDGET (dialog));
+    gtk_dialog_run (dialog);
+    
+    return 0;
+}
+
+
diff --git a/examples/hildon-sort-dialog/hildon-sort-dialog-example.c b/examples/hildon-sort-dialog/hildon-sort-dialog-example.c
deleted file mode 100644 (file)
index e80b82b..0000000
+++ /dev/null
@@ -1,47 +0,0 @@
-/*
- * This file is a part of hildon examples
- *
- * Copyright (C) 2005, 2006 Nokia Corporation, all rights reserved.
- *
- * Author: Michael Dominic Kostrzewa <michael.kostrzewa@nokia.com>
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public License
- * as published by the Free Software Foundation; version 2.1 of
- * the License.
- *
- * This library is distributed in the hope that it will be useful, but
- * WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA
- *
- */
-
-#include                                        <stdio.h>
-#include                                        <stdlib.h>
-#include                                        <glib.h>
-#include                                        <gtk/gtk.h>
-#include                                        "hildon.h"
-
-int
-main (int argc, char **args)
-{
-    gtk_init (&argc, &args);
-    
-    GtkDialog *dialog = GTK_DIALOG (hildon_sort_dialog_new (NULL));
-
-    hildon_sort_dialog_add_sort_key (HILDON_SORT_DIALOG (dialog), "First key");
-    hildon_sort_dialog_add_sort_key_reversed (HILDON_SORT_DIALOG (dialog), "Second, key");
-
-    gtk_widget_show_all (GTK_WIDGET (dialog));
-    gtk_dialog_run (dialog);
-    
-    return 0;
-}
-
-
diff --git a/examples/hildon-time-picker-example.c b/examples/hildon-time-picker-example.c
new file mode 100644 (file)
index 0000000..a2d512b
--- /dev/null
@@ -0,0 +1,44 @@
+/*
+ * This file is a part of hildon examples
+ *
+ * Copyright (C) 2005, 2006 Nokia Corporation, all rights reserved.
+ *
+ * Author: Michael Dominic Kostrzewa <michael.kostrzewa@nokia.com>
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public License
+ * as published by the Free Software Foundation; version 2.1 of
+ * the License.
+ *
+ * This library is distributed in the hope that it will be useful, but
+ * WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA
+ *
+ */
+
+#include                                        <stdio.h>
+#include                                        <stdlib.h>
+#include                                        <glib.h>
+#include                                        <gtk/gtk.h>
+#include                                        "hildon.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;
+}
+
diff --git a/examples/hildon-time-picker/hildon-time-picker-example.c b/examples/hildon-time-picker/hildon-time-picker-example.c
deleted file mode 100644 (file)
index a2d512b..0000000
+++ /dev/null
@@ -1,44 +0,0 @@
-/*
- * This file is a part of hildon examples
- *
- * Copyright (C) 2005, 2006 Nokia Corporation, all rights reserved.
- *
- * Author: Michael Dominic Kostrzewa <michael.kostrzewa@nokia.com>
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public License
- * as published by the Free Software Foundation; version 2.1 of
- * the License.
- *
- * This library is distributed in the hope that it will be useful, but
- * WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA
- *
- */
-
-#include                                        <stdio.h>
-#include                                        <stdlib.h>
-#include                                        <glib.h>
-#include                                        <gtk/gtk.h>
-#include                                        "hildon.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;
-}
-
diff --git a/examples/hildon-weekday-picker-example.c b/examples/hildon-weekday-picker-example.c
new file mode 100644 (file)
index 0000000..754bcb2
--- /dev/null
@@ -0,0 +1,51 @@
+/*
+ * This file is a part of hildon examples
+ *
+ * Copyright (C) 2005, 2006 Nokia Corporation, all rights reserved.
+ *
+ * Author: Michael Dominic Kostrzewa <michael.kostrzewa@nokia.com>
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public License
+ * as published by the Free Software Foundation; version 2.1 of
+ * the License.
+ *
+ * This library is distributed in the hope that it will be useful, but
+ * WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA
+ *
+ */
+
+#include                                        <stdio.h>
+#include                                        <stdlib.h>
+#include                                        <glib.h>
+#include                                        <gtk/gtk.h>
+#include                                        "hildon.h"
+
+int
+main                                            (int argc, 
+                                                 char **args)
+{
+    gtk_init (&argc, &args);
+    
+    GtkDialog *dialog = GTK_DIALOG (gtk_dialog_new ());
+
+    GtkWidget *picker = hildon_weekday_picker_new ();
+
+    gtk_box_pack_start (GTK_BOX (dialog->vbox), picker, TRUE, TRUE, 0);
+
+    gtk_dialog_add_button (dialog, "Close", GTK_RESPONSE_CLOSE);
+
+    gtk_widget_show_all (GTK_WIDGET (dialog));
+    gtk_dialog_run (dialog);
+    
+    return 0;
+}
+
+
diff --git a/examples/hildon-weekday-picker/hildon-weekday-picker-example.c b/examples/hildon-weekday-picker/hildon-weekday-picker-example.c
deleted file mode 100644 (file)
index 754bcb2..0000000
+++ /dev/null
@@ -1,51 +0,0 @@
-/*
- * This file is a part of hildon examples
- *
- * Copyright (C) 2005, 2006 Nokia Corporation, all rights reserved.
- *
- * Author: Michael Dominic Kostrzewa <michael.kostrzewa@nokia.com>
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public License
- * as published by the Free Software Foundation; version 2.1 of
- * the License.
- *
- * This library is distributed in the hope that it will be useful, but
- * WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA
- *
- */
-
-#include                                        <stdio.h>
-#include                                        <stdlib.h>
-#include                                        <glib.h>
-#include                                        <gtk/gtk.h>
-#include                                        "hildon.h"
-
-int
-main                                            (int argc, 
-                                                 char **args)
-{
-    gtk_init (&argc, &args);
-    
-    GtkDialog *dialog = GTK_DIALOG (gtk_dialog_new ());
-
-    GtkWidget *picker = hildon_weekday_picker_new ();
-
-    gtk_box_pack_start (GTK_BOX (dialog->vbox), picker, TRUE, TRUE, 0);
-
-    gtk_dialog_add_button (dialog, "Close", GTK_RESPONSE_CLOSE);
-
-    gtk_widget_show_all (GTK_WIDGET (dialog));
-    gtk_dialog_run (dialog);
-    
-    return 0;
-}
-
-
diff --git a/examples/hildon-window-example.c b/examples/hildon-window-example.c
new file mode 100644 (file)
index 0000000..25dc9bd
--- /dev/null
@@ -0,0 +1,54 @@
+/*
+ * This file is a part of hildon examples
+ *
+ * Copyright (C) 2005, 2006 Nokia Corporation, all rights reserved.
+ *
+ * Author: Michael Dominic Kostrzewa <michael.kostrzewa@nokia.com>
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public License
+ * as published by the Free Software Foundation; version 2.1 of
+ * the License.
+ *
+ * This library is distributed in the hope that it will be useful, but
+ * WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA
+ *
+ */
+
+#include                                        <stdio.h>
+#include                                        <stdlib.h>
+#include                                        <glib.h>
+#include                                        <gtk/gtk.h>
+#include                                        "hildon.h"
+
+int
+main                                            (int argc, 
+                                                 char **args)
+{
+    gtk_init (&argc, &args);
+    
+    HildonProgram *program = hildon_program_get_instance ();
+
+    GtkWidget *window = hildon_window_new ();
+    hildon_program_add_window (program, HILDON_WINDOW (window));    
+
+    gtk_container_set_border_width (GTK_CONTAINER (window), 6);
+    
+    GtkWidget *label = GTK_WIDGET (gtk_label_new ("Hello world!"));
+
+    g_signal_connect (G_OBJECT (window), "delete_event", G_CALLBACK (gtk_main_quit), NULL);
+    gtk_container_add (GTK_CONTAINER (window), label);
+    gtk_widget_show_all (GTK_WIDGET (window));
+    
+    gtk_main ();
+    return 0;
+}
+
+
diff --git a/examples/hildon-window/hildon-window-example.c b/examples/hildon-window/hildon-window-example.c
deleted file mode 100644 (file)
index 25dc9bd..0000000
+++ /dev/null
@@ -1,54 +0,0 @@
-/*
- * This file is a part of hildon examples
- *
- * Copyright (C) 2005, 2006 Nokia Corporation, all rights reserved.
- *
- * Author: Michael Dominic Kostrzewa <michael.kostrzewa@nokia.com>
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public License
- * as published by the Free Software Foundation; version 2.1 of
- * the License.
- *
- * This library is distributed in the hope that it will be useful, but
- * WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA
- *
- */
-
-#include                                        <stdio.h>
-#include                                        <stdlib.h>
-#include                                        <glib.h>
-#include                                        <gtk/gtk.h>
-#include                                        "hildon.h"
-
-int
-main                                            (int argc, 
-                                                 char **args)
-{
-    gtk_init (&argc, &args);
-    
-    HildonProgram *program = hildon_program_get_instance ();
-
-    GtkWidget *window = hildon_window_new ();
-    hildon_program_add_window (program, HILDON_WINDOW (window));    
-
-    gtk_container_set_border_width (GTK_CONTAINER (window), 6);
-    
-    GtkWidget *label = GTK_WIDGET (gtk_label_new ("Hello world!"));
-
-    g_signal_connect (G_OBJECT (window), "delete_event", G_CALLBACK (gtk_main_quit), NULL);
-    gtk_container_add (GTK_CONTAINER (window), label);
-    gtk_widget_show_all (GTK_WIDGET (window));
-    
-    gtk_main ();
-    return 0;
-}
-
-