aboutsummaryrefslogtreecommitdiffstats
path: root/gtk/tcp_graph.c
diff options
context:
space:
mode:
authorstig <stig@f5534014-38df-0310-8fa8-9805f1628bb7>2011-08-24 08:28:39 +0000
committerstig <stig@f5534014-38df-0310-8fa8-9805f1628bb7>2011-08-24 08:28:39 +0000
commit078d3488e9f908a4d42378bf3820924bd642a0df (patch)
tree68bb0db412d1023e25a88aff71796065b4e00ffb /gtk/tcp_graph.c
parent11dd67e882ee7e5e1bf528881e31ae3983c3a629 (diff)
Simplified some GTK_CHECK_VERSION to improve readability.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@38708 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'gtk/tcp_graph.c')
-rw-r--r--gtk/tcp_graph.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/gtk/tcp_graph.c b/gtk/tcp_graph.c
index d89d90b71c..93ebeea29a 100644
--- a/gtk/tcp_graph.c
+++ b/gtk/tcp_graph.c
@@ -309,8 +309,7 @@ struct graph {
* temporary
*/
PangoFontDescription *font; /* font used for annotations etc. */
-#if GTK_CHECK_VERSION(3,0,0)
-#else
+#if !GTK_CHECK_VERSION(3,0,0)
GdkGC *fg_gc;
#endif
#if GTK_CHECK_VERSION(2,22,0)
@@ -366,8 +365,7 @@ struct graph {
} gt;
};
-#if GTK_CHECK_VERSION(3,0,0)
-#else
+#if !GTK_CHECK_VERSION(3,0,0)
static GdkGC *xor_gc = NULL;
#endif
static int refnum=0;
@@ -806,8 +804,7 @@ static void create_drawing_area (struct graph *g)
#else
g->font = gtk_widget_get_style(g->drawing_area)->font_desc;
#endif
-#if GTK_CHECK_VERSION(3,0,0)
-#else
+#if !GTK_CHECK_VERSION(3,0,0)
colormap = gtk_widget_get_colormap(GTK_WIDGET(g->drawing_area));
if (!xor_gc) {
xor_gc = gdk_gc_new (gtk_widget_get_window(g->drawing_area));