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

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

Git commit 0fd00d770d310f1b7e86d3e7bdff67a4c786aabe by Hugo Pereira Da Costa.
Committed on 10/12/2013 at 10:56.
Pushed by hpereiradacosta into branch 'gtk3'.

check widget

M  +3    -0    src/animations/oxygeninnershadowdata.cpp

http://commits.kde.org/oxygen-gtk/0fd00d770d310f1b7e86d3e7bdff67a4c786aabe

diff --git a/src/animations/oxygeninnershadowdata.cpp b/src/animations/oxygeninnershadowdata.cpp
index c6fa9d0..165f974 100644
--- a/src/animations/oxygeninnershadowdata.cpp
+++ b/src/animations/oxygeninnershadowdata.cpp
@@ -85,6 +85,9 @@ namespace Oxygen
 
         #if ENABLE_INNER_SHADOWS_HACK
 
+        // check widget
+        if( !GTK_IS_WIDGET( widget ) ) return;
+
         // make sure widget is not already in map
         if( _childrenData.find( widget ) != _childrenData.end() ) return;
 

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

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