g_object_unref(cursor) craches pre GTK 3.0 protect it with

#if GTK_CHECK_VERSION(3,0,0)

svn path=/trunk/; revision=42207
This commit is contained in:
Anders Broman 2012-04-23 13:39:12 +00:00
parent 0819722ad8
commit 6c88c479c6

View file

@ -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)