[epiphany/wip/autocrap: 36/37] Silence a deprecation warning coming from egg



commit 44845cacf5b4e6a1af0aef3552a40021f6a75312
Author: Michael Catanzaro <mcatanzaro igalia com>
Date:   Mon Jun 29 21:34:22 2015 -0500

    Silence a deprecation warning coming from egg
    
    Don't want to use the normal compiler warnings here, because I don't
    want to fix compiler warnings from egg generally. So we'll just leave
    this directory with only the default compiler warnings. But for some
    reason, -Wdeprecated-declaration is enabled by default. Maybe we'll
    rethink using the default warnings here in the future, but in the
    meantime, might as well placate it.
    
    Not upstreamed since the upstream code supports ancient GTK+.
    
    Also note: this code seems to be crashy, but it was crashy BEFORE this
    commit too. It seems to be a regression in GTK+ 3.17.

 lib/egg/eggtreemultidnd.c |   17 +++++++----------
 1 files changed, 7 insertions(+), 10 deletions(-)
---
diff --git a/lib/egg/eggtreemultidnd.c b/lib/egg/eggtreemultidnd.c
index 070f5c4..1c4fc73 100644
--- a/lib/egg/eggtreemultidnd.c
+++ b/lib/egg/eggtreemultidnd.c
@@ -316,16 +316,13 @@ egg_tree_multi_drag_motion_event (GtkWidget      *widget,
       model = gtk_tree_view_get_model (GTK_TREE_VIEW (widget));
       if (egg_tree_multi_drag_source_row_draggable (EGG_TREE_MULTI_DRAG_SOURCE (model), path_list))
        {
-
-         context = gtk_drag_begin (widget,
-#if GTK_CHECK_VERSION (2, 14, 0)
-                                    gtk_drag_source_get_target_list (widget),
-#else
-                                   di->source_target_list,
-#endif
-                                   di->source_actions,
-                                   priv_data->pressed_button,
-                                   (GdkEvent*)event);
+         context = gtk_drag_begin_with_coordinates (widget,
+                                                    gtk_drag_source_get_target_list (widget),
+                                                    di->source_actions,
+                                                    priv_data->pressed_button,
+                                                    (GdkEvent*)event,
+                                                    event->x,
+                                                    event->y);
          set_context_data (context, path_list);
          gtk_drag_set_icon_default (context);
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]