Don't use depreciated *style_set functions. Use elm_object_style_set
authorChristopher Michael <cpmichael1@comcast.net>
Sun, 18 Oct 2009 05:49:23 +0000 (05:49 +0000)
committerChristopher Michael <cpmichael1@comcast.net>
Sun, 18 Oct 2009 05:49:23 +0000 (05:49 +0000)
SVN revision: 43142

src/lib/elc_anchorblock.c
src/lib/elc_anchorview.c
src/lib/elc_hoversel.c

index 8cd96d418080066363558dd17714ac819fd26305..2c1e2c2780aff2fb40a29981b55a2b4e0364190e 100644 (file)
@@ -35,6 +35,7 @@ static void
 _del_pre_hook(Evas_Object *obj)
 {
    Widget_Data *wd = elm_widget_data_get(obj);
+
    evas_object_event_callback_del(wd->entry, EVAS_CALLBACK_CHANGED_SIZE_HINTS,
                                  _changed_size_hints);
    elm_anchorblock_hover_end(obj);
@@ -45,6 +46,7 @@ static void
 _del_hook(Evas_Object *obj)
 {
    Widget_Data *wd = elm_widget_data_get(obj);
+
    if (wd->hover_style) eina_stringshare_del(wd->hover_style);
    free(wd);
 }
@@ -70,6 +72,7 @@ static void
 _hover_del(void *data, Evas *e, Evas_Object *obj, void *event_info)
 {
    Widget_Data *wd = elm_widget_data_get(data);
+
    wd->hover = NULL;
 }
 
@@ -93,7 +96,8 @@ _anchor_clicked(void *data, Evas_Object *obj, void *event_info)
    evas_object_resize(wd->pop, info->w, info->h);
 
    wd->hover = elm_hover_add(obj);
-   if (wd->hover_style) elm_hover_style_set(wd->hover, wd->hover_style);
+   if (wd->hover_style) 
+     elm_object_style_set(wd->hover, wd->hover_style);
    hover_parent = wd->hover_parent;
    if (!hover_parent) hover_parent = obj;
    elm_hover_parent_set(wd->hover, hover_parent);
index b9a9899611671cf398f20055237c3b37bf153d58..a7906470b0a360bb55dd8b4ce61d56e8f5e33709 100644 (file)
@@ -79,7 +79,8 @@ _anchor_clicked(void *data, Evas_Object *obj, void *event_info)
    evas_object_resize(wd->pop, info->w, info->h);
 
    wd->hover = elm_hover_add(obj);
-   if (wd->hover_style) elm_hover_style_set(wd->hover, wd->hover_style);
+   if (wd->hover_style) 
+     elm_object_style_set(wd->hover, wd->hover_style);
    hover_parent = wd->hover_parent;
    if (!hover_parent) hover_parent = obj;
    elm_hover_parent_set(wd->hover, hover_parent);
index bca84a3625b50851784476a25d65abe634609d73..f7a9dbcbd504c5889bf97f57b22208aad11e3327 100644 (file)
@@ -79,7 +79,7 @@ _theme_hook(Evas_Object *obj)
 
    if (!wd) return;
    snprintf(buf, sizeof(buf), "hoversel_vertical/%s", elm_widget_style_get(obj));
-   elm_button_style_set(wd->btn, buf);
+   elm_object_style_set(wd->btn, buf);
 }
 
 static void
@@ -156,7 +156,7 @@ _activate(Evas_Object *obj)
    EINA_LIST_FOREACH(wd->items, l, it)
      {
        bt = elm_button_add(wd->hover);
-       elm_button_style_set(bt, buf);
+       elm_object_style_set(bt, buf);
        elm_button_label_set(bt, it->label);
        if (it->icon_file)
          {
@@ -227,7 +227,7 @@ elm_hoversel_add(Evas_Object *parent)
    elm_widget_disable_hook_set(obj, _disable_hook);
 
    wd->btn = elm_button_add(parent);
-   elm_button_style_set(wd->btn, "hoversel_vertical");
+   elm_object_style_set(wd->btn, "hoversel_vertical");
    elm_widget_resize_object_set(obj, wd->btn);
    evas_object_event_callback_add(wd->btn, EVAS_CALLBACK_CHANGED_SIZE_HINTS,
                                  _changed_size_hints, obj);