]> err.no Git - libchamplain/commitdiff
Fix Bug 585698 - Use accessor functions instead direct access
authorJavier Jardón <javierjc1982@gmail.com>
Sun, 14 Jun 2009 15:15:19 +0000 (11:15 -0400)
committerPierre-Luc Beaudoin <pierre-luc@pierlux.com>
Sun, 14 Jun 2009 15:15:19 +0000 (11:15 -0400)
AUTHORS
champlain-gtk/gtk-champlain-embed.c

diff --git a/AUTHORS b/AUTHORS
index e33e94427166d6a3ad130c24207de0c341e24a95..21ec64a287f65ecaef19dcc5bf25469aff87f6f5 100644 (file)
--- a/AUTHORS
+++ b/AUTHORS
@@ -16,3 +16,4 @@ Debarshi Ray <rishi@gnu.org>
 Paulo Cabido <paulo.cabido@gmail.com>
 Sjoerd Simons <sjoerd@luon.net>
 Victor Godoy Poluceno <victorpoluceno@gmail.com>
+Javier Jardón <javierjc1982@gmail.com>
index b70d44eb48e75b9f530a4a052681571b9cfcecd8..09b8c0547d3a05ba91dda618eaa8973304a7121f 100644 (file)
@@ -221,7 +221,7 @@ view_realize_cb (GtkWidget *widget,
   GtkChamplainEmbedPrivate *priv = view->priv;
 
   // Setup mouse cursor to a hand
-  gdk_window_set_cursor (priv->clutter_embed->window, priv->cursor_hand_open);
+  gdk_window_set_cursor (gtk_widget_get_window (priv->clutter_embed), priv->cursor_hand_open);
 }
 
 static void
@@ -246,9 +246,11 @@ mouse_button_cb (GtkWidget *widget,
   GtkChamplainEmbedPrivate *priv = view->priv;
 
   if (event->type == GDK_BUTTON_PRESS)
-    gdk_window_set_cursor( priv->clutter_embed->window, priv->cursor_hand_closed);
+    gdk_window_set_cursor (gtk_widget_get_window (priv->clutter_embed),
+                           priv->cursor_hand_closed);
   else
-    gdk_window_set_cursor( priv->clutter_embed->window, priv->cursor_hand_open);
+    gdk_window_set_cursor (gtk_widget_get_window (priv->clutter_embed),
+                           priv->cursor_hand_open);
 
   return FALSE;
 }