[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: =?utf-8?q?=5Boxygen-gtk/1=2E0=5D_src=3A_use_either_GTK=5FWIDGET?=
From: Hugo Pereira Da Costa <hugo () oxygen-icons ! org>
Date: 2011-01-25 10:59:50
Message-ID: 20110125105950.1F359A6094 () git ! kde ! org
[Download RAW message or body]
Git commit 2d85aae11223339bd9e87eeb5a1b5e7a56041bd3 by Hugo Pereira Da Costa.
Pushed by hpereiradacosta into branch '1.0'.
use either GTK_WIDGET_REALIZED or gtk_widget_get_realized() depending on Gtk version.
M +4 -0 src/oxygenargbhelper.cpp
http://commits.kde.org/d1a86b4e/2d85aae11223339bd9e87eeb5a1b5e7a56041bd3
diff --git a/src/oxygenargbhelper.cpp b/src/oxygenargbhelper.cpp
index 0c5579d..cba3f64 100644
--- a/src/oxygenargbhelper.cpp
+++ b/src/oxygenargbhelper.cpp
@@ -100,7 +100,11 @@ namespace Oxygen
if( !GTK_IS_WINDOW( widget ) ) return TRUE;
// make sure widget has not been realized already
+ #if GTK_CHECK_VERSION(2, 20, 0)
if( gtk_widget_get_realized( widget ) ) return TRUE;
+ #else
+ if( GTK_WIDGET_REALIZED( widget ) ) return TRUE;
+ #endif
// cast to window
GtkWindow* window( GTK_WINDOW( widget ) );
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic