static HildonButton* keys_btn;
static HildonCheckButton* touch_chk;
static HildonCheckButton* touch_show_chk;
static HildonButton* keys_btn;
static HildonCheckButton* touch_chk;
static HildonCheckButton* touch_show_chk;
static GtkCheckButton* keys_chk;
static GtkButton* keys_btn;
static GtkCheckButton* touch_chk;
static GtkCheckButton* touch_show_chk;
static GtkCheckButton* keys_chk;
static GtkButton* keys_btn;
static GtkCheckButton* touch_chk;
static GtkCheckButton* touch_show_chk;
hildon_check_button_set_active(touch_show_chk,
gconf_client_get_bool(gcc, key_base, NULL));
hildon_check_button_set_active(touch_show_chk,
gconf_client_get_bool(gcc, key_base, NULL));
strcpy(key, kGConfPlayerZeemoteEnable);
hildon_check_button_set_active(zeemote_chk,
gconf_client_get_bool(gcc, key_base, NULL));
strcpy(key, kGConfPlayerZeemoteEnable);
hildon_check_button_set_active(zeemote_chk,
gconf_client_get_bool(gcc, key_base, NULL));
// Keyboard
strcpy(key, kGConfPlayerKeyboardEnable);
gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(keys_chk),
// Keyboard
strcpy(key, kGConfPlayerKeyboardEnable);
gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(keys_chk),
gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(touch_show_chk),
gconf_client_get_bool(gcc, key_base, NULL));
gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(touch_show_chk),
gconf_client_get_bool(gcc, key_base, NULL));
strcpy(key, kGConfPlayerZeemoteEnable);
gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(zeemote_chk),
gconf_client_get_bool(gcc, key_base, NULL));
#endif
strcpy(key, kGConfPlayerZeemoteEnable);
gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(zeemote_chk),
gconf_client_get_bool(gcc, key_base, NULL));
#endif
gconf_client_set_bool(gcc, key_base,
hildon_check_button_get_active(touch_show_chk), NULL);
gconf_client_set_bool(gcc, key_base,
hildon_check_button_get_active(touch_show_chk), NULL);
strcpy(key, kGConfPlayerZeemoteEnable);
gconf_client_set_bool(gcc, key_base,
hildon_check_button_get_active(zeemote_chk), NULL);
strcpy(key, kGConfPlayerZeemoteEnable);
gconf_client_set_bool(gcc, key_base,
hildon_check_button_get_active(zeemote_chk), NULL);
#else /* MAEMO_VERSION < 5 */
// Keyboard
strcpy(key, kGConfPlayerKeyboardEnable);
#else /* MAEMO_VERSION < 5 */
// Keyboard
strcpy(key, kGConfPlayerKeyboardEnable);
gconf_client_set_bool(gcc, key_base,
gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(touch_show_chk)), NULL);
gconf_client_set_bool(gcc, key_base,
gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(touch_show_chk)), NULL);
strcpy(key, kGConfPlayerZeemoteEnable);
gconf_client_set_bool(gcc, key_base,
gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(zeemote_chk)), NULL);
#endif
strcpy(key, kGConfPlayerZeemoteEnable);
gconf_client_set_bool(gcc, key_base,
gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(zeemote_chk)), NULL);
#endif
strcpy(key, kGConfPlayerZeemoteEnable);
if (gconf_client_get_bool(gcc, key_base, NULL)) {
if (count > 0) strcat(description, ", ");
strcat(description, _("Zeemote"));
count++;
}
strcpy(key, kGConfPlayerZeemoteEnable);
if (gconf_client_get_bool(gcc, key_base, NULL)) {
if (count > 0) strcat(description, ", ");
strcat(description, _("Zeemote"));
count++;
}
gtk_label_set_attributes(separator_4, pattrlist);
gtk_label_set_justify(separator_4, GTK_JUSTIFY_CENTER);
#endif
gtk_label_set_attributes(separator_4, pattrlist);
gtk_label_set_justify(separator_4, GTK_JUSTIFY_CENTER);
#endif
GtkLabel* separator_5 = GTK_LABEL(gtk_label_new(_("Zeemote")));
gtk_label_set_attributes(separator_5, pattrlist);
gtk_label_set_justify(separator_5, GTK_JUSTIFY_CENTER);
GtkLabel* separator_5 = GTK_LABEL(gtk_label_new(_("Zeemote")));
gtk_label_set_attributes(separator_5, pattrlist);
gtk_label_set_justify(separator_5, GTK_JUSTIFY_CENTER);
gtk_button_set_label(GTK_BUTTON(zeemote_chk), _("Enable Zeemote joystick"));
set_button_layout(HILDON_BUTTON(zeemote_chk),
titles_size_group, values_size_group);
gtk_button_set_label(GTK_BUTTON(zeemote_chk), _("Enable Zeemote joystick"));
set_button_layout(HILDON_BUTTON(zeemote_chk),
titles_size_group, values_size_group);
gtk_box_pack_start(box, GTK_WIDGET(separator_1),
FALSE, FALSE, HILDON_MARGIN_HALF);
gtk_box_pack_start(box, GTK_WIDGET(keys_chk),
gtk_box_pack_start(box, GTK_WIDGET(separator_1),
FALSE, FALSE, HILDON_MARGIN_HALF);
gtk_box_pack_start(box, GTK_WIDGET(keys_chk),
gtk_box_pack_start(box, GTK_WIDGET(separator_4),
FALSE, FALSE, HILDON_MARGIN_HALF);
#endif
gtk_box_pack_start(box, GTK_WIDGET(separator_4),
FALSE, FALSE, HILDON_MARGIN_HALF);
#endif
gtk_box_pack_start(box, GTK_WIDGET(separator_5),
FALSE, FALSE, HILDON_MARGIN_HALF);
gtk_box_pack_start(box, GTK_WIDGET(zeemote_chk),
FALSE, FALSE, 0);
gtk_box_pack_start(box, GTK_WIDGET(separator_5),
FALSE, FALSE, HILDON_MARGIN_HALF);
gtk_box_pack_start(box, GTK_WIDGET(zeemote_chk),
FALSE, FALSE, 0);
hildon_pannable_area_add_with_viewport(pannable, GTK_WIDGET(box));
gtk_box_pack_start_defaults(GTK_BOX(dialog->vbox), GTK_WIDGET(pannable));
hildon_pannable_area_add_with_viewport(pannable, GTK_WIDGET(box));
gtk_box_pack_start_defaults(GTK_BOX(dialog->vbox), GTK_WIDGET(pannable));
gtk_box_pack_start_defaults(touch_box, GTK_WIDGET(touch_chk));
gtk_box_pack_start_defaults(touch_box, GTK_WIDGET(touch_show_chk));
gtk_box_pack_start_defaults(touch_box, GTK_WIDGET(touch_chk));
gtk_box_pack_start_defaults(touch_box, GTK_WIDGET(touch_show_chk));
GtkWidget* sep_2 = GTK_WIDGET(gtk_hseparator_new());
zeemote_chk = GTK_CHECK_BUTTON(gtk_check_button_new_with_label(
_("Enable Zeemote joystick")));
GtkWidget* sep_2 = GTK_WIDGET(gtk_hseparator_new());
zeemote_chk = GTK_CHECK_BUTTON(gtk_check_button_new_with_label(
_("Enable Zeemote joystick")));
gtk_box_pack_start_defaults(GTK_BOX(dialog->vbox), GTK_WIDGET(keys_box));
gtk_box_pack_start_defaults(GTK_BOX(dialog->vbox), sep_1);
gtk_box_pack_start_defaults(GTK_BOX(dialog->vbox), GTK_WIDGET(touch_box));
gtk_box_pack_start_defaults(GTK_BOX(dialog->vbox), GTK_WIDGET(keys_box));
gtk_box_pack_start_defaults(GTK_BOX(dialog->vbox), sep_1);
gtk_box_pack_start_defaults(GTK_BOX(dialog->vbox), GTK_WIDGET(touch_box));
gtk_box_pack_start_defaults(GTK_BOX(dialog->vbox), sep_2);
gtk_box_pack_start_defaults(GTK_BOX(dialog->vbox), GTK_WIDGET(zeemote_chk));
#endif
gtk_box_pack_start_defaults(GTK_BOX(dialog->vbox), sep_2);
gtk_box_pack_start_defaults(GTK_BOX(dialog->vbox), GTK_WIDGET(zeemote_chk));
#endif