aboutsummaryrefslogtreecommitdiff
path: root/src/slide_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/slide_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/slide_window.c')
-rw-r--r--src/slide_window.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/slide_window.c b/src/slide_window.c
index 28d556b..a9f8459 100644
--- a/src/slide_window.c
+++ b/src/slide_window.c
@@ -212,8 +212,16 @@ static gboolean sw_key_press_sig(GtkWidget *da, GdkEventKey *event,
}
+static void about_sig(GSimpleAction *action, GVariant *parameter, gpointer vp)
+{
+ SlideWindow *sw = vp;
+ open_about_dialog(sw->window);
+}
+
+
GActionEntry sw_entries[] = {
+ { "about", about_sig, NULL, NULL, NULL },
{ "paste", paste_sig, NULL, NULL, NULL },
{ "copyframe", copy_frame_sig, NULL, NULL, NULL },
{ "deleteframe", delete_frame_sig, NULL, NULL, NULL },