summaryrefslogtreecommitdiff
path: root/ui/gtk/old-gtk-compat.h
diff options
context:
space:
mode:
authorJakub Zawadzki <darkjames-ws@darkjames.pl>2012-07-15 20:24:48 +0000
committerJakub Zawadzki <darkjames-ws@darkjames.pl>2012-07-15 20:24:48 +0000
commitb69c48df5ae7b42e5d5ef6f1720727f6693efee3 (patch)
treec2f7ceaffc25497f15e1423b40a085c7a4f10bac /ui/gtk/old-gtk-compat.h
parent14ba8d892e5137ba9623e6737cfec44485227df2 (diff)
downloadwireshark-b69c48df5ae7b42e5d5ef6f1720727f6693efee3.tar.gz
Fix bug #6690: Wireshark quite slow displaying frames with many detail pane nodes and large byteviews
Add custom widget to render hexdump or bitsdump. svn path=/trunk/; revision=43728
Diffstat (limited to 'ui/gtk/old-gtk-compat.h')
-rw-r--r--ui/gtk/old-gtk-compat.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/ui/gtk/old-gtk-compat.h b/ui/gtk/old-gtk-compat.h
index 30bdcdd4d6..50275e3069 100644
--- a/ui/gtk/old-gtk-compat.h
+++ b/ui/gtk/old-gtk-compat.h
@@ -58,6 +58,9 @@
#if !GTK_CHECK_VERSION (2, 20, 0)
# define gtk_widget_get_realized(x) GTK_WIDGET_REALIZED(x)
+# define _gtk_widget_set_realized_true(x) GTK_WIDGET_SET_FLAGS(widget, GTK_REALIZED)
+#else
+# define _gtk_widget_set_realized_true(x) gtk_widget_set_realized(x, TRUE)
#endif
#if !GTK_CHECK_VERSION (2, 22, 0)