aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.org.uk>2014-11-30 14:27:17 +0100
committerThomas White <taw@bitwiz.org.uk>2014-11-30 14:27:17 +0100
commitb4f51f565cbbe12977764aaa466ddb4acc1510e7 (patch)
treee6b718d9b174d1be1a5c31986c6948a739bd9009 /src
parente21a073b0c6e4f0e7a00883eec590fa5cd84f407 (diff)
Scrolling stuff
Diffstat (limited to 'src')
-rw-r--r--src/narrative_window.c3
-rw-r--r--src/sc_editor.c1
2 files changed, 3 insertions, 1 deletions
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);
}