X-Git-Url: http://git.maemo.org/git/?a=blobdiff_plain;f=examples%2Fhildon-login-dialog-example.c;h=c603ee1f8accfc4dbfde0ce470253efe0f20f774;hb=HEAD;hp=1d43c164a52d05ef2e4c04e9549ed23c8f41cf3d;hpb=693f9bbbbd5d40f3cd4f03da06ceb36973950008;p=hildon diff --git a/examples/hildon-login-dialog-example.c b/examples/hildon-login-dialog-example.c index 1d43c16..c603ee1 100644 --- a/examples/hildon-login-dialog-example.c +++ b/examples/hildon-login-dialog-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,16 +26,16 @@ #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); + GtkDialog *dialog = GTK_DIALOG (hildon_login_dialog_new (NULL)); - + hildon_login_dialog_set_message ((HildonLoginDialog *) dialog, "Enter password to login"); gtk_widget_show_all (GTK_WIDGET (dialog));