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/colloquium.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/colloquium.c') diff --git a/src/colloquium.c b/src/colloquium.c index de093e8..dbe9caf 100644 --- a/src/colloquium.c +++ b/src/colloquium.c @@ -88,7 +88,7 @@ static void intro_sig(GSimpleAction *action, GVariant *parameter, gpointer vp) } -static void about_sig(GSimpleAction *action, GVariant *parameter, gpointer vp) +void open_about_dialog(GtkWidget *parent) { GtkWidget *window; @@ -98,6 +98,7 @@ static void about_sig(GSimpleAction *action, GVariant *parameter, gpointer vp) }; window = gtk_about_dialog_new(); + gtk_window_set_transient_for(GTK_WINDOW(window), GTK_WINDOW(parent)); gtk_about_dialog_set_program_name(GTK_ABOUT_DIALOG(window), "Colloquium"); @@ -210,7 +211,6 @@ GActionEntry app_entries[] = { { "new", new_sig, NULL, NULL, NULL }, { "open", open_sig, NULL, NULL, NULL }, - { "about", about_sig, NULL, NULL, NULL }, { "intro", intro_sig, NULL, NULL, NULL }, { "quit", quit_sig, NULL, NULL, NULL }, }; -- cgit v1.2.3