From: Hugo Villeneuve Date: Mon, 7 Oct 2013 04:30:38 +0000 (-0400) Subject: Add title to memory window X-Git-Tag: v2.0.0~143 X-Git-Url: http://gitweb.hugovil.com/?a=commitdiff_plain;h=9983810898091c75ea9fb65d440cd905772f9f06;p=emu8051.git Add title to memory window --- diff --git a/src/memwin.c b/src/memwin.c index ce81da9..a7ecdc7 100644 --- a/src/memwin.c +++ b/src/memwin.c @@ -103,9 +103,12 @@ memwin_init_columns(void) 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); @@ -115,11 +118,11 @@ memwin_init(void) 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); @@ -134,7 +137,7 @@ memwin_init(void) */ g_object_unref(store); - return scrollwin; + return frame; } /* Dump up to 256 bytes from Address in Memory (direct addressing) */