# HG changeset patch # User Sadrul Habib Chowdhury # Date 1187297604 0 # Node ID 20c2c5a68aee090ba35e4f086fad004defd3e769 # Parent f12bf92d64ec3826341a38563cad1dfabecaa8b5# Parent 4b8238290a9489316e443e8271c16680a049c473 merge of '7d1dce3bbcb28d37b103c86124b8b1fe54132760' and 'e315c59c42c477daea2f056dfe196f21b18bece2' diff -r f12bf92d64ec -r 20c2c5a68aee pidgin/gtkconv.c --- a/pidgin/gtkconv.c Thu Aug 16 18:33:00 2007 +0000 +++ b/pidgin/gtkconv.c Thu Aug 16 20:53:24 2007 +0000 @@ -8608,14 +8608,26 @@ static gboolean close_button_left_cb(GtkWidget *widget, GdkEventCrossing *event, GtkLabel *label) { + static GdkCursor *ptr = NULL; + if (ptr == NULL) { + ptr = gdk_cursor_new(GDK_LEFT_PTR); + } + gtk_label_set_markup(label, "×"); + gdk_window_set_cursor(event->window, ptr); return FALSE; } static gboolean close_button_entered_cb(GtkWidget *widget, GdkEventCrossing *event, GtkLabel *label) { - gtk_label_set_markup(label, "×"); + static GdkCursor *hand = NULL; + if (hand == NULL) { + hand = gdk_cursor_new(GDK_HAND2); + } + + gtk_label_set_markup(label, "×"); + gdk_window_set_cursor(event->window, hand); return FALSE; }