--- np2/x11/gtk2/gtk_menu.c 2007/01/21 00:24:24 1.8
+++ np2/x11/gtk2/gtk_menu.c 2007/01/24 14:09:32 1.9
@@ -1,4 +1,4 @@
-/* $Id: gtk_menu.c,v 1.8 2007/01/21 00:24:24 monaka Exp $ */
+/* $Id: gtk_menu.c,v 1.9 2007/01/24 14:09:32 monaka Exp $ */
/*
* Copyright (c) 2004 NONAKA Kimihiro (aw9k-nnk@asahi-net.or.jp)
@@ -108,6 +108,7 @@ static GtkActionEntry menu_entries[] = {
{ "SASI1Menu", NULL, "SASI-_1", NULL, NULL, NULL },
{ "SASI2Menu", NULL, "SASI-_2", NULL, NULL, NULL },
#endif
+{ "ScrnSizeMenu", NULL, "Size", NULL, NULL, NULL },
{ "SoundMenu", NULL, "_Sound", NULL, NULL, NULL },
/* MenuItem */
@@ -263,6 +264,16 @@ static GtkRadioActionEntry rotate_entrie
};
static const guint n_rotate_entries = G_N_ELEMENTS(rotate_entries);
+static GtkRadioActionEntry screensize_entries[] = {
+{ "320x200", NULL, "320x200", NULL, NULL, 4 },
+{ "480x300", NULL, "480x300", NULL, NULL, 6 },
+{ "640x400", NULL, "640x400", NULL, NULL, 8 },
+{ "800x500", NULL, "800x500", NULL, NULL, 10 },
+{ "960x600", NULL, "960x600", NULL, NULL, 12 },
+{ "1280x800", NULL, "1280x800", NULL, NULL, 16 },
+};
+static const guint n_screensize_entries = G_N_ELEMENTS(screensize_entries);
+
static void cb_beepvol(gint idx);
static void cb_f12key(gint idx);
static void cb_framerate(gint idx);
@@ -270,6 +281,7 @@ static void cb_joykey(gint idx);
static void cb_memory(gint idx);
static void cb_rotate(gint idx);
static void cb_screenmode(gint idx);
+static void cb_screensize(gint idx);
static void cb_soundboard(gint idx);
static const struct {
@@ -284,6 +296,7 @@ static const struct {
{ memory_entries, G_N_ELEMENTS(memory_entries), cb_memory },
{ rotate_entries, G_N_ELEMENTS(rotate_entries), cb_rotate },
{ screenmode_entries, G_N_ELEMENTS(screenmode_entries), cb_screenmode },
+ { screensize_entries, G_N_ELEMENTS(screensize_entries), cb_screensize },
{ soundboard_entries, G_N_ELEMENTS(soundboard_entries), cb_soundboard },
};
static const guint n_radiomenu_entries = G_N_ELEMENTS(radiomenu_entries);
@@ -298,7 +311,6 @@ static const gchar *ui_info =
" \n"
" \n"
" \n"
-" \n"
"