From ff2e303f8653c5ed1c458b73bda2ee19617e3628 Mon Sep 17 00:00:00 2001 From: Takamichi Horikawa Date: Thu, 24 Aug 2017 02:52:30 +0900 Subject: gtk: dialog behavior when already shown --- gtk/oscilloview-gl.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'gtk/oscilloview-gl.c') diff --git a/gtk/oscilloview-gl.c b/gtk/oscilloview-gl.c index b67bdce..40d6813 100644 --- a/gtk/oscilloview-gl.c +++ b/gtk/oscilloview-gl.c @@ -165,6 +165,8 @@ void show_oscilloview(void) { g_signal_connect(glarea, "realize", G_CALLBACK(on_realize), 0); gtk_container_add(GTK_CONTAINER(g.win), glarea); gtk_widget_add_tick_callback(glarea, tick_cb, 0, 0); + gtk_widget_show_all(g.win); + } else { + gtk_window_present(GTK_WINDOW(g.win)); } - gtk_widget_show_all(g.win); } -- cgit v1.2.3