summaryrefslogtreecommitdiff
path: root/libmate-desktop/mate-aboutdialog.c
diff options
context:
space:
mode:
authorStefano Karapetsas <[email protected]>2014-05-04 21:56:02 +0200
committerStefano Karapetsas <[email protected]>2014-05-04 21:56:02 +0200
commit5e54ce21100e02e0543d891e3bf8dc1782fa0db2 (patch)
treef6d4bfa6fff009b872c3b36289fcb8e6fc066390 /libmate-desktop/mate-aboutdialog.c
parent19fa2a293205c25f2be9791c11973ea6134e8758 (diff)
downloadmate-desktop-5e54ce21100e02e0543d891e3bf8dc1782fa0db2.tar.bz2
mate-desktop-5e54ce21100e02e0543d891e3bf8dc1782fa0db2.tar.xz
Fix gdk_cursor_unref deprecation
Diffstat (limited to 'libmate-desktop/mate-aboutdialog.c')
-rw-r--r--libmate-desktop/mate-aboutdialog.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/libmate-desktop/mate-aboutdialog.c b/libmate-desktop/mate-aboutdialog.c
index f2a8a24..b786b6b 100644
--- a/libmate-desktop/mate-aboutdialog.c
+++ b/libmate-desktop/mate-aboutdialog.c
@@ -603,8 +603,13 @@ mate_about_dialog_finalize (GObject *object)
g_slist_foreach (priv->visited_links, (GFunc)g_free, NULL);
g_slist_free (priv->visited_links);
+#if GTK_CHECK_VERSION (3, 0, 0)
+ g_object_unref (priv->hand_cursor);
+ g_object_unref (priv->regular_cursor);
+#else
gdk_cursor_unref (priv->hand_cursor);
gdk_cursor_unref (priv->regular_cursor);
+#endif
G_OBJECT_CLASS (mate_about_dialog_parent_class)->finalize (object);
}