+static void
+emugtk_show_memory_paned(void)
+{
+ gtk_widget_show_all(mainwin);
+ emugtk_UpdateDisplay();
+}
+
+void
+emugtk_create_int_memory_paned(void)
+{
+ scrollwin_int = memwin_init("Internal memory (IRAM)",
+ INT_MEM_ID);
+ gtk_paned_pack1(GTK_PANED(vpaned1), scrollwin_int,
+ FALSE, FALSE);
+ if (emugtk_window_init_complete == true)
+ emugtk_show_memory_paned();
+}
+
+void
+emugtk_destroy_int_memory_paned(void)
+{
+ if (scrollwin_int == NULL)
+ return;
+
+ gtk_widget_destroy(scrollwin_int);
+ scrollwin_int = NULL;
+}
+
+void
+emugtk_create_ext_memory_paned(void)
+{
+ scrollwin_ext = memwin_init("External memory (XRAM)",
+ EXT_MEM_ID);
+
+ gtk_paned_pack2(GTK_PANED(vpaned1), scrollwin_ext,
+ TRUE, FALSE);
+
+ if (emugtk_window_init_complete == true)
+ emugtk_show_memory_paned();
+}
+
+void
+emugtk_destroy_ext_memory_paned(void)
+{
+ if (scrollwin_ext == NULL)
+ return;
+
+ gtk_widget_destroy(scrollwin_ext);
+ scrollwin_ext = NULL;
+}
+
+void
+emugtk_recreate_memory_paned(void)
+{
+ if (cfg->view_int_memory) {
+ emugtk_destroy_int_memory_paned();
+ emugtk_create_int_memory_paned();
+ }
+
+ if (cfg->view_ext_memory) {
+ emugtk_destroy_ext_memory_paned();
+ emugtk_create_ext_memory_paned();
+ }
+
+ if (emugtk_window_init_complete == true)
+ emugtk_show_memory_paned();
+}
+