aboutsummaryrefslogtreecommitdiffstats
path: root/ui/gtk/bytes_view.c
diff options
context:
space:
mode:
Diffstat (limited to 'ui/gtk/bytes_view.c')
-rw-r--r--ui/gtk/bytes_view.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/ui/gtk/bytes_view.c b/ui/gtk/bytes_view.c
index 54f65d159f..55b9c0ca85 100644
--- a/ui/gtk/bytes_view.c
+++ b/ui/gtk/bytes_view.c
@@ -257,9 +257,7 @@ bytes_view_unrealize(GtkWidget *widget)
bv->context = NULL;
}
/* if there are still events in the queue, this'll avoid segfault */
-#if GTK_CHECK_VERSION(3, 8, 0)
- gtk_widget_unregister_window(widget, gtk_widget_get_window(widget));
-#else
+#if !GTK_CHECK_VERSION(3, 8, 0)
gdk_window_set_user_data(gtk_widget_get_window(widget), NULL);
#endif