[Goodies-commits] r7316 - in xfce4-dict/trunk: . lib
Enrico Troeger
enrico at xfce.org
Sat May 9 10:43:00 CEST 2009
Author: enrico
Date: 2009-05-09 08:43:00 +0000 (Sat, 09 May 2009)
New Revision: 7316
Modified:
xfce4-dict/trunk/ChangeLog
xfce4-dict/trunk/lib/gui.c
Log:
Partly revert last change and use the proper cursor for the textview window again.
Modified: xfce4-dict/trunk/ChangeLog
===================================================================
--- xfce4-dict/trunk/ChangeLog 2009-05-05 08:22:37 UTC (rev 7315)
+++ xfce4-dict/trunk/ChangeLog 2009-05-09 08:43:00 UTC (rev 7316)
@@ -1,3 +1,9 @@
+2009-04-19 Enrico Tröger <enrico(dot)troeger(at)uvena(dot)de>
+
+ * Partly revert last change and use the proper cursor for the textview
+ window again.
+
+
2009-03-05 Enrico Tröger <enrico(dot)troeger(at)uvena(dot)de>
* Don't allocate the default cursor unnecessarily and reuse the
Modified: xfce4-dict/trunk/lib/gui.c
===================================================================
--- xfce4-dict/trunk/lib/gui.c 2009-05-05 08:22:37 UTC (rev 7315)
+++ xfce4-dict/trunk/lib/gui.c 2009-05-09 08:43:00 UTC (rev 7316)
@@ -40,6 +40,7 @@
static gboolean hovering_over_link = FALSE;
static GdkCursor *hand_cursor = NULL;
+static GdkCursor *regular_cursor = NULL;
static gboolean entry_is_dirty = FALSE;
static const GdkColor error_color = { 0, 0x8000, 0, 0 }; /* dark red */
@@ -164,7 +165,7 @@
if (hovering_over_link)
gdk_window_set_cursor(win, hand_cursor);
else
- gdk_window_set_cursor(win, NULL);
+ gdk_window_set_cursor(win, regular_cursor);
}
if (tags)
@@ -512,6 +513,8 @@
{
if (hand_cursor)
gdk_cursor_unref(hand_cursor);
+ if (regular_cursor)
+ gdk_cursor_unref(regular_cursor);
}
@@ -643,6 +646,7 @@
/* support for links (cross-references) for dictd responses */
{
hand_cursor = gdk_cursor_new(GDK_HAND2);
+ regular_cursor = gdk_cursor_new(GDK_XTERM);
g_signal_connect(dd->main_textview, "key-press-event",
G_CALLBACK(textview_key_press_event), dd);
More information about the Goodies-commits
mailing list