aboutsummaryrefslogtreecommitdiff
path: root/src/narrative_window.c
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.org.uk>2015-02-07 10:47:17 +0100
committerThomas White <taw@bitwiz.org.uk>2015-02-07 10:47:17 +0100
commit9e2f73215ba786a9f20b9314dccc559c8d196055 (patch)
tree918bc307835344106942bd174c668bf3c510f52f /src/narrative_window.c
parentbeac19ff683680df00d05070f707f06764941e97 (diff)
Revert a couple of container_add to scrolled_window_add_with_viewport
Diffstat (limited to 'src/narrative_window.c')
-rw-r--r--src/narrative_window.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/narrative_window.c b/src/narrative_window.c
index eedd96e..50de384 100644
--- a/src/narrative_window.c
+++ b/src/narrative_window.c
@@ -338,7 +338,8 @@ NarrativeWindow *narrative_window_new(struct presentation *p, GApplication *app)
scroll = gtk_scrolled_window_new(NULL, NULL);
gtk_scrolled_window_set_policy(GTK_SCROLLED_WINDOW(scroll),
GTK_POLICY_NEVER, GTK_POLICY_ALWAYS);
- gtk_container_add(GTK_CONTAINER(scroll), GTK_WIDGET(nw->sceditor));
+ gtk_scrolled_window_add_with_viewport(GTK_SCROLLED_WINDOW(scroll),
+ GTK_WIDGET(nw->sceditor));
sc_editor_set_size(nw->sceditor, 640, 12000);
sc_editor_set_logical_size(nw->sceditor, 640.0, 12000);