- ShowMessage("Internal Memory Dump", "Not implemented yet!",
- GTK_JUSTIFY_CENTER, MESSAGE_DIALOG_NORMAL_FONT);
+ GtkWidget *submenu;
+ GtkWidget *layout;
+ GtkWidget *layout1;
+ GtkWidget *layout2;
+ GSList *group = NULL;
+
+ submenu = gtk_menu_new();
+
+ layout = gtk_menu_item_new_with_label("Layout");
+
+ layout1 = gtk_radio_menu_item_new_with_label(group, "Layout1");
+ group = gtk_radio_menu_item_get_group(GTK_RADIO_MENU_ITEM(layout1));
+ layout2 = gtk_radio_menu_item_new_with_label(group, "Layout2");
+
+ if (cfg->layout == UI_LAYOUT1)
+ gtk_check_menu_item_set_active(GTK_CHECK_MENU_ITEM(layout1), TRUE);
+ else
+ gtk_check_menu_item_set_active(GTK_CHECK_MENU_ITEM(layout2), TRUE);
+
+ g_signal_connect(G_OBJECT(layout1), "activate",
+ G_CALLBACK(toggle_layout), (gpointer) UI_LAYOUT1);
+ g_signal_connect(G_OBJECT(layout2), "activate",
+ G_CALLBACK(toggle_layout), (gpointer) UI_LAYOUT2);
+
+ gtk_menu_item_set_submenu(GTK_MENU_ITEM(layout), submenu);
+ gtk_menu_shell_append(GTK_MENU_SHELL(submenu), layout1);
+ gtk_menu_shell_append(GTK_MENU_SHELL(submenu), layout2);
+ gtk_menu_shell_append(GTK_MENU_SHELL(parent), layout);