summaryrefslogtreecommitdiffstats
path: root/views/widget/drop_target_gtk.cc
diff options
context:
space:
mode:
Diffstat (limited to 'views/widget/drop_target_gtk.cc')
-rw-r--r--views/widget/drop_target_gtk.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/views/widget/drop_target_gtk.cc b/views/widget/drop_target_gtk.cc
index 5025ae4..c135d91 100644
--- a/views/widget/drop_target_gtk.cc
+++ b/views/widget/drop_target_gtk.cc
@@ -167,7 +167,7 @@ gboolean DropTargetGtk::OnDragDrop(GdkDragContext* context,
if (!pending_view_) {
// User isn't over a view, no drop can occur.
static_cast<WidgetGtk*>(
- helper_.root_view()->GetWidget())->ResetDropTarget();
+ helper_.root_view()->GetWidget()->native_widget())->ResetDropTarget();
// WARNING: we've been deleted.
return FALSE;
}
@@ -246,7 +246,8 @@ void DropTargetGtk::FinishDrop(GdkDragContext* context,
gtk_drag_finish(context, gdk_action != 0, (gdk_action & GDK_ACTION_MOVE),
time);
- static_cast<WidgetGtk*>(helper_.root_view()->GetWidget())->ResetDropTarget();
+ static_cast<WidgetGtk*>(helper_.root_view()->GetWidget()->native_widget())->
+ ResetDropTarget();
// WARNING: we've been deleted.
}
@@ -264,9 +265,8 @@ void DropTargetGtk::RequestFormats(GdkDragContext* context,
int formats,
const std::set<GdkAtom>& custom_formats,
guint time) {
- GtkWidget* widget =
- static_cast<WidgetGtk*>(helper_.root_view()->GetWidget())->
- window_contents();
+ GtkWidget* widget = static_cast<WidgetGtk*>(helper_.root_view()->GetWidget()->
+ native_widget())->window_contents();
const std::set<GdkAtom>& known_formats =
data_provider().known_custom_formats();