aboutsummaryrefslogtreecommitdiff
path: root/libstorycode/gtk
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.me.uk>2019-03-03 18:51:34 +0100
committerThomas White <taw@bitwiz.me.uk>2019-03-03 18:52:22 +0100
commitacbec489df38e182a8e284095ccd7a0f1d84112e (patch)
tree1ad22572be6294ae761a2ecba7dea37c26f0b969 /libstorycode/gtk
parentf2bfe89481217625f74224289947f7bcd839c55f (diff)
Styled narrative rendering
Diffstat (limited to 'libstorycode/gtk')
-rw-r--r--libstorycode/gtk/gtknarrativeview.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libstorycode/gtk/gtknarrativeview.c b/libstorycode/gtk/gtknarrativeview.c
index 55565d8..e6f4f38 100644
--- a/libstorycode/gtk/gtknarrativeview.c
+++ b/libstorycode/gtk/gtknarrativeview.c
@@ -131,6 +131,7 @@ static gboolean resize_sig(GtkWidget *widget, GdkEventConfigure *event,
e->visible_height = event->height;
e->visible_width = event->width;
+ e->w = e->visible_width;
/* Wrap everything with the current width, to get the total height */
narrative_wrap(presentation_get_narrative(e->p),