From: Javier Jardón Date: Sun, 14 Jun 2009 15:15:19 +0000 (-0400) Subject: Fix Bug 585698 - Use accessor functions instead direct access X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1daf776ae6093af442db78712958daa53431dcfd;p=libchamplain Fix Bug 585698 - Use accessor functions instead direct access --- diff --git a/AUTHORS b/AUTHORS index e33e944..21ec64a 100644 --- a/AUTHORS +++ b/AUTHORS @@ -16,3 +16,4 @@ Debarshi Ray Paulo Cabido Sjoerd Simons Victor Godoy Poluceno +Javier Jardón diff --git a/champlain-gtk/gtk-champlain-embed.c b/champlain-gtk/gtk-champlain-embed.c index b70d44e..09b8c05 100644 --- a/champlain-gtk/gtk-champlain-embed.c +++ b/champlain-gtk/gtk-champlain-embed.c @@ -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; }