summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorzmike <michael.blumenkrantz@gmail.com>2014-03-02 15:00:58 -0500
committerzmike <michael.blumenkrantz@gmail.com>2014-03-02 15:04:07 -0500
commit4d6ea204586e48741a8117383dbb5b8a1390c399 (patch)
tree9b4afef9174a935e26bf31d13d896f797ee0e902 /src/lib
parent423785a5d65552bf64b22ec84b2c9117354ccd39 (diff)
move slider track functions up
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/elm_slider.c52
1 files changed, 26 insertions, 26 deletions
diff --git a/src/lib/elm_slider.c b/src/lib/elm_slider.c
index fff2ce3b6..11f0cc400 100644
--- a/src/lib/elm_slider.c
+++ b/src/lib/elm_slider.c
@@ -494,6 +494,32 @@ _visuals_refresh(Evas_Object *obj)
494} 494}
495 495
496static void 496static void
497_track_move_cb(void *data,
498 Evas *e EINA_UNUSED,
499 Evas_Object *obj,
500 void *event_info EINA_UNUSED)
501{
502 Evas_Coord x, y;
503
504 ELM_SLIDER_DATA_GET(data, sd);
505 evas_object_geometry_get(obj, &x, &y, NULL, NULL);
506 evas_object_move(sd->popup, x, y);
507}
508
509static void
510_track_resize_cb(void *data,
511 Evas *e EINA_UNUSED,
512 Evas_Object *obj,
513 void *event_info EINA_UNUSED)
514{
515 Evas_Coord w, h;
516
517 ELM_SLIDER_DATA_GET(data, sd);
518 evas_object_geometry_get(obj, NULL, NULL, &w, &h);
519 evas_object_resize(sd->popup, w, h);
520}
521
522static void
497_elm_slider_smart_theme(Eo *obj, void *_pd, va_list *list) 523_elm_slider_smart_theme(Eo *obj, void *_pd, va_list *list)
498{ 524{
499 Elm_Slider_Smart_Data *sd = _pd; 525 Elm_Slider_Smart_Data *sd = _pd;
@@ -702,32 +728,6 @@ _spacer_up_cb(void *data,
702} 728}
703 729
704static void 730static void
705_track_move_cb(void *data,
706 Evas *e EINA_UNUSED,
707 Evas_Object *obj,
708 void *event_info EINA_UNUSED)
709{
710 Evas_Coord x, y;
711
712 ELM_SLIDER_DATA_GET(data, sd);
713 evas_object_geometry_get(obj, &x, &y, NULL, NULL);
714 evas_object_move(sd->popup, x, y);
715}
716
717static void
718_track_resize_cb(void *data,
719 Evas *e EINA_UNUSED,
720 Evas_Object *obj,
721 void *event_info EINA_UNUSED)
722{
723 Evas_Coord w, h;
724
725 ELM_SLIDER_DATA_GET(data, sd);
726 evas_object_geometry_get(obj, NULL, NULL, &w, &h);
727 evas_object_resize(sd->popup, w, h);
728}
729
730static void
731_min_max_set(Evas_Object *obj) 731_min_max_set(Evas_Object *obj)
732{ 732{
733 char *buf_min = NULL; 733 char *buf_min = NULL;