summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--capplets/about-me/mate-about-me-password.c4
-rw-r--r--capplets/about-me/mate-about-me.c8
2 files changed, 12 insertions, 0 deletions
diff --git a/capplets/about-me/mate-about-me-password.c b/capplets/about-me/mate-about-me-password.c
index e34c8662..567ef94e 100644
--- a/capplets/about-me/mate-about-me-password.c
+++ b/capplets/about-me/mate-about-me-password.c
@@ -685,7 +685,11 @@ passdlg_set_busy (PasswordDialog *pdialog, gboolean busy)
gdk_display_flush (display);
if (busy) {
+#if GTK_CHECK_VERSION (3, 0, 0)
+ g_object_unref (cursor);
+#else
gdk_cursor_unref (cursor);
+#endif
}
/* Disable/Enable UI */
diff --git a/capplets/about-me/mate-about-me.c b/capplets/about-me/mate-about-me.c
index 68a3f8bb..e379467a 100644
--- a/capplets/about-me/mate-about-me.c
+++ b/capplets/about-me/mate-about-me.c
@@ -345,7 +345,11 @@ about_me_icon_theme_changed (GtkWindow *window,
if (icon != NULL) {
g_free (me->person);
me->person = g_strdup (gtk_icon_info_get_filename (icon));
+#if GTK_CHECK_VERSION (3, 8, 0)
+ g_object_unref (icon);
+#else
gtk_icon_info_free (icon);
+#endif
}
if (me->have_image)
@@ -420,7 +424,11 @@ about_me_setup_dialog (void)
icon = gtk_icon_theme_lookup_icon (me->theme, "stock_person", 80, 0);
if (icon != NULL) {
me->person = g_strdup (gtk_icon_info_get_filename (icon));
+#if GTK_CHECK_VERSION (3, 8, 0)
+ g_object_unref (icon);
+#else
gtk_icon_info_free (icon);
+#endif
}
g_signal_connect_object (me->theme, "changed",