aboutsummaryrefslogtreecommitdiffstats
path: root/gtk/tcp_graph.c
diff options
context:
space:
mode:
authormartinm <martinm@f5534014-38df-0310-8fa8-9805f1628bb7>2011-08-24 09:41:17 +0000
committermartinm <martinm@f5534014-38df-0310-8fa8-9805f1628bb7>2011-08-24 09:41:17 +0000
commit63f607528411c12597944844091f44af5ea1fafa (patch)
tree91926cd895aaf78f7f4741e53d1029fe5dad5ad0 /gtk/tcp_graph.c
parentdd8ad289541d85a5f0642945ae1d54d6381531eb (diff)
Call gdk_cairo_create() for earlier versions of gtk.
Is this correct? git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@38711 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'gtk/tcp_graph.c')
-rw-r--r--gtk/tcp_graph.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/tcp_graph.c b/gtk/tcp_graph.c
index 3be9610135..a112b17837 100644
--- a/gtk/tcp_graph.c
+++ b/gtk/tcp_graph.c
@@ -2291,7 +2291,7 @@ static void draw_element_ellipse (struct graph *g, struct element *e)
#if GTK_CHECK_VERSION(2,22,0)
cr = cairo_create (g->surface[1^g->displayed]);
#else
- cr = cairo_create (g->pixmap[1^g->displayed]);
+ cr = gdk_cairo_create (g->pixmap[1^g->displayed]);
#endif
cairo_translate (cr, x + w / 2., y + h / 2.);
cairo_scale (cr, w / 2., h / 2.);