aboutsummaryrefslogtreecommitdiff
path: root/gtk/toneview.c
diff options
context:
space:
mode:
authorTakamichi Horikawa <takamichiho@gmail.com>2017-08-24 02:52:30 +0900
committerTakamichi Horikawa <takamichiho@gmail.com>2017-08-24 02:52:30 +0900
commitff2e303f8653c5ed1c458b73bda2ee19617e3628 (patch)
treec6af4ec29dd55d0c2fd2aa458a6e893685e566dd /gtk/toneview.c
parentad839eb8338e8b84342bf36480fbf0a7a04fa2bd (diff)
gtk: dialog behavior when already shown
Diffstat (limited to 'gtk/toneview.c')
-rw-r--r--gtk/toneview.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gtk/toneview.c b/gtk/toneview.c
index 64c4e98..99117d5 100644
--- a/gtk/toneview.c
+++ b/gtk/toneview.c
@@ -122,5 +122,7 @@ void show_toneview(void) {
}
gtk_widget_add_tick_callback(g.tonewin, tick_cb, 0, 0);
gtk_widget_show_all(g.tonewin);
+ } else {
+ gtk_window_present(GTK_WINDOW(g.tonewin));
}
}