Minor style fix for the previous commit
[hildon] / examples / hildon-touch-selector-entry-example.c
index 71d6f3d..8f4b0d1 100644 (file)
  * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  */
 
-#include <glib.h>
-#include <gtk/gtk.h>
+#include                                        <glib.h>
+#include                                        <gtk/gtk.h>
 
-#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,7 +67,7 @@ main (int argc, char **args)
   GtkWidget *selector;
   gint i;
 
-  gtk_init (&argc, &args);
+  hildon_gtk_init (&argc, &argv);
 
   program = hildon_program_get_instance ();
   g_set_application_name
@@ -78,18 +78,7 @@ main (int argc, char **args)
 
   gtk_container_set_border_width (GTK_CONTAINER (window), 6);
 
-  gtk_rc_parse_string ("style \"default\" {\n"
-                       "HildonTouchSelector::horizontal_spacing = 10 \n"
-                       "HildonTouchSelector::vertical_spacing = 20 \n"
-                       "HildonTouchSelector::child_padding=5 \n"
-                       "}\n"
-                       "style \"fremantle-widget\" {\n"
-                       " GtkWidget::hildon-mode = 1 \n"
-                       "} widget \"*.fremantle-widget\" style \"fremantle-widget\"\n"
-                       "class \"HildonTouchSelector\" style \"default\"\n");
-
-
-  button = hildon_picker_button_new (HILDON_BUTTON_WITH_VERTICAL_VALUE);
+  button = hildon_picker_button_new (HILDON_SIZE_AUTO, HILDON_BUTTON_ARRANGEMENT_VERTICAL);
   hildon_button_set_title (HILDON_BUTTON (button), "Pick a band!");
   selector = hildon_touch_selector_entry_new_text ();
   for (i = 0; artists [i] != NULL; i++) {