widget/gtk/compat/gdk/gdkdnd.h

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/widget/gtk/compat/gdk/gdkdnd.h	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,33 @@
     1.4 +/* This Source Code Form is subject to the terms of the Mozilla Public
     1.5 + * License, v. 2.0. If a copy of the MPL was not distributed with this
     1.6 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
     1.7 +
     1.8 +#ifndef GDKDND_WRAPPER_H
     1.9 +#define GDKDND_WRAPPER_H
    1.10 +
    1.11 +#define gdk_drag_context_get_actions gdk_drag_context_get_actions_
    1.12 +#define gdk_drag_context_list_targets gdk_drag_context_list_targets_
    1.13 +#define gdk_drag_context_get_dest_window gdk_drag_context_get_dest_window_
    1.14 +#include_next <gdk/gdkdnd.h>
    1.15 +#undef gdk_drag_context_get_actions
    1.16 +#undef gdk_drag_context_list_targets
    1.17 +#undef gdk_drag_context_get_dest_window
    1.18 +
    1.19 +static inline GdkDragAction
    1.20 +gdk_drag_context_get_actions(GdkDragContext *context)
    1.21 +{
    1.22 +  return context->actions;
    1.23 +}
    1.24 +
    1.25 +static inline GList *
    1.26 +gdk_drag_context_list_targets(GdkDragContext *context)
    1.27 +{
    1.28 +  return context->targets;
    1.29 +}
    1.30 +
    1.31 +static inline GdkWindow *
    1.32 +gdk_drag_context_get_dest_window(GdkDragContext *context)
    1.33 +{
    1.34 +  return context->dest_window;
    1.35 +}
    1.36 +#endif /* GDKDND_WRAPPER_H */

mercurial