Don't call gtk_widget_unregister_window() in bytes_view_unrealize() after GTK+ 3.8.0
[metze/wireshark/wip.git] / ui / gtk / bytes_view.c
index 54f65d159f4828b216444945c05678d29d3c2975..55b9c0ca85cda0ea36d298ef9bd89ee4e66be245 100644 (file)
@@ -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