Re: [patch] fix bug #97486 (In single click mode, underlining items is irritating)



On 2 Nov 2002, Jan Arne Petersen wrote:

> Hi,
> 
> this patch fixes bug #97486. There are no longer underlined icons, but
> there is a hand cursor in single click mode.
> 
@@ -1443,8 +1426,13 @@
                        icon_item->details->is_prelit = FALSE;
                        icon_item->details->is_active = 0;                      
                        icon_item->details->is_highlighted_for_drop = FALSE;
-                       update_label_layouts (icon_item);
                        eel_canvas_item_request_update (item);
+
+                       /* show default cursor */
+                       cursor = gdk_cursor_new_for_display (gdk_display_get_default(),
+                                                            GDK_LEFT_PTR);
+                       gdk_window_set_cursor (((GdkEventAny *)event)->window, cursor);
+                       gdk_cursor_unref (cursor);
                }
                return TRUE;

Set the window cursor to NULL instead here.
                

-- 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
 Alexander Larsson                                            Red Hat, Inc 
                   alexl redhat com    alla lysator liu se 
He's a lounge-singing devious senator on the wrong side of the law. She's a 
supernatural tempestuous research scientist from beyond the grave. They fight 
crime! 




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]