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

List:       kde-commits
Subject:    [oxygen-gtk/gtk3] src: check widget type
From:       Hugo Pereira Da Costa <hugo () oxygen-icons ! org>
Date:       2013-12-10 15:20:54
Message-ID: E1VqP7G-0006Da-9n () scm ! kde ! org
[Download RAW message or body]

Git commit 7e2ccca4d1cd1bb0a49b78566fe81f9cd0e8fa40 by Hugo Pereira Da Costa.
Committed on 10/12/2013 at 10:40.
Pushed by hpereiradacosta into branch 'gtk3'.

check widget type

M  +2    -1    src/oxygenthemingengine.cpp

http://commits.kde.org/oxygen-gtk/7e2ccca4d1cd1bb0a49b78566fe81f9cd0e8fa40

diff --git a/src/oxygenthemingengine.cpp b/src/oxygenthemingengine.cpp
index 5fca877..d2287ba 100644
--- a/src/oxygenthemingengine.cpp
+++ b/src/oxygenthemingengine.cpp
@@ -743,7 +743,8 @@ namespace Oxygen
 
             // make sure that entry shadows are drawn
             borderStyle = GTK_BORDER_STYLE_INSET;
-            gtk_frame_set_shadow_type( GTK_FRAME( widget ), GTK_SHADOW_IN );
+            if( GTK_IS_FRAME( widget ) )
+            { gtk_frame_set_shadow_type( GTK_FRAME( widget ), GTK_SHADOW_IN ); }
 
         } else if( gtk_widget_path_is_type( path, GTK_TYPE_ENTRY ) && borderStyle != \
GTK_BORDER_STYLE_INSET ) {  


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

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