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:
# 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
--- /dev/null
+/*
+ * 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;
+}
+
+
+++ /dev/null
-/*
- * 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;
-}
-
-
--- /dev/null
+/*
+ * 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;
+}
+
+
+++ /dev/null
-/*
- * 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;
-}
-
-
--- /dev/null
+/*
+ * 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;
+}
+
+
+++ /dev/null
-/*
- * 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;
-}
-
-
--- /dev/null
+/*
+ * 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;
+}
+
+
+++ /dev/null
-/*
- * 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;
-}
-
-
--- /dev/null
+/*
+ * 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;
+}
+
+
+++ /dev/null
-/*
- * 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;
-}
-
-
--- /dev/null
+/*
+ * 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;
+}
+
+
+++ /dev/null
-/*
- * 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;
-}
-
-
--- /dev/null
+/*
+ * 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;
+}
+
+
+++ /dev/null
-/*
- * 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;
-}
-
-
--- /dev/null
+/*
+ * 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;
+}
+
+++ /dev/null
-/*
- * 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;
-}
-
--- /dev/null
+/*
+ * 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;
+}
+
+
+++ /dev/null
-/*
- * 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;
-}
-
-
--- /dev/null
+/*
+ * 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;
+}
+
+
+++ /dev/null
-/*
- * 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;
-}
-
-