diff options
author | Caolán McNamara <caolanm@redhat.com> | 2016-05-24 12:30:55 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2016-05-24 12:30:55 +0100 |
commit | 7528fd4491f271f4b0faf1ca5d858bb9fac124ec (patch) | |
tree | 7d4d5420ea3bcdc2979825a1a24958f1587cb5a5 /vcl/unx | |
parent | a6173cae917bbc4c1490675adbdb69365e285b6d (diff) |
support old gtk3s
Change-Id: I20429aa8c06a319f9eb11079b320211f38e16827
Diffstat (limited to 'vcl/unx')
-rw-r--r-- | vcl/unx/gtk3/gtk3gtkdata.cxx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/vcl/unx/gtk3/gtk3gtkdata.cxx b/vcl/unx/gtk3/gtk3gtkdata.cxx index 3aae62b9e913..ca210e01ae72 100644 --- a/vcl/unx/gtk3/gtk3gtkdata.cxx +++ b/vcl/unx/gtk3/gtk3gtkdata.cxx @@ -200,7 +200,13 @@ GdkCursor* GtkSalDisplay::getFromXBM( const unsigned char *pBitmap, cairo_mask_surface(cr, mask, 0, 0); cairo_destroy(cr); +#if GTK_CHECK_VERSION(3,10,0) GdkCursor *cursor = gdk_cursor_new_from_surface(m_pGdkDisplay, s, nXHot, nYHot); +#else + GdkPixbuf *pixbuf = gdk_pixbuf_get_from_surface(s, 0, 0, nWidth, nHeight); + GdkCursor *cursor = gdk_cursor_new_from_pixbuf(m_pGdkDisplay, pixbuf, nXHot, nYHot); + g_object_unref(pixbuf); +#endif cairo_surface_destroy(s); cairo_surface_destroy(mask); |