summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@osg.samsung.com>2017-05-17 16:02:53 -0400
committerMike Blumenkrantz <zmike@osg.samsung.com>2017-05-19 12:41:16 -0400
commitf2899679273576ef69cc58a889cd8928cb6ebe80 (patch)
treee83818edae2bd5d55838ccae524a7d7b2040e0e0
parent0b2e15db0f63735b4ba56b3876779aaa4119fd46 (diff)
downloadefl-f2899679273576ef69cc58a889cd8928cb6ebe80.tar.gz
elm_cnp: add elm_cnp_clipboard_selection_has_owner()
this already existed as an internal function which was improperly namespaced @feature
-rw-r--r--src/lib/elementary/elm_cnp.c7
-rw-r--r--src/lib/elementary/elm_cnp.h10
2 files changed, 17 insertions, 0 deletions
diff --git a/src/lib/elementary/elm_cnp.c b/src/lib/elementary/elm_cnp.c
index 23b29702ed..3ac197052b 100644
--- a/src/lib/elementary/elm_cnp.c
+++ b/src/lib/elementary/elm_cnp.c
@@ -5260,6 +5260,13 @@ elm_selection_selection_has_owner(Evas_Object *obj)
return _local_elm_selection_selection_has_owner(obj);
}
+EAPI Eina_Bool
+elm_cnp_clipboard_selection_has_owner(Evas_Object *win)
+{
+ EINA_SAFETY_ON_NULL_RETURN_VAL(win, EINA_FALSE);
+ return elm_selection_selection_has_owner(win);
+}
+
/* START - Support elm containers for Drag and Drop */
/* START - Support elm containers for Drop */
static int
diff --git a/src/lib/elementary/elm_cnp.h b/src/lib/elementary/elm_cnp.h
index 4e8ac1f4c5..1c92f1195f 100644
--- a/src/lib/elementary/elm_cnp.h
+++ b/src/lib/elementary/elm_cnp.h
@@ -311,6 +311,16 @@ EAPI Eina_Bool elm_object_cnp_selection_clear(Evas_Object *obj,
EAPI void elm_cnp_selection_loss_callback_set(Evas_Object *obj, Elm_Sel_Type selection, Elm_Selection_Loss_Cb func, const void *data);
/**
+ * @brief Determine whether the clipboard selection has an owner
+ *
+ * @param win The window object to check for
+ * @return @c EINA_TRUE if the clipboard has a selection
+ * @ingroup CopyPaste
+ * @since 1.20
+ */
+EAPI Eina_Bool elm_cnp_clipboard_selection_has_owner(Evas_Object *win);
+
+/**
* @brief Set the given object as a target for drops for drag-and-drop
*
* @param obj The target object