[gtranslator] g_clear_object instead of deprecated gdk_cursor_unref
- From: Ignacio Casal Quinteiro <icq src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtranslator] g_clear_object instead of deprecated gdk_cursor_unref
- Date: Thu, 2 Feb 2012 13:34:27 +0000 (UTC)
commit 8bed86a61d357688d2bebe4dcec69db46b715d78
Author: Ignacio Casal Quinteiro <icq gnome org>
Date: Thu Feb 2 14:38:24 2012 +0100
g_clear_object instead of deprecated gdk_cursor_unref
src/gtr-context.c | 13 ++-----------
1 files changed, 2 insertions(+), 11 deletions(-)
---
diff --git a/src/gtr-context.c b/src/gtr-context.c
index ae07186..fc69fbd 100644
--- a/src/gtr-context.c
+++ b/src/gtr-context.c
@@ -455,17 +455,8 @@ gtr_context_panel_dispose (GObject *object)
DEBUG_PRINT ("Dispose context");
- if (panel->priv->hand_cursor != NULL)
- {
- gdk_cursor_unref (panel->priv->hand_cursor);
- panel->priv->hand_cursor = NULL;
- }
-
- if (panel->priv->regular_cursor != NULL)
- {
- gdk_cursor_unref (panel->priv->regular_cursor);
- panel->priv->regular_cursor = NULL;
- }
+ g_clear_object (&panel->priv->hand_cursor);
+ g_clear_object (&panel->priv->regular_cursor);
G_OBJECT_CLASS (gtr_context_panel_parent_class)->dispose (object);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]