summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorCarsten Haitzler <raster@rasterman.com>2012-04-25 11:34:28 +0000
committerCarsten Haitzler <raster@rasterman.com>2012-04-25 11:34:28 +0000
commit1a3f06f3d37d8cca248a6ebb1ecba16525f05cbc (patch)
tree6bb1995318f322d04972b09dd17560842795dfa9 /src/lib
parent70c51eedc675479665a35ee0ec339a8638c233ad (diff)
fix vgd issue with anchors in entires.
SVN revision: 70469
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/elm_entry.c18
1 files changed, 15 insertions, 3 deletions
diff --git a/src/lib/elm_entry.c b/src/lib/elm_entry.c
index 19dbbb6cd..635133110 100644
--- a/src/lib/elm_entry.c
+++ b/src/lib/elm_entry.c
@@ -3803,6 +3803,17 @@ _parent_del(void *data, Evas *e __UNUSED__, Evas_Object *obj __UNUSED__, void *e
3803 wd->anchor_hover.hover_parent = NULL; 3803 wd->anchor_hover.hover_parent = NULL;
3804} 3804}
3805 3805
3806static void
3807_anchor_hover_del(void *data, Evas *e __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
3808{
3809 Widget_Data *wd = elm_widget_data_get(data);
3810 if (!wd) return;
3811 if (wd->anchor_hover.pop) evas_object_del(wd->anchor_hover.pop);
3812 wd->anchor_hover.pop = NULL;
3813 evas_object_event_callback_del_full(wd->anchor_hover.hover, EVAS_CALLBACK_DEL,
3814 _anchor_hover_del, obj);
3815}
3816
3806EAPI void 3817EAPI void
3807elm_entry_anchor_hover_parent_set(Evas_Object *obj, Evas_Object *parent) 3818elm_entry_anchor_hover_parent_set(Evas_Object *obj, Evas_Object *parent)
3808{ 3819{
@@ -3879,6 +3890,8 @@ _entry_hover_anchor_clicked(void *data, Evas_Object *obj, void *event_info)
3879 evas_object_resize(wd->anchor_hover.pop, info->w, info->h); 3890 evas_object_resize(wd->anchor_hover.pop, info->w, info->h);
3880 3891
3881 wd->anchor_hover.hover = elm_hover_add(obj); 3892 wd->anchor_hover.hover = elm_hover_add(obj);
3893 evas_object_event_callback_add(wd->anchor_hover.hover, EVAS_CALLBACK_DEL,
3894 _anchor_hover_del, obj);
3882 elm_widget_mirrored_set(wd->anchor_hover.hover, elm_widget_mirrored_get(obj)); 3895 elm_widget_mirrored_set(wd->anchor_hover.hover, elm_widget_mirrored_get(obj));
3883 if (wd->anchor_hover.hover_style) 3896 if (wd->anchor_hover.hover_style)
3884 elm_object_style_set(wd->anchor_hover.hover, wd->anchor_hover.hover_style); 3897 elm_object_style_set(wd->anchor_hover.hover, wd->anchor_hover.hover_style);
@@ -3925,10 +3938,9 @@ _entry_hover_anchor_clicked(void *data, Evas_Object *obj, void *event_info)
3925 !elm_object_part_content_get(wd->anchor_hover.hover, "bottom")) 3938 !elm_object_part_content_get(wd->anchor_hover.hover, "bottom"))
3926 { 3939 {
3927 evas_object_del(wd->anchor_hover.hover); 3940 evas_object_del(wd->anchor_hover.hover);
3941 wd->anchor_hover.hover = NULL;
3928 } 3942 }
3929 else 3943 else
3930 { 3944 evas_object_show(wd->anchor_hover.hover);
3931 evas_object_show(wd->anchor_hover.hover);
3932 }
3933} 3945}
3934/* END - ANCHOR HOVER */ 3946/* END - ANCHOR HOVER */