Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- commit 07fd4c8c82f2b11b1df145d58a343e6f25ca330a
- Author: Xan Lopez <xlopez@igalia.com>
- Date: Mon Jul 12 12:41:18 2010 +0200
- WebCore:
- 2010-07-12 Xan Lopez <xlopez@igalia.com>
- Reviewed by NOBODY (OOPS!).
- Fix compilation with sealed GTK+.
- * platform/gtk/GtkVersioning.h:
- * platform/gtk/PasteboardHelper.cpp:
- (WebCore::PasteboardHelper::fillDataObjectFromDropData):
- WebKit/gtk:
- 2010-07-12 Xan Lopez <xlopez@igalia.com>
- Reviewed by NOBODY (OOPS!).
- Fix compilation with sealed GTK+.
- * webkit/webkitwebview.cpp:
- (webkit_web_view_drag_motion):
- (webkit_web_view_drag_data_received):
- (webkit_web_view_drag_drop):
- diff --git a/WebCore/ChangeLog b/WebCore/ChangeLog
- index c97d274..70abbe7 100644
- --- a/WebCore/ChangeLog
- +++ b/WebCore/ChangeLog
- @@ -1,3 +1,13 @@
- +2010-07-12 Xan Lopez <xlopez@igalia.com>
- +
- + Reviewed by NOBODY (OOPS!).
- +
- + Fix compilation with sealed GTK+.
- +
- + * platform/gtk/GtkVersioning.h:
- + * platform/gtk/PasteboardHelper.cpp:
- + (WebCore::PasteboardHelper::fillDataObjectFromDropData):
- +
- 2010-07-12 Pavel Feldman <pfeldman@chromium.org>
- Not reviewed. Chromium tests fix.
- diff --git a/WebCore/platform/gtk/GtkVersioning.h b/WebCore/platform/gtk/GtkVersioning.h
- index 885d69f..ebb1645 100644
- --- a/WebCore/platform/gtk/GtkVersioning.h
- +++ b/WebCore/platform/gtk/GtkVersioning.h
- @@ -27,6 +27,7 @@
- #define gdk_visual_get_depth(visual) (visual)->depth
- #define gdk_visual_get_bits_per_rgb(visual) (visual)->bits_per_rgb
- #define gdk_drag_context_get_selected_action(context) (context)->action
- +#define gdk_drag_context_get_actions(context) (context)->actions
- #endif // GTK_CHECK_VERSION(2, 21, 2)
- #if !GTK_CHECK_VERSION(2, 20, 0)
- @@ -55,6 +56,7 @@
- #define gtk_dialog_get_action_area(dialog) (dialog)->action_area
- #define gtk_selection_data_get_length(data) (data)->length
- #define gtk_selection_data_get_data(data) (data)->data
- +#define gtk_selection_data_get_target(data) (data)->target
- #define gtk_adjustment_set_page_size(adj, value) (adj)->page_size = value
- #endif // GTK_CHECK_VERSION(2, 14, 0)
- diff --git a/WebCore/platform/gtk/PasteboardHelper.cpp b/WebCore/platform/gtk/PasteboardHelper.cpp
- index 61447f0..111fb4e 100644
- --- a/WebCore/platform/gtk/PasteboardHelper.cpp
- +++ b/WebCore/platform/gtk/PasteboardHelper.cpp
- @@ -200,14 +200,15 @@ GtkTargetList* PasteboardHelper::targetListForDataObject(DataObjectGtk* dataObje
- void PasteboardHelper::fillDataObjectFromDropData(GtkSelectionData* data, guint info, DataObjectGtk* dataObject)
- {
- - if (!data->data)
- + if (!gtk_selection_data_get_data(data))
- return;
- - if (data->target == textPlainAtom)
- + GdkAtom target = gtk_selection_data_get_target(data);
- + if (target == textPlainAtom)
- dataObject->setText(selectionDataToUTF8String(data));
- - else if (data->target == markupAtom)
- + else if (target == markupAtom)
- dataObject->setMarkup(selectionDataToUTF8String(data));
- - else if (data->target == uriListAtom) {
- + else if (target == uriListAtom) {
- gchar** uris = gtk_selection_data_get_uris(data);
- if (!uris)
- return;
- @@ -215,7 +216,7 @@ void PasteboardHelper::fillDataObjectFromDropData(GtkSelectionData* data, guint
- Vector<KURL> uriList(urisToKURLVector(uris));
- dataObject->setURIList(uriList);
- g_strfreev(uris);
- - } else if (data->target == netscapeURLAtom) {
- + } else if (target == netscapeURLAtom) {
- String urlWithLabel(selectionDataToUTF8String(data));
- Vector<String> pieces;
- diff --git a/WebKit/gtk/ChangeLog b/WebKit/gtk/ChangeLog
- index 140ac3e..68fa460 100644
- --- a/WebKit/gtk/ChangeLog
- +++ b/WebKit/gtk/ChangeLog
- @@ -1,3 +1,14 @@
- +2010-07-12 Xan Lopez <xlopez@igalia.com>
- +
- + Reviewed by NOBODY (OOPS!).
- +
- + Fix compilation with sealed GTK+.
- +
- + * webkit/webkitwebview.cpp:
- + (webkit_web_view_drag_motion):
- + (webkit_web_view_drag_data_received):
- + (webkit_web_view_drag_drop):
- +
- 2010-07-11 Martin Robinson <mrobinson@igalia.com>
- Reviewed by Xan Lopez.
- diff --git a/WebKit/gtk/webkit/webkitwebview.cpp b/WebKit/gtk/webkit/webkitwebview.cpp
- index 071532f..0010a77 100644
- --- a/WebKit/gtk/webkit/webkitwebview.cpp
- +++ b/WebKit/gtk/webkit/webkitwebview.cpp
- @@ -1447,7 +1447,7 @@ static gboolean webkit_web_view_drag_motion(GtkWidget* widget, GdkDragContext* c
- if (droppingContext->pendingDataRequests > 0)
- return TRUE;
- - DragData dragData(droppingContext->dataObject.get(), position, globalPointForClientPoint(gtk_widget_get_window(widget), position), gdkDragActionToDragOperation(context->actions));
- + DragData dragData(droppingContext->dataObject.get(), position, globalPointForClientPoint(gtk_widget_get_window(widget), position), gdkDragActionToDragOperation(gdk_drag_context_get_actions(context)));
- DragOperation operation = core(webView)->dragController()->dragUpdated(&dragData);
- gdk_drag_status(context, dragOperationToSingleGdkDragAction(operation), time);
- @@ -1474,7 +1474,7 @@ static void webkit_web_view_drag_data_received(GtkWidget* widget, GdkDragContext
- const IntPoint& position = droppingContext->lastMotionPosition;
- // If there are no more pending requests, start sending dragging data to WebCore.
- - DragData dragData(droppingContext->dataObject.get(), position, globalPointForClientPoint(gtk_widget_get_window(widget), position), gdkDragActionToDragOperation(context->actions));
- + DragData dragData(droppingContext->dataObject.get(), position, globalPointForClientPoint(gtk_widget_get_window(widget), position), gdkDragActionToDragOperation(gdk_drag_context_get_actions(context)));
- DragOperation operation = core(webView)->dragController()->dragEntered(&dragData);
- gdk_drag_status(context, dragOperationToSingleGdkDragAction(operation), time);
- }
- @@ -1491,7 +1491,7 @@ static gboolean webkit_web_view_drag_drop(GtkWidget* widget, GdkDragContext* con
- droppingContext->dropHappened = true;
- IntPoint position(x, y);
- - DragData dragData(droppingContext->dataObject.get(), position, globalPointForClientPoint(gtk_widget_get_window(widget), position), gdkDragActionToDragOperation(context->actions));
- + DragData dragData(droppingContext->dataObject.get(), position, globalPointForClientPoint(gtk_widget_get_window(widget), position), gdkDragActionToDragOperation(gdk_drag_context_get_actions(context)));
- core(webView)->dragController()->performDrag(&dragData);
- gtk_drag_finish(context, TRUE, FALSE, time);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement