summaryrefslogtreecommitdiff
path: root/gtk/gtkentry.c
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2010-12-20 03:14:38 +0100
committerMatthias Clasen <mclasen@redhat.com>2010-12-21 12:07:05 -0500
commit8f1f7439033e85ebf480c1c62e8e4647cba80b97 (patch)
treec5550e16f4a45329ce6d3523ef29fcdfc32f27ea /gtk/gtkentry.c
parenta9637f05b672666c6331cf4ca5d6f64734647b78 (diff)
downloadgtk+-8f1f7439033e85ebf480c1c62e8e4647cba80b97.tar.gz
gtk: Use g_object_unref instead of gdk_cursor_unref
Diffstat (limited to 'gtk/gtkentry.c')
-rw-r--r--gtk/gtkentry.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/gtk/gtkentry.c b/gtk/gtkentry.c
index b344349c60..ca42ba4b0b 100644
--- a/gtk/gtkentry.c
+++ b/gtk/gtkentry.c
@@ -2699,7 +2699,7 @@ update_cursors (GtkWidget *widget)
display = gtk_widget_get_display (widget);
cursor = gdk_cursor_new_for_display (display, GDK_XTERM);
gdk_window_set_cursor (icon_info->window, cursor);
- gdk_cursor_unref (cursor);
+ g_object_unref (cursor);
}
else
{
@@ -2863,7 +2863,7 @@ gtk_entry_realize (GtkWidget *widget)
gdk_window_set_user_data (priv->text_area, entry);
if (attributes_mask & GDK_WA_CURSOR)
- gdk_cursor_unref (attributes.cursor);
+ g_object_unref (attributes.cursor);
gtk_widget_style_attach (widget);
@@ -4029,7 +4029,7 @@ gtk_entry_motion_notify (GtkWidget *widget,
cursor = gdk_cursor_new_for_display (gtk_widget_get_display (widget), GDK_XTERM);
gdk_window_set_cursor (priv->text_area, cursor);
- gdk_cursor_unref (cursor);
+ g_object_unref (cursor);
priv->mouse_cursor_obscured = FALSE;
}
@@ -4142,7 +4142,7 @@ set_invisible_cursor (GdkWindow *window)
gdk_window_set_cursor (window, cursor);
- gdk_cursor_unref (cursor);
+ g_object_unref (cursor);
}
static void
@@ -4336,7 +4336,7 @@ gtk_entry_state_flags_changed (GtkWidget *widget,
gdk_window_set_cursor (priv->text_area, cursor);
if (cursor)
- gdk_cursor_unref (cursor);
+ g_object_unref (cursor);
priv->mouse_cursor_obscured = FALSE;