[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [Oxygen-Gtk/1.0] 6f5deef: Mark 'active' arrows as hovered,
From:       Hugo Pereira Da Costa <hugo () oxygen-icons ! org>
Date:       2010-12-16 17:14:16
Message-ID: 20101216171416.620D2A60B0 () git ! kde ! org
[Download RAW message or body]

commit 6f5deef6a44a9f34179cad9db2e9ed4ab08da215
branch 1.0
Author: Hugo Pereira Da Costa <hugo@oxygen-icons.org>
Date:   Thu Dec 16 18:13:22 2010 +0100

    Mark 'active' arrows as hovered, for consistency with Qt.
    Thanks to CraigD for noticing.

diff --git a/src/oxygenstylewrapper.cpp b/src/oxygenstylewrapper.cpp
index 13da18b..dbc3a11 100644
--- a/src/oxygenstylewrapper.cpp
+++ b/src/oxygenstylewrapper.cpp
@@ -1554,6 +1554,9 @@ namespace Oxygen
         StyleOptions options( Contrast );
         options |= StyleOptions( widget, state );
 
+        // Arrows which are active are painted as hovered
+        if( state == GTK_STATE_ACTIVE ) options |= Hover;
+
         if( d.isTearOffMenuItem() )
         {
             if( widget && gtk_widget_get_state( widget ) != GTK_STATE_PRELIGHT && \
GTK_IS_MENU( gtk_widget_get_parent( widget ) ) && GTK_MENU( gtk_widget_get_parent( \
widget ) )->torn_off )


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic