* Entry: Added double click and triple click.
Double click selects a word.
Triple click selects a line.
+
+2012-03-07 Tom Hacohen (TAsn)
+
+ * Entry: Replaced edje_object_part_text_style_user_set/get
+ with edje_object_part_text_style_user_set/get to correspond to
+ textblock's recent changes.
*
* @since 1.2.0
*/
-EAPI void edje_object_part_text_style_user_set(Evas_Object *obj, const char *part, const char *style);
+EAPI void edje_object_part_text_style_user_push(Evas_Object *obj, const char *part, const char *style);
/**
* @brief Return the text of the object part.
*
* @since 1.2.0
*/
-EAPI const char *edje_object_part_text_style_user_get(Evas_Object *obj, const char *part);
+EAPI const char *edje_object_part_text_style_user_peek(const Evas_Object *obj, const char *part);
+
+/**
+ * @brief Delete the top style form the user style stack.
+ *
+ * @param obj A valid Evas_Object handle
+ * @param part The part name
+ *
+ * @since 1.2.0
+ */
+EAPI void edje_object_part_text_style_user_pop(Evas_Object *obj, const char *part);
/**
* @brief Sets the raw (non escaped) text for an object part.
}
EAPI void
-edje_object_part_text_style_user_set(Evas_Object *obj, const char *part,
+edje_object_part_text_style_user_push(Evas_Object *obj, const char *part,
const char *style)
{
Edje *ed;
ts = evas_textblock_style_new();
evas_textblock_style_set(ts, style);
- evas_object_textblock_style_user_set(rp->object, ts);
+ evas_object_textblock_style_user_push(rp->object, ts);
evas_textblock_style_free(ts);
}
+EAPI void
+edje_object_part_text_style_user_pop(Evas_Object *obj, const char *part)
+{
+ Edje *ed;
+ Edje_Real_Part *rp;
+
+ ed = _edje_fetch(obj);
+ if ((!ed) || (!part)) return;
+ rp = _edje_real_part_recursive_get(ed, part);
+ if (!rp) return;
+ if (rp->part->type != EDJE_PART_TYPE_TEXTBLOCK) return;
+
+ evas_object_textblock_style_user_pop(rp->object);
+}
+
EAPI const char *
-edje_object_part_text_style_user_get(Evas_Object *obj, const char *part)
+edje_object_part_text_style_user_peek(const Evas_Object *obj, const char *part)
{
Edje *ed;
Edje_Real_Part *rp;
if (!rp) return NULL;
if (rp->part->type != EDJE_PART_TYPE_TEXTBLOCK) return NULL;
- ts = evas_object_textblock_style_user_get(rp->object);
+ ts = evas_object_textblock_style_user_peek(rp->object);
if (ts)
return evas_textblock_style_get(ts);
else