[Xfce4-commits] [xfce/xfdesktop] 12/34: gdk_cursor_unref + gtk_icon_info_free -> g_object_unref
noreply at xfce.org
noreply at xfce.org
Sun Apr 16 07:06:46 CEST 2017
This is an automated email from the git hooks/post-receive script.
eric pushed a commit to branch master
in repository xfce/xfdesktop.
commit 99904f0ab334d7245f7ca2474809a1e5df534cd7
Author: Eric Koegel <eric.koegel at gmail.com>
Date: Wed Mar 1 09:44:37 2017 +0300
gdk_cursor_unref + gtk_icon_info_free -> g_object_unref
---
src/xfdesktop-file-utils.c | 6 +++---
src/xfdesktop-icon-view.c | 2 +-
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/xfdesktop-file-utils.c b/src/xfdesktop-file-utils.c
index c80b756..06bd3a3 100644
--- a/src/xfdesktop-file-utils.c
+++ b/src/xfdesktop-file-utils.c
@@ -388,7 +388,7 @@ xfdesktop_file_utils_get_icon(GIcon *icon,
ITHEME_FLAGS);
if(icon_info) {
pix_theme = gtk_icon_info_load_icon(icon_info, NULL);
- gtk_icon_info_free(icon_info);
+ g_object_unref(icon_info);
}
} else if(G_IS_LOADABLE_ICON(base_icon)) {
GInputStream *stream = g_loadable_icon_load(G_LOADABLE_ICON(base_icon),
@@ -477,7 +477,7 @@ xfdesktop_file_utils_add_emblems(GdkPixbuf *pix, GList *emblems)
ITHEME_FLAGS);
if(icon_info) {
emblem_pix = gtk_icon_info_load_icon(icon_info, NULL);
- gtk_icon_info_free(icon_info);
+ g_object_unref(icon_info);
}
if(emblem_pix) {
@@ -549,7 +549,7 @@ xfdesktop_file_utils_set_window_cursor(GtkWindow *window,
cursor = gdk_cursor_new_for_display(gtk_widget_get_display(GTK_WIDGET(window)), cursor_type);
if(G_LIKELY(cursor)) {
gdk_window_set_cursor(gtk_widget_get_window(GTK_WIDGET(window)), cursor);
- gdk_cursor_unref(cursor);
+ g_object_unref(cursor);
}
}
diff --git a/src/xfdesktop-icon-view.c b/src/xfdesktop-icon-view.c
index 3580bed..b76190f 100644
--- a/src/xfdesktop-icon-view.c
+++ b/src/xfdesktop-icon-view.c
@@ -1375,7 +1375,7 @@ xfdesktop_icon_view_motion_notify(GtkWidget *widget,
if(G_UNLIKELY(icon_view->priv->single_click)) {
GdkCursor *cursor = gdk_cursor_new_for_display(gtk_widget_get_display(widget), GDK_HAND2);
gdk_window_set_cursor(evt->window, cursor);
- gdk_cursor_unref(cursor);
+ g_object_unref(cursor);
}
if(!xfdesktop_icon_get_extents(icon_view->priv->item_under_pointer,
NULL, NULL, &extents)
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list