From 538cd1b034ee2b56abc2c488a728f4ad7e18f07e Mon Sep 17 00:00:00 2001 From: Carsten Haitzler Date: Fri, 7 May 2010 13:24:29 +0000 Subject: [PATCH] and do the other instances too. SVN revision: 48668 --- src/lib/elm_carousel.c | 1 + src/lib/elm_genlist.c | 1 + src/lib/elm_map.c | 1 + src/lib/elm_panel.c | 1 + src/lib/elm_photocam.c | 1 + src/lib/elm_scrolled_grid.c | 1 + src/lib/elm_toolbar.c | 1 + 7 files changed, 7 insertions(+) diff --git a/src/lib/elm_carousel.c b/src/lib/elm_carousel.c index 92c72f2..329e7cc 100644 --- a/src/lib/elm_carousel.c +++ b/src/lib/elm_carousel.c @@ -170,6 +170,7 @@ elm_carousel_add(Evas_Object *parent) elm_widget_can_focus_set(obj, 0); wd->scr = elm_smart_scroller_add(e); + elm_smart_scroller_widget_set(wd->scr, obj); elm_smart_scroller_theme_set(wd->scr, "carousel", "base", "default"); elm_widget_resize_object_set(obj, wd->scr); elm_smart_scroller_policy_set(wd->scr, diff --git a/src/lib/elm_genlist.c b/src/lib/elm_genlist.c index 9ed0afe..39ba261 100644 --- a/src/lib/elm_genlist.c +++ b/src/lib/elm_genlist.c @@ -1486,6 +1486,7 @@ elm_genlist_add(Evas_Object *parent) elm_widget_theme_hook_set(obj, _theme_hook); wd->scr = elm_smart_scroller_add(e); + elm_smart_scroller_widget_set(wd->scr, obj); elm_widget_resize_object_set(obj, wd->scr); elm_smart_scroller_bounce_allow_set(wd->scr, 0, 1); diff --git a/src/lib/elm_map.c b/src/lib/elm_map.c index b6e54bc..1cc0644 100644 --- a/src/lib/elm_map.c +++ b/src/lib/elm_map.c @@ -1665,6 +1665,7 @@ elm_map_add(Evas_Object *parent) elm_widget_theme_hook_set(obj, _theme_hook); wd->scr = elm_smart_scroller_add(e); + elm_smart_scroller_widget_set(wd->scr, obj); elm_smart_scroller_theme_set(wd->scr, "map", "base", "default"); evas_object_smart_callback_add(wd->scr, "scroll", _scr, obj); evas_object_smart_callback_add(wd->scr, "drag", _scr, obj); diff --git a/src/lib/elm_panel.c b/src/lib/elm_panel.c index 0b312f8..a32a8bb 100644 --- a/src/lib/elm_panel.c +++ b/src/lib/elm_panel.c @@ -149,6 +149,7 @@ elm_panel_add(Evas_Object *parent) elm_widget_can_focus_set(obj, 0); wd->scr = elm_smart_scroller_add(evas); + elm_smart_scroller_widget_set(wd->scr, obj); elm_smart_scroller_bounce_allow_set(wd->scr, 0, 0); elm_smart_scroller_theme_set(wd->scr, "panel", "base", "left"); elm_widget_resize_object_set(obj, wd->scr); diff --git a/src/lib/elm_photocam.c b/src/lib/elm_photocam.c index b5f1588..9f0af93 100644 --- a/src/lib/elm_photocam.c +++ b/src/lib/elm_photocam.c @@ -966,6 +966,7 @@ elm_photocam_add(Evas_Object *parent) elm_widget_theme_hook_set(obj, _theme_hook); wd->scr = elm_smart_scroller_add(e); + elm_smart_scroller_widget_set(wd->scr, obj); elm_smart_scroller_theme_set(wd->scr, "photocam", "base", "default"); evas_object_smart_callback_add(wd->scr, "scroll", _scr, obj); evas_object_smart_callback_add(wd->scr, "drag", _scr, obj); diff --git a/src/lib/elm_scrolled_grid.c b/src/lib/elm_scrolled_grid.c index 27569c5..1282ebb 100644 --- a/src/lib/elm_scrolled_grid.c +++ b/src/lib/elm_scrolled_grid.c @@ -954,6 +954,7 @@ elm_scrolled_grid_add(Evas_Object *parent) elm_widget_theme_hook_set(obj, _theme_hook); wd->scr = elm_smart_scroller_add(e); + elm_smart_scroller_widget_set(wd->scr, obj); elm_smart_scroller_theme_set(wd->scr, "grid", "base", "default"); elm_widget_resize_object_set(obj, wd->scr); diff --git a/src/lib/elm_toolbar.c b/src/lib/elm_toolbar.c index 8f15d1c..9d372dc 100644 --- a/src/lib/elm_toolbar.c +++ b/src/lib/elm_toolbar.c @@ -320,6 +320,7 @@ elm_toolbar_add(Evas_Object *parent) elm_widget_can_focus_set(obj, 0); wd->scr = elm_smart_scroller_add(e); + elm_smart_scroller_widget_set(wd->scr, obj); elm_smart_scroller_bounce_allow_set(wd->scr, 1, 0); elm_smart_scroller_theme_set(wd->scr, "toolbar", "base", "default"); elm_widget_resize_object_set(obj, wd->scr); -- 2.7.4