[gnome-games] Fix for GSEAL of GdkVisual
- From: Thomas Hindoe Paaboel Andersen <thomashpa src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-games] Fix for GSEAL of GdkVisual
- Date: Tue, 15 Jun 2010 21:14:59 +0000 (UTC)
commit f61954b8a720c2afc03ebe2c7f39935552f0e8a9
Author: Thomas Hindoe Paaboel Andersen <phomes gmail com>
Date: Tue Jun 15 22:47:36 2010 +0200
Fix for GSEAL of GdkVisual
GNOME bug #586731
aisleriot/board-noclutter.c | 2 +-
libgames-support/games-gtk-compat.h | 3 +++
2 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/aisleriot/board-noclutter.c b/aisleriot/board-noclutter.c
index 8b27d00..2ea5681 100644
--- a/aisleriot/board-noclutter.c
+++ b/aisleriot/board-noclutter.c
@@ -950,7 +950,7 @@ drag_begin (AisleriotBoard *board)
moving_pixmap = gdk_pixmap_new (priv->moving_cards_window,
width, height,
- gdk_drawable_get_visual (priv->moving_cards_window)->depth);
+ gdk_visual_get_depth (gdk_drawable_get_visual (priv->moving_cards_window)));
moving_mask = gdk_pixmap_new (priv->moving_cards_window,
width, height,
1);
diff --git a/libgames-support/games-gtk-compat.h b/libgames-support/games-gtk-compat.h
index dfb4212..75413bc 100644
--- a/libgames-support/games-gtk-compat.h
+++ b/libgames-support/games-gtk-compat.h
@@ -20,6 +20,9 @@
#define GAMES_GTK_COMPAT_H
G_BEGIN_DECLS
+#if !GTK_CHECK_VERSION (2, 22, 0)
+#define gdk_visual_get_depth(widget) ((widget)->depth)
+#endif /* GTK < 2.22.0 */
#if !GTK_CHECK_VERSION (2, 20, 0)
#define gtk_widget_get_realized(widget) (GTK_WIDGET_REALIZED(widget))
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]