aboutsummaryrefslogtreecommitdiffstats
path: root/gtk/tcp_graph.c
diff options
context:
space:
mode:
authorjmayer <jmayer@f5534014-38df-0310-8fa8-9805f1628bb7>2011-09-14 21:36:29 +0000
committerjmayer <jmayer@f5534014-38df-0310-8fa8-9805f1628bb7>2011-09-14 21:36:29 +0000
commit9aff34771eaa2ee8f4c0d354a8426c4f55f82529 (patch)
tree205285a057edb0d23f109bbfe75a94b5a3992363 /gtk/tcp_graph.c
parent10051c8db724bd12fe57719c93bf666fac383d62 (diff)
Trivial fix that would create one of the three GDK_DEPRECATED errors.
Use the #define instead of "font" git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@38998 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'gtk/tcp_graph.c')
-rw-r--r--gtk/tcp_graph.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk/tcp_graph.c b/gtk/tcp_graph.c
index 845e6dc333..ef1e7138d9 100644
--- a/gtk/tcp_graph.c
+++ b/gtk/tcp_graph.c
@@ -802,7 +802,7 @@ static void create_drawing_area (struct graph *g)
#if GTK_CHECK_VERSION(3,0,0)
context = gtk_widget_get_style_context (g->drawing_area);
gtk_style_context_get (context, GTK_STATE_NORMAL,
- "font", &g->font,
+ GTK_STYLE_PROPERTY_FONT, &g->font,
NULL);
#else
g->font = gtk_widget_get_style(g->drawing_area)->font_desc;
@@ -2835,7 +2835,7 @@ static int ellipse_detect_collision (struct element *e, int x, int y)
static void cross_xor (struct graph *g, int x, int y)
{
-#if GTK_CHECK_VERSION(3,0,0)
+#if GTK_CHECK_VERSION(2,22,0)
GdkColor color_gray15 = {0x0, 0x2626, 0x2626, 0x2626};
cairo_t *cr;