diff options
author | Thomas White <taw@bitwiz.me.uk> | 2018-04-15 18:21:18 +0200 |
---|---|---|
committer | Thomas White <taw@bitwiz.me.uk> | 2018-04-15 18:21:18 +0200 |
commit | 13d49eed1282614105902a9a47b13e2bf36c53f5 (patch) | |
tree | bc5b4b66f2f5d48e441f4cd6d28dbcc172a522aa /src/colloquium.c | |
parent | 8a9af01a658e844c83ba16d3d0dc1b8ab882af55 (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/colloquium.c')
-rw-r--r-- | src/colloquium.c | 4 |
1 files changed, 2 insertions, 2 deletions
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 }, }; |