From 13d49eed1282614105902a9a47b13e2bf36c53f5 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Sun, 15 Apr 2018 18:21:18 +0200 Subject: Set transient parent for about box A bit tricky because it can be called up from two different windows (narrative and slide editor) --- src/slide_window.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/slide_window.c') 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 }, -- cgit v1.2.3