[gnome-games] GSEAL: window is already available directly. Bug #586731



commit e170b8cab5f8e8667dae83c5fbad91bb6aa834e1
Author: Thomas Hindoe Paaboel Andersen <phomes gmail com>
Date:   Sun Mar 28 20:24:54 2010 +0200

    GSEAL: window is already available directly. Bug #586731

 aisleriot/ar-clutter-embed.c |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/aisleriot/ar-clutter-embed.c b/aisleriot/ar-clutter-embed.c
index a9c5b8c..98f11e1 100644
--- a/aisleriot/ar-clutter-embed.c
+++ b/aisleriot/ar-clutter-embed.c
@@ -56,6 +56,7 @@ ar_clutter_embed_realize (GtkWidget *widget)
   ArClutterEmbedPrivate *priv = embed->priv;
 #ifndef HAVE_HILDON
   GdkDisplay *display;
+  GdkWindow *window;
 #endif
 
   GTK_WIDGET_CLASS (ar_clutter_embed_parent_class)->realize (widget);
@@ -64,10 +65,11 @@ ar_clutter_embed_realize (GtkWidget *widget)
 #ifndef HAVE_HILDON
   /* Create cursors */
   display = gtk_widget_get_display (widget);
+  window = gtk_widget_get_window (widget);
 
   priv->cursor[AR_CURSOR_DEFAULT] = gdk_cursor_new_for_display (display, GDK_LEFT_PTR);
-  priv->cursor[AR_CURSOR_OPEN] = ar_cursor_new (widget->window, AR_CURSOR_OPEN);
-  priv->cursor[AR_CURSOR_CLOSED] = ar_cursor_new (widget->window, AR_CURSOR_CLOSED);
+  priv->cursor[AR_CURSOR_OPEN] = ar_cursor_new (window, AR_CURSOR_OPEN);
+  priv->cursor[AR_CURSOR_CLOSED] = ar_cursor_new (window, AR_CURSOR_CLOSED);
   priv->cursor[AR_CURSOR_DROPPABLE] = gdk_cursor_new_for_display (display, GDK_DOUBLE_ARROW); /* FIXMEchpe: better cursor */
 #endif /* !HAVE_HILDON */
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]