summaryrefslogtreecommitdiff
path: root/gtk/gtkcalendar.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2010-12-10 00:59:07 -0500
committerMatthias Clasen <mclasen@redhat.com>2010-12-10 00:59:07 -0500
commit83204928b93bbdf412fab39456710288b7abe5e8 (patch)
treefa80ee4ef3ebc67761bb9123fe4595eddbecef9e /gtk/gtkcalendar.c
parentfe5e0e4502943e9c52141b295766fba124c1e7f3 (diff)
downloadgtk+-83204928b93bbdf412fab39456710288b7abe5e8.tar.gz
Don't access GdkDragContext fields directly
Instead use the accessors.
Diffstat (limited to 'gtk/gtkcalendar.c')
-rw-r--r--gtk/gtkcalendar.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/gtk/gtkcalendar.c b/gtk/gtkcalendar.c
index 57a26d6d7e..1836ef88b6 100644
--- a/gtk/gtkcalendar.c
+++ b/gtk/gtkcalendar.c
@@ -3379,19 +3379,19 @@ gtk_calendar_drag_motion (GtkWidget *widget,
{
GtkCalendarPrivate *priv = GTK_CALENDAR_GET_PRIVATE (widget);
GdkAtom target;
-
- if (!priv->drag_highlight)
+
+ if (!priv->drag_highlight)
{
priv->drag_highlight = 1;
gtk_drag_highlight (widget);
}
-
+
target = gtk_drag_dest_find_target (widget, context, NULL);
- if (target == GDK_NONE || context->suggested_action == 0)
+ if (target == GDK_NONE || gdk_drag_context_get_suggested_action (context) == 0)
gdk_drag_status (context, 0, time);
else
{
- set_status_pending (context, context->suggested_action);
+ set_status_pending (context, gdk_drag_context_get_suggested_action (context));
gtk_drag_get_data (widget, context, target, time);
}