aboutsummaryrefslogtreecommitdiff
path: root/src/narrative_window.c
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.me.uk>2018-04-15 18:21:18 +0200
committerThomas White <taw@bitwiz.me.uk>2018-04-15 18:21:18 +0200
commit13d49eed1282614105902a9a47b13e2bf36c53f5 (patch)
treebc5b4b66f2f5d48e441f4cd6d28dbcc172a522aa /src/narrative_window.c
parent8a9af01a658e844c83ba16d3d0dc1b8ab882af55 (diff)
Set transient parent for about box
A bit tricky because it can be called up from two different windows (narrative and slide editor)
Diffstat (limited to 'src/narrative_window.c')
-rw-r--r--src/narrative_window.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/narrative_window.c b/src/narrative_window.c
index 551195e..7d51350 100644
--- a/src/narrative_window.c
+++ b/src/narrative_window.c
@@ -139,6 +139,13 @@ static void saveas_sig(GSimpleAction *action, GVariant *parameter, gpointer vp)
}
+static void about_sig(GSimpleAction *action, GVariant *parameter, gpointer vp)
+{
+ NarrativeWindow *nw = vp;
+ open_about_dialog(nw->window);
+}
+
+
static void save_sig(GSimpleAction *action, GVariant *parameter, gpointer vp)
{
NarrativeWindow *nw = vp;
@@ -727,6 +734,7 @@ static int click_thumbnail(double x, double y, void *bvp, void *vp)
GActionEntry nw_entries[] = {
+ { "about", about_sig, NULL, NULL, NULL },
{ "save", save_sig, NULL, NULL, NULL },
{ "saveas", saveas_sig, NULL, NULL, NULL },
{ "sorter", open_slidesorter_sig, NULL, NULL, NULL },