[Libreoffice-commits] .: vcl/unx

Caolán McNamara caolan at kemper.freedesktop.org
Wed Feb 16 12:51:27 PST 2011


 vcl/unx/gtk/app/gtkdata.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 99564198cdf9b30c73dff02432a61323ff044296
Author: Kurosawa Takeshi <taken.spc at gmail.com>
Date:   Fri Feb 11 20:08:38 2011 +0900

    Use GDK_HAND2 mouse cursor instead of GDK_HAND1
    
    LibreOffice uses GDK_HAND1 for POINTER_REFHAND and GDK_HAND2 for POINTER_HAND.
    However there is not much difference between GDK_HAND1 and GDK_HAND2.
    GDK_HAND1 means "a right-pointing hand" and GDK_HAND2 means "a left-pointing hand".
    
    Since GDK_HAND2 is much more popular and some cursor themes don't contain cursor file for GDK_HAND1, we should use GDK_HAND2 for both POINTER_REFHAND and POINTER_HAND.

diff --git a/vcl/unx/gtk/app/gtkdata.cxx b/vcl/unx/gtk/app/gtkdata.cxx
index 40c2aed..90fabe8 100644
--- a/vcl/unx/gtk/app/gtkdata.cxx
+++ b/vcl/unx/gtk/app/gtkdata.cxx
@@ -391,7 +391,7 @@ GdkCursor *GtkSalDisplay::getCursor( PointerStyle ePointerStyle )
             MAP_BUILTIN( POINTER_HSIZEBAR, GDK_SB_H_DOUBLE_ARROW );
             MAP_BUILTIN( POINTER_VSIZEBAR, GDK_SB_V_DOUBLE_ARROW );
 
-            MAP_BUILTIN( POINTER_REFHAND, GDK_HAND1 );
+            MAP_BUILTIN( POINTER_REFHAND, GDK_HAND2 );
             MAP_BUILTIN( POINTER_HAND, GDK_HAND2 );
             MAP_BUILTIN( POINTER_PEN, GDK_PENCIL );
 


More information about the Libreoffice-commits mailing list