gtk: cleanup
This commit is contained in:
parent
10034b92b8
commit
f313f2fe8c
|
@ -707,22 +707,12 @@ void openGamepadConfig()
|
||||||
g_signal_connect(typeCombo, "changed", G_CALLBACK(setInputDevice),
|
g_signal_connect(typeCombo, "changed", G_CALLBACK(setInputDevice),
|
||||||
gtk_combo_box_text_get_active_text(GTK_COMBO_BOX_TEXT(typeCombo)));
|
gtk_combo_box_text_get_active_text(GTK_COMBO_BOX_TEXT(typeCombo)));
|
||||||
|
|
||||||
// sync with config
|
setCheckbox(fourScoreChk, "SDL.FourScore");
|
||||||
int buf = 0;
|
|
||||||
g_config->getOption("SDL.FourScore", &buf);
|
|
||||||
if(buf)
|
|
||||||
gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(fourScoreChk), 1);
|
|
||||||
else
|
|
||||||
gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(fourScoreChk), 0);
|
|
||||||
g_config->getOption("SDL.Input.EnableOppositeDirectionals", &buf);
|
|
||||||
if(buf)
|
|
||||||
gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(oppositeDirChk), 1);
|
|
||||||
else
|
|
||||||
gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(oppositeDirChk), 0);
|
|
||||||
|
|
||||||
g_signal_connect(fourScoreChk, "clicked", G_CALLBACK(toggleOption), (gpointer)"SDL.FourScore");
|
g_signal_connect(fourScoreChk, "clicked", G_CALLBACK(toggleOption), (gpointer)"SDL.FourScore");
|
||||||
|
setCheckbox(oppositeDirChk, "SDL.Input.EnableOppositeDirectionals");
|
||||||
g_signal_connect(oppositeDirChk, "clicked", G_CALLBACK(toggleOption), (gpointer)"SDL.Input.EnableOppositeDirectionals");
|
g_signal_connect(oppositeDirChk, "clicked", G_CALLBACK(toggleOption), (gpointer)"SDL.Input.EnableOppositeDirectionals");
|
||||||
|
|
||||||
|
|
||||||
gtk_box_pack_start(GTK_BOX(hboxPadNo), padNoLabel, TRUE, TRUE, 5);
|
gtk_box_pack_start(GTK_BOX(hboxPadNo), padNoLabel, TRUE, TRUE, 5);
|
||||||
gtk_box_pack_start(GTK_BOX(hboxPadNo), padNoCombo, TRUE, TRUE, 5);
|
gtk_box_pack_start(GTK_BOX(hboxPadNo), padNoCombo, TRUE, TRUE, 5);
|
||||||
//gtk_box_pack_start(GTK_BOX(hboxPadNo), configNoLabel, TRUE, TRUE, 5);
|
//gtk_box_pack_start(GTK_BOX(hboxPadNo), configNoLabel, TRUE, TRUE, 5);
|
||||||
|
|
Loading…
Reference in New Issue