Skip to content

Commit

Permalink
Remove direct access to window inside GtkWidget - use accessor instead
Browse files Browse the repository at this point in the history
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20551 57a11ea4-9604-0410-9ed3-97b8803252fd
  • Loading branch information
Phil Longstaff committed Apr 9, 2011
1 parent 1b3df5c commit 9a10c8f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/gnome-utils/cursors.c
Expand Up @@ -89,7 +89,7 @@ void
gnc_set_busy_cursor (GtkWidget *w, gboolean update_now)
{
if (w != NULL)
gnc_ui_set_cursor (w->window, GNC_CURSOR_BUSY, update_now);
gnc_ui_set_cursor (gtk_widget_get_windor(w), GNC_CURSOR_BUSY, update_now);
else
{
GList *containerstop, *node;
Expand All @@ -101,7 +101,7 @@ gnc_set_busy_cursor (GtkWidget *w, gboolean update_now)
if (!w || !GTK_IS_WIDGET (w) || !w->window)
continue;

gnc_ui_set_cursor (w->window, GNC_CURSOR_BUSY, update_now);
gnc_ui_set_cursor (gtk_widget_get_window(w), GNC_CURSOR_BUSY, update_now);
}
g_list_free (containerstop);
}
Expand All @@ -120,7 +120,7 @@ void
gnc_unset_busy_cursor (GtkWidget *w)
{
if (w != NULL)
gnc_ui_set_cursor (w->window, GNC_CURSOR_NORMAL, FALSE);
gnc_ui_set_cursor (gtk_widget_get_window(w), GNC_CURSOR_NORMAL, FALSE);
else
{
GList *containerstop, *node;
Expand All @@ -132,7 +132,7 @@ gnc_unset_busy_cursor (GtkWidget *w)
if (!w || !GTK_IS_WIDGET (w) || GTK_WIDGET_NO_WINDOW(w))
continue;

gnc_ui_set_cursor (w->window, GNC_CURSOR_NORMAL, FALSE);
gnc_ui_set_cursor (gtk_widget_get_window(w), GNC_CURSOR_NORMAL, FALSE);
}
g_list_free (containerstop);
}
Expand Down

0 comments on commit 9a10c8f

Please sign in to comment.