Add title to memory window
authorHugo Villeneuve <hugo@hugovil.com>
Mon, 7 Oct 2013 04:30:38 +0000 (00:30 -0400)
committerHugo Villeneuve <hugo@hugovil.com>
Thu, 10 Oct 2013 01:08:17 +0000 (21:08 -0400)
src/memwin.c

index ce81da9..a7ecdc7 100644 (file)
@@ -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) */