/pidgin/main: 3113b96a5b7b: Use pidgin_set/clear_cursor.

Elliott Sales de Andrade qulogic at pidgin.im
Tue Jul 24 04:03:45 EDT 2012


Changeset: 3113b96a5b7b424494e0ea3bfb7c5939316cffd7
Author:	 Elliott Sales de Andrade <qulogic at pidgin.im>
Date:	 2012-07-23 20:13 -0400
Branch:	 default
URL: http://hg.pidgin.im/pidgin/main/rev/3113b96a5b7b

Description:

Use pidgin_set/clear_cursor.

diffstat:

 pidgin/gtkconv.c |  15 ++++++---------
 1 files changed, 6 insertions(+), 9 deletions(-)

diffs (46 lines):

diff --git a/pidgin/gtkconv.c b/pidgin/gtkconv.c
--- a/pidgin/gtkconv.c
+++ b/pidgin/gtkconv.c
@@ -1142,7 +1142,6 @@
 	PurpleConversation *conv;
 	PurpleLogType type;
 	PidginBuddyList *gtkblist;
-	GdkCursor *cursor;
 	const char *name;
 	PurpleAccount *account;
 	GSList *buddies;
@@ -1159,10 +1158,8 @@
 
 	gtkblist = pidgin_blist_get_default_gtk_blist();
 
-	cursor = gdk_cursor_new(GDK_WATCH);
-	gdk_window_set_cursor(gtkblist->window->window, cursor);
-	gdk_window_set_cursor(win->window->window, cursor);
-	gdk_cursor_unref(cursor);
+	pidgin_set_cursor(gtkblist->window, GDK_WATCH);
+	pidgin_set_cursor(win->window, GDK_WATCH);
 
 	name = purple_conversation_get_name(conv);
 	account = purple_conversation_get_account(conv);
@@ -1175,8 +1172,8 @@
 		{
 			pidgin_log_show_contact((PurpleContact *)node->parent);
 			g_slist_free(buddies);
-			gdk_window_set_cursor(gtkblist->window->window, NULL);
-			gdk_window_set_cursor(win->window->window, NULL);
+			pidgin_clear_cursor(gtkblist->window);
+			pidgin_clear_cursor(win->window);
 			return;
 		}
 	}
@@ -1184,8 +1181,8 @@
 
 	pidgin_log_show(type, name, account);
 
-	gdk_window_set_cursor(gtkblist->window->window, NULL);
-	gdk_window_set_cursor(win->window->window, NULL);
+	pidgin_clear_cursor(gtkblist->window);
+	pidgin_clear_cursor(win->window);
 }
 
 static void



More information about the Commits mailing list