From b4f51f565cbbe12977764aaa466ddb4acc1510e7 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Sun, 30 Nov 2014 14:27:17 +0100 Subject: Scrolling stuff --- src/narrative_window.c | 3 ++- src/sc_editor.c | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/narrative_window.c b/src/narrative_window.c index 28a7d79..ebf1ffd 100644 --- a/src/narrative_window.c +++ b/src/narrative_window.c @@ -156,7 +156,7 @@ 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_AUTOMATIC, - GTK_POLICY_AUTOMATIC); + GTK_POLICY_ALWAYS); gtk_scrolled_window_add_with_viewport(GTK_SCROLLED_WINDOW(scroll), GTK_WIDGET(nw->sceditor)); @@ -168,6 +168,7 @@ NarrativeWindow *narrative_window_new(struct presentation *p, GApplication *app) g_signal_connect(G_OBJECT(nw->sceditor), "button-press-event", G_CALLBACK(button_press_sig), nw); + gtk_window_set_default_size(GTK_WINDOW(nw->window), 768, 768); gtk_box_pack_start(GTK_BOX(vbox), scroll, TRUE, TRUE, 0); gtk_widget_show_all(nw->window); diff --git a/src/sc_editor.c b/src/sc_editor.c index 261b23f..f357514 100644 --- a/src/sc_editor.c +++ b/src/sc_editor.c @@ -1381,6 +1381,7 @@ void sc_editor_set_size(SCEditor *e, int w, int h) { e->w = w; e->h = h; + gtk_widget_set_size_request(GTK_WIDGET(e), w, h); } -- cgit v1.2.3