diff options
-rw-r--r-- | src/narrative_window.c | 3 | ||||
-rw-r--r-- | src/slide_window.c | 3 |
2 files changed, 4 insertions, 2 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); diff --git a/src/slide_window.c b/src/slide_window.c index bfa924d..dd61c17 100644 --- a/src/slide_window.c +++ b/src/slide_window.c @@ -612,7 +612,8 @@ SlideWindow *slide_window_open(struct presentation *p, GApplication *app) gtk_scrolled_window_set_policy(GTK_SCROLLED_WINDOW(scroll), GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC); - gtk_container_add(GTK_CONTAINER(scroll), GTK_WIDGET(sw->sceditor)); + gtk_scrolled_window_add_with_viewport(GTK_SCROLLED_WINDOW(scroll), + GTK_WIDGET(sw->sceditor)); gtk_window_set_focus(GTK_WINDOW(window), GTK_WIDGET(sw->sceditor)); /* Size of SCEditor surface in pixels */ |