From 9983810898091c75ea9fb65d440cd905772f9f06 Mon Sep 17 00:00:00 2001 From: Hugo Villeneuve Date: Mon, 7 Oct 2013 00:30:38 -0400 Subject: [PATCH] Add title to memory window --- src/memwin.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) 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) */ -- 2.20.1