X-Git-Url: https://vcs.maemo.org/git/?a=blobdiff_plain;f=examples%2Fhildon-window-example.c;h=b85a37e18771615e72dcfac7aeb3e7cd10720461;hb=b07e68216ad0852021e2bab738db04342427a6ea;hp=25dc9bdf0dc4bd6bd338ded930d1679fc1144bd3;hpb=141ec6aaade8f6bb96efe3e7049947e170773881;p=hildon diff --git a/examples/hildon-window-example.c b/examples/hildon-window-example.c index 25dc9bd..b85a37e 100644 --- a/examples/hildon-window-example.c +++ b/examples/hildon-window-example.c @@ -8,7 +8,7 @@ * 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. + * the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of @@ -26,19 +26,22 @@ #include #include #include -#include "hildon.h" +#include int -main (int argc, - char **args) +main (int argc, + char **argv) { - gtk_init (&argc, &args); - + hildon_gtk_init (&argc, &argv); + HildonProgram *program = hildon_program_get_instance (); GtkWidget *window = hildon_window_new (); hildon_program_add_window (program, HILDON_WINDOW (window)); + gtk_window_set_title (GTK_WINDOW (window), "world"); + g_set_application_name ("hello"); + gtk_container_set_border_width (GTK_CONTAINER (window), 6); GtkWidget *label = GTK_WIDGET (gtk_label_new ("Hello world!"));