diff options
Diffstat (limited to 'frontends/gtk/local_history.c')
-rw-r--r-- | frontends/gtk/local_history.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/frontends/gtk/local_history.c b/frontends/gtk/local_history.c index 0d59c468a..69fe92a29 100644 --- a/frontends/gtk/local_history.c +++ b/frontends/gtk/local_history.c @@ -174,11 +174,10 @@ nsgtk_local_history_init(struct browser_window *bw, "HistoryDrawingArea")); /* make the delete event hide the window */ - g_signal_connect(G_OBJECT(ncwin->wnd), - "delete_event", - G_CALLBACK(gtk_widget_hide_on_delete), - NULL); + nsgtk_window_set_hide_on_close(ncwin->wnd, TRUE); + /* Ditto if we lose the grab */ +#if !GTK_CHECK_VERSION(4,0,0) g_signal_connect(G_OBJECT(ncwin->wnd), "grab-broken-event", G_CALLBACK(gtk_widget_hide_on_delete), @@ -188,6 +187,7 @@ nsgtk_local_history_init(struct browser_window *bw, "button-press-event", G_CALLBACK(gtk_widget_hide_on_delete), ncwin); +#endif ncwin->core.draw = nsgtk_local_history_draw; ncwin->core.key = nsgtk_local_history_key; |