Mercurial > pidgin.yaz
changeset 19232:4b8238290a94
Make the close-button underlined, instead of bold, and change the cursor to hand.
author | Sadrul Habib Chowdhury <imadil@gmail.com> |
---|---|
date | Thu, 16 Aug 2007 20:23:43 +0000 |
parents | 03d81500766d |
children | 20c2c5a68aee |
files | pidgin/gtkconv.c |
diffstat | 1 files changed, 13 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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, "<b>×</b>"); + static GdkCursor *hand = NULL; + if (hand == NULL) { + hand = gdk_cursor_new(GDK_HAND2); + } + + gtk_label_set_markup(label, "<u>×</u>"); + gdk_window_set_cursor(event->window, hand); return FALSE; }