aboutsummaryrefslogtreecommitdiffstats
path: root/gtk/tcp_graph.c
diff options
context:
space:
mode:
authoretxrab <etxrab@f5534014-38df-0310-8fa8-9805f1628bb7>2011-08-25 08:05:40 +0000
committeretxrab <etxrab@f5534014-38df-0310-8fa8-9805f1628bb7>2011-08-25 08:05:40 +0000
commit46ba7c65560d472d2cced980efec77453e87c03d (patch)
treec092da8b9f999d8399e1adbe4477bd72b4cc7c2a /gtk/tcp_graph.c
parent3bd297294129331acd63ec697d0cf4371078bcf7 (diff)
GTK3 make the tcp_graph work.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@38730 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'gtk/tcp_graph.c')
-rw-r--r--gtk/tcp_graph.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/gtk/tcp_graph.c b/gtk/tcp_graph.c
index db848dfbc6..e88d9ebced 100644
--- a/gtk/tcp_graph.c
+++ b/gtk/tcp_graph.c
@@ -471,7 +471,9 @@ static void magnify_destroy (struct graph * );
static void magnify_draw (struct graph * );
static void magnify_get_geom (struct graph * , int , int );
static gboolean configure_event (GtkWidget * , GdkEventConfigure * , gpointer );
-#if !GTK_CHECK_VERSION(3,0,0)
+#if GTK_CHECK_VERSION(3,0,0)
+static gboolean draw_event(GtkWidget *widget, cairo_t *cr, gpointer user_data);
+#endif
static gboolean expose_event (GtkWidget * , GdkEventExpose * , gpointer );
#endif
static gboolean button_press_event (GtkWidget * , GdkEventButton * , gpointer );
@@ -3140,12 +3142,7 @@ draw_event(GtkWidget *widget _U_, cairo_t *cr, gpointer user_data)
cairo_rectangle (cr, g->wp.x + g->wp.width, g->wp.y, RMARGIN_WIDTH, g->wp.height);
cairo_fill (cr);
- cairo_destroy(cr);
- cr = NULL;
-
- /* Should these routines be copied here, or be given the cairo_t ??
- * In that case cr shouldn't be destroyed abowe
- */
+ /* Should these routines be copied here, or be given the cairo_t ?? */
graph_pixmap_display (g);
graph_title_pixmap_display (g);
axis_pixmap_display (g->x_axis);