summaryrefslogtreecommitdiff
path: root/legacy
diff options
context:
space:
mode:
authorDaniel Juyung Seo <seojuyung2@gmail.com>2011-10-21 17:06:46 +0000
committerDaniel Juyung Seo <seojuyung2@gmail.com>2011-10-21 17:06:46 +0000
commitf596776217da28eeaac88d8948a1ee85f76e854d (patch)
treee39111cbd11d71f8bd192b4d01250ebc8c9d2313 /legacy
parentc0001ca74167dced7c47ec26722230be5d180f44 (diff)
elm genlist/gengrid: No need to call elm_widget_data_get() if we know it. it->wd is a widget data.
SVN revision: 64263
Diffstat (limited to 'legacy')
-rw-r--r--legacy/elementary/src/lib/elm_gengrid.c4
-rw-r--r--legacy/elementary/src/lib/elm_genlist.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/legacy/elementary/src/lib/elm_gengrid.c b/legacy/elementary/src/lib/elm_gengrid.c
index 7dd20ac0ce..f7de359484 100644
--- a/legacy/elementary/src/lib/elm_gengrid.c
+++ b/legacy/elementary/src/lib/elm_gengrid.c
@@ -2857,7 +2857,7 @@ EAPI void
2857elm_gengrid_item_show(Elm_Gen_Item *it) 2857elm_gengrid_item_show(Elm_Gen_Item *it)
2858{ 2858{
2859 ELM_WIDGET_ITEM_WIDTYPE_CHECK_OR_RETURN(it); 2859 ELM_WIDGET_ITEM_WIDTYPE_CHECK_OR_RETURN(it);
2860 Widget_Data *wd = elm_widget_data_get(WIDGET(it)); 2860 Widget_Data *wd = it->wd;
2861 Evas_Coord minx = 0, miny = 0; 2861 Evas_Coord minx = 0, miny = 0;
2862 2862
2863 if (!wd) return; 2863 if (!wd) return;
@@ -2885,7 +2885,7 @@ elm_gengrid_item_bring_in(Elm_Gen_Item *it)
2885 if (it->delete_me) return; 2885 if (it->delete_me) return;
2886 2886
2887 Evas_Coord minx = 0, miny = 0; 2887 Evas_Coord minx = 0, miny = 0;
2888 Widget_Data *wd = elm_widget_data_get(WIDGET(it)); 2888 Widget_Data *wd = it->wd;
2889 if (!wd) return; 2889 if (!wd) return;
2890 _pan_min_get(wd->pan_smart, &minx, &miny); 2890 _pan_min_get(wd->pan_smart, &minx, &miny);
2891 2891
diff --git a/legacy/elementary/src/lib/elm_genlist.c b/legacy/elementary/src/lib/elm_genlist.c
index 6942f5cdaf..aa42052cec 100644
--- a/legacy/elementary/src/lib/elm_genlist.c
+++ b/legacy/elementary/src/lib/elm_genlist.c
@@ -3975,7 +3975,7 @@ elm_genlist_item_selected_set(Elm_Gen_Item *it,
3975 Eina_Bool selected) 3975 Eina_Bool selected)
3976{ 3976{
3977 ELM_WIDGET_ITEM_WIDTYPE_CHECK_OR_RETURN(it); 3977 ELM_WIDGET_ITEM_WIDTYPE_CHECK_OR_RETURN(it);
3978 Widget_Data *wd = elm_widget_data_get(WIDGET(it)); 3978 Widget_Data *wd = it->wd;
3979 if (!wd) return; 3979 if (!wd) return;
3980 if ((it->delete_me) || (it->disabled)) return; 3980 if ((it->delete_me) || (it->disabled)) return;
3981 selected = !!selected; 3981 selected = !!selected;