diff options
author | Matthias Clasen <mclasen@redhat.com> | 2015-12-13 18:43:10 -0500 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2016-03-25 15:37:20 -0400 |
commit | 6ac7b54378ad1a8468df889744321bd61ab9e565 (patch) | |
tree | fa28a98297d0a80f09a33262c922e9a81e45a4e1 /gtk/gtkselection.h | |
parent | db93386f23807b4153a88775d50c7504f623a016 (diff) | |
download | gtk+-6ac7b54378ad1a8468df889744321bd61ab9e565.tar.gz |
dnd: Move GtkDragDest to a separate file
This follows what was done for GtkDragSource in
415030d25f2552d3937ee3c394c50d22c5382982 and shaves another
500 lines off gtkdnd.c.
Diffstat (limited to 'gtk/gtkselection.h')
-rw-r--r-- | gtk/gtkselection.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/gtk/gtkselection.h b/gtk/gtkselection.h index 6c338d00f7..678b3ac7a8 100644 --- a/gtk/gtkselection.h +++ b/gtk/gtkselection.h @@ -70,6 +70,27 @@ typedef struct _GtkTargetEntry GtkTargetEntry; #define GTK_TYPE_TARGET_LIST (gtk_target_list_get_type ()) /** + * GtkTargetFlags: + * @GTK_TARGET_SAME_APP: If this is set, the target will only be selected + * for drags within a single application. + * @GTK_TARGET_SAME_WIDGET: If this is set, the target will only be selected + * for drags within a single widget. + * @GTK_TARGET_OTHER_APP: If this is set, the target will not be selected + * for drags within a single application. + * @GTK_TARGET_OTHER_WIDGET: If this is set, the target will not be selected + * for drags withing a single widget. + * + * The #GtkTargetFlags enumeration is used to specify + * constraints on a #GtkTargetEntry. + */ +typedef enum { + GTK_TARGET_SAME_APP = 1 << 0, /*< nick=same-app >*/ + GTK_TARGET_SAME_WIDGET = 1 << 1, /*< nick=same-widget >*/ + GTK_TARGET_OTHER_APP = 1 << 2, /*< nick=other-app >*/ + GTK_TARGET_OTHER_WIDGET = 1 << 3 /*< nick=other-widget >*/ +} GtkTargetFlags; + +/** * GtkTargetEntry: * @target: a string representation of the target type * @flags: #GtkTargetFlags for DND |