[vte/vte-next] Replace deprecated gdk_cursor_{ref, unref} by g_object_{ref, unref}
- From: Christian Persch <chpe src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vte/vte-next] Replace deprecated gdk_cursor_{ref, unref} by g_object_{ref, unref}
- Date: Sun, 30 Oct 2011 21:23:12 +0000 (UTC)
commit 3e20e483393caea3fb9114d165dcdfbaa63c45f4
Author: Christian Persch <chpe gnome org>
Date: Sun Oct 30 22:15:41 2011 +0100
Replace deprecated gdk_cursor_{ref,unref} by g_object_{ref,unref}
src/vte.c | 14 +++++++-------
1 files changed, 7 insertions(+), 7 deletions(-)
---
diff --git a/src/vte.c b/src/vte.c
index ae1432f..b976554 100644
--- a/src/vte.c
+++ b/src/vte.c
@@ -1367,7 +1367,7 @@ regex_match_clear_cursor (struct vte_match_regex *regex)
switch (regex->cursor_mode) {
case VTE_REGEX_CURSOR_GDKCURSOR:
if (regex->cursor.cursor != NULL) {
- gdk_cursor_unref(regex->cursor.cursor);
+ g_object_unref(regex->cursor.cursor);
regex->cursor.cursor = NULL;
}
break;
@@ -1405,7 +1405,7 @@ vte_view_set_cursor_from_regex_match(VteView *terminal, struct vte_match_regex *
switch (regex->cursor_mode) {
case VTE_REGEX_CURSOR_GDKCURSOR:
if (regex->cursor.cursor != NULL) {
- cursor = gdk_cursor_ref(regex->cursor.cursor);
+ cursor = g_object_ref(regex->cursor.cursor);
}
break;
case VTE_REGEX_CURSOR_GDKCURSORTYPE:
@@ -1422,7 +1422,7 @@ vte_view_set_cursor_from_regex_match(VteView *terminal, struct vte_match_regex *
gdk_window_set_cursor (gtk_widget_get_window (&terminal->widget), cursor);
if (cursor)
- gdk_cursor_unref(cursor);
+ g_object_unref(cursor);
}
/**
@@ -1566,7 +1566,7 @@ vte_view_match_set_cursor(VteView *terminal, int tag, GdkCursor *cursor)
tag);
regex_match_clear_cursor(regex);
regex->cursor_mode = VTE_REGEX_CURSOR_GDKCURSOR;
- regex->cursor.cursor = cursor ? gdk_cursor_ref(cursor) : NULL;
+ regex->cursor.cursor = cursor ? g_object_ref(cursor) : NULL;
vte_view_match_hilite_clear(terminal);
}
@@ -8267,11 +8267,11 @@ vte_view_unrealize(GtkWidget *widget)
/* Deallocate the cursors. */
terminal->pvt->mouse_cursor_visible = FALSE;
- gdk_cursor_unref(terminal->pvt->mouse_default_cursor);
+ g_object_unref(terminal->pvt->mouse_default_cursor);
terminal->pvt->mouse_default_cursor = NULL;
- gdk_cursor_unref(terminal->pvt->mouse_mousing_cursor);
+ g_object_unref(terminal->pvt->mouse_mousing_cursor);
terminal->pvt->mouse_mousing_cursor = NULL;
- gdk_cursor_unref(terminal->pvt->mouse_inviso_cursor);
+ g_object_unref(terminal->pvt->mouse_inviso_cursor);
terminal->pvt->mouse_inviso_cursor = NULL;
vte_view_match_hilite_clear(terminal);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]