Make the close-button underlined, instead of bold, and change the cursor to hand.

Thu, 16 Aug 2007 20:23:43 +0000

author
Sadrul Habib Chowdhury <sadrul@pidgin.im>
date
Thu, 16 Aug 2007 20:23:43 +0000
changeset 19374
43d58745c098
parent 19372
9463e376e5d4
child 19402
8f302e7431ba

Make the close-button underlined, instead of bold, and change the cursor to hand.

pidgin/gtkconv.c file | annotate | diff | comparison | revisions
--- 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;
 }
 

mercurial