[gnome-screenshot] screenshot: don't use gdk_cursor_unref()
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-screenshot] screenshot: don't use gdk_cursor_unref()
- Date: Tue, 25 Oct 2011 14:02:21 +0000 (UTC)
commit def86f59c81fb1db6729ee6359be0923ca7f7363
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Tue Oct 25 09:51:11 2011 -0400
screenshot: don't use gdk_cursor_unref()
src/screenshot-area-selection.c | 4 ++--
src/screenshot-dialog.c | 2 +-
src/screenshot-utils.c | 2 +-
3 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/screenshot-area-selection.c b/src/screenshot-area-selection.c
index 01475d8..e4eba7a 100644
--- a/src/screenshot-area-selection.c
+++ b/src/screenshot-area-selection.c
@@ -244,7 +244,7 @@ screenshot_select_area_async (SelectAreaCallback callback)
NULL, cursor,
GDK_CURRENT_TIME) != GDK_GRAB_SUCCESS)
{
- gdk_cursor_unref (cursor);
+ g_object_unref (cursor);
goto out;
}
@@ -261,7 +261,7 @@ screenshot_select_area_async (SelectAreaCallback callback)
gdk_pointer_ungrab (GDK_CURRENT_TIME);
gtk_widget_destroy (data.window);
- gdk_cursor_unref (cursor);
+ g_object_unref (cursor);
gdk_flush ();
diff --git a/src/screenshot-dialog.c b/src/screenshot-dialog.c
index f51c2cc..b988c83 100644
--- a/src/screenshot-dialog.c
+++ b/src/screenshot-dialog.c
@@ -320,7 +320,7 @@ screenshot_dialog_set_busy (ScreenshotDialog *dialog,
/* Change cursor to busy */
cursor = gdk_cursor_new (GDK_WATCH);
gdk_window_set_cursor (window, cursor);
- gdk_cursor_unref (cursor);
+ g_object_unref (cursor);
}
else
{
diff --git a/src/screenshot-utils.c b/src/screenshot-utils.c
index e19a841..854be46 100644
--- a/src/screenshot-utils.c
+++ b/src/screenshot-utils.c
@@ -541,7 +541,7 @@ screenshot_get_pixbuf_fallback (GdkWindow *window,
}
g_object_unref (cursor_pixbuf);
- gdk_cursor_unref (cursor);
+ g_object_unref (cursor);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]