summaryrefslogtreecommitdiff
path: root/gtk/gtkselection.h
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2015-12-13 18:43:10 -0500
committerMatthias Clasen <mclasen@redhat.com>2016-03-25 15:37:20 -0400
commit6ac7b54378ad1a8468df889744321bd61ab9e565 (patch)
treefa28a98297d0a80f09a33262c922e9a81e45a4e1 /gtk/gtkselection.h
parentdb93386f23807b4153a88775d50c7504f623a016 (diff)
downloadgtk+-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.h21
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