diff options
author | Thomas White <taw@bitwiz.me.uk> | 2019-04-16 00:28:39 +0200 |
---|---|---|
committer | Thomas White <taw@bitwiz.me.uk> | 2019-04-16 00:28:39 +0200 |
commit | 06075d2dce80ee439249cbf4e4cae6209eb6b550 (patch) | |
tree | b62689d6ea1234606ad3f47d97a7d744ccf30659 /libstorycode | |
parent | 5ffe58d92a54ac4286b2e3aeae139e2f88a3b702 (diff) |
Redraw narrative window on stylesheet change
Diffstat (limited to 'libstorycode')
-rw-r--r-- | libstorycode/gtk/gtknarrativeview.c | 7 | ||||
-rw-r--r-- | libstorycode/gtk/gtknarrativeview.h | 2 |
2 files changed, 9 insertions, 0 deletions
diff --git a/libstorycode/gtk/gtknarrativeview.c b/libstorycode/gtk/gtknarrativeview.c index 3a293b3..2425092 100644 --- a/libstorycode/gtk/gtknarrativeview.c +++ b/libstorycode/gtk/gtknarrativeview.c @@ -1224,3 +1224,10 @@ void gtk_narrative_view_add_slide_at_cursor(GtkNarrativeView *e) emit_change_sig(e); redraw(e); } + + +extern void gtk_narrative_view_redraw(GtkNarrativeView *e) +{ + emit_change_sig(e); + redraw(e); +} diff --git a/libstorycode/gtk/gtknarrativeview.h b/libstorycode/gtk/gtknarrativeview.h index 82fd215..fd589c5 100644 --- a/libstorycode/gtk/gtknarrativeview.h +++ b/libstorycode/gtk/gtknarrativeview.h @@ -111,4 +111,6 @@ extern int gtk_narrative_view_get_cursor_para(GtkNarrativeView *e); extern void gtk_narrative_view_set_cursor_para(GtkNarrativeView *e, signed int pos); extern void gtk_narrative_view_add_slide_at_cursor(GtkNarrativeView *e); +extern void gtk_narrative_view_redraw(GtkNarrativeView *e); + #endif /* GTK_NARRATIVE_VIEW_H */ |