gtk: no longer segfault on gamepad config when gtk < 2.24 (ubuntu 10.04) -- hide gamepad config option

This commit is contained in:
punkrockguy318 2012-06-24 16:04:56 +00:00
parent c90224e6fa
commit fd64417ef2
1 changed files with 2 additions and 0 deletions

View File

@ -2083,7 +2083,9 @@ static GtkActionEntry normal_entries[] = {
{"QuitAction", GTK_STOCK_QUIT, "_Quit", "<control>Q", NULL, G_CALLBACK(quit)},
{"OptionsMenuAction", NULL, "_Options"},
#if GTK_MAJOR_VERSION == 3 || (GTK_MAJOR_VERSION == 2 && GTK_MINOR_VERSION >= 24)
{"GamepadConfigAction", "input-gaming", "_Gamepad Config", NULL, NULL, G_CALLBACK(openGamepadConfig)},
#endif
{"SoundConfigAction", "audio-x-generic", "_Sound Config", NULL, NULL, G_CALLBACK(openSoundConfig)},
{"VideoConfigAction", "video-display", "_Video Config", NULL, NULL, G_CALLBACK(openVideoConfig)},
{"PaletteConfigAction", GTK_STOCK_SELECT_COLOR, "_Palette Config", NULL, NULL, G_CALLBACK(openPaletteConfig)},