diff options
author | Nathan Samson <nathansamson@gmail.com> | 2011-09-04 02:37:22 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2011-09-03 20:45:31 -0700 |
commit | 3a04342607a9fa7255be60ee5d4b8a816ecb7b0a (patch) | |
tree | e9d94aae4367470a0427f5100ecf280bdae1b8c4 /info.c | |
parent | 4d62478e14fe8bef8ae88a55b0864217b400b719 (diff) | |
download | subsurface-3a04342607a9fa7255be60ee5d4b8a816ecb7b0a.tar.gz |
Improve the layout of the text entries in gtk3. For gtk2 this could also be useful
Signed-off-by: Nathan Samson <nathansamson@gmail.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'info.c')
-rw-r--r-- | info.c | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -151,10 +151,16 @@ static GtkTextBuffer *text_entry(GtkWidget *box, const char *label, gboolean exp gtk_box_pack_start(GTK_BOX(box), frame, expand, expand, 0); + GtkWidget* scrolled_window = gtk_scrolled_window_new (0, 0); + gtk_scrolled_window_set_shadow_type(GTK_SCROLLED_WINDOW(scrolled_window), GTK_SHADOW_IN); + gtk_widget_show(scrolled_window); + view = gtk_text_view_new (); + gtk_container_add(GTK_CONTAINER(scrolled_window), view); + buffer = gtk_text_view_get_buffer (GTK_TEXT_VIEW (view)); - gtk_container_add(GTK_CONTAINER(frame), view); + gtk_container_add(GTK_CONTAINER(frame), scrolled_window); return buffer; } |