GtkWidget *
memwin_init(void)
{
+ GtkWidget *frame;
GtkWidget *scrollwin;
GtkListStore *store;
+ frame = gtk_frame_new("Internal memory");
+
scrollwin = gtk_scrolled_window_new(NULL, NULL);
gtk_scrolled_window_set_shadow_type(GTK_SCROLLED_WINDOW(scrollwin),
GTK_SHADOW_ETCHED_OUT);
GTK_POLICY_AUTOMATIC,
GTK_POLICY_AUTOMATIC);
+ gtk_container_add(GTK_CONTAINER(frame), scrollwin);
+
/* Creating a model */
store = memwin_init_store();
-
-
/* Creating the view component */
memlist = gtk_tree_view_new_with_model(GTK_TREE_MODEL(store));
gtk_tree_view_set_headers_visible(GTK_TREE_VIEW(memlist), TRUE);
*/
g_object_unref(store);
- return scrollwin;
+ return frame;
}
/* Dump up to 256 bytes from Address in Memory (direct addressing) */