X-Git-Url: https://vcs.maemo.org/git/?a=blobdiff_plain;f=examples%2Fhildon-touch-selector-entry-example.c;h=8f4b0d15214117435c8288e96d96fff5d60952c9;hb=f15ef45b1d98d0dfefebc56619a3454798c66384;hp=0f5388c5e1a82e2b9fc95c2cbfcd2c3ca79fa3d3;hpb=c69f3a13bb949757b1c43e30f6d382e0e1d8d1ab;p=hildon diff --git a/examples/hildon-touch-selector-entry-example.c b/examples/hildon-touch-selector-entry-example.c index 0f5388c..8f4b0d1 100644 --- a/examples/hildon-touch-selector-entry-example.c +++ b/examples/hildon-touch-selector-entry-example.c @@ -18,10 +18,10 @@ * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ -#include -#include +#include +#include -#include "hildon.h" +#include "hildon.h" static const gchar* artists [] = { "AC/DC", @@ -59,7 +59,7 @@ static const gchar* artists [] = { }; int -main (int argc, char **args) +main (int argc, char **argv) { HildonProgram *program = NULL; GtkWidget *window = NULL; @@ -67,12 +67,7 @@ main (int argc, char **args) GtkWidget *selector; gint i; - gtk_init (&argc, &args); - - gtk_rc_parse_string ("style \"fremantle-widget\" {\n" - " GtkWidget::hildon-mode = 1\n" - "} widget \"*.fremantle-widget\" style \"fremantle-widget\"" - "widget_class \"*.GtkTreeView\" style \"fremantle-widget\""); + hildon_gtk_init (&argc, &argv); program = hildon_program_get_instance (); g_set_application_name