aboutsummaryrefslogtreecommitdiffstats
path: root/ui/gtk/tcp_graph.c
diff options
context:
space:
mode:
authorAnders Broman <anders.broman@ericsson.com>2012-04-23 13:39:12 +0000
committerAnders Broman <anders.broman@ericsson.com>2012-04-23 13:39:12 +0000
commit6c88c479c6538a7148936062e8b6d7c0d6373222 (patch)
tree8e6b5eed6795f5170793498bf60086575c388126 /ui/gtk/tcp_graph.c
parent0819722ad8fea31124836b40122dafb2e8f4556b (diff)
g_object_unref(cursor) craches pre GTK 3.0 protect it with
#if GTK_CHECK_VERSION(3,0,0) svn path=/trunk/; revision=42207
Diffstat (limited to 'ui/gtk/tcp_graph.c')
-rw-r--r--ui/gtk/tcp_graph.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/ui/gtk/tcp_graph.c b/ui/gtk/tcp_graph.c
index d7bd311ea9..74f61eedba 100644
--- a/ui/gtk/tcp_graph.c
+++ b/ui/gtk/tcp_graph.c
@@ -593,7 +593,11 @@ static void set_busy_cursor(GdkWindow *w)
cursor = gdk_cursor_new(GDK_WATCH);
gdk_window_set_cursor(w, cursor);
gdk_flush();
- g_object_unref(cursor);
+#if GTK_CHECK_VERSION(3,0,0)
+ g_object_unref(cursor)
+#else
+ gdk_cursor_unref(cursor);
+#endif
}
static void unset_busy_cursor(GdkWindow *w)