* 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",
};
int
-main (int argc, char **args)
+main (int argc, char **argv)
{
HildonProgram *program = NULL;
GtkWidget *window = NULL;
GtkWidget *selector;
gint i;
- gtk_init (&argc, &args);
+ hildon_gtk_init (&argc, &argv);
program = hildon_program_get_instance ();
g_set_application_name
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++) {