# HG changeset patch # User Sadrul Habib Chowdhury # Date 1187295823 0 # Node ID 4b8238290a9489316e443e8271c16680a049c473 # Parent 03d81500766d2fcf1b9cba264f49ef062d029e7d Make the close-button underlined, instead of bold, and change the cursor to hand. diff -r 03d81500766d -r 4b8238290a94 pidgin/gtkconv.c --- a/pidgin/gtkconv.c Mon Aug 13 06:24:47 2007 +0000 +++ b/pidgin/gtkconv.c Thu Aug 16 20:23:43 2007 +0000 @@ -8566,14 +8566,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; }