summaryrefslogtreecommitdiff
path: root/src/bin/e_spectrum.c
diff options
context:
space:
mode:
authorCedric BAIL <cedric.bail@free.fr>2010-06-24 16:19:12 +0000
committerCedric BAIL <cedric.bail@free.fr>2010-06-24 16:19:12 +0000
commitc6a118d73815638b2be8f18d0ca7fc4167728cd8 (patch)
tree089211fe84ad101eaae3d990c2f2f1e6a7d4ecee /src/bin/e_spectrum.c
parent61d7b9fe28afd8b53a0b76c75b3e5002ff7c3e41 (diff)
downloadenlightenment-c6a118d73815638b2be8f18d0ca7fc4167728cd8.tar.gz
* e: remove warning due to Ecore API change.
SVN revision: 49833
Diffstat (limited to 'src/bin/e_spectrum.c')
-rw-r--r--src/bin/e_spectrum.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/bin/e_spectrum.c b/src/bin/e_spectrum.c
index 3edbd4996a..c59e26c843 100644
--- a/src/bin/e_spectrum.c
+++ b/src/bin/e_spectrum.c
@@ -20,7 +20,7 @@ struct _E_Spectrum
Ecore_Timer *draw_timer;
};
-static int _e_spectrum_redraw(void *d);
+static Eina_Bool _e_spectrum_redraw(void *d);
static void
_e_spectrum_smart_add(Evas_Object *o)
@@ -170,6 +170,9 @@ _e_spectrum_smart_init(void)
NULL,
NULL,
NULL,
+ NULL,
+ NULL,
+ NULL,
NULL
};
_e_spectrum_smart = evas_smart_class_new(&sc);
@@ -263,7 +266,7 @@ _e_spectrum_2d_color_at(E_Spectrum *sp, int x, int y, int *r, int *g, int *b)
if (b) *b = bb;
}
-static int
+static Eina_Bool
_e_spectrum_redraw(void *d)
{
E_Spectrum *sp = d;
@@ -276,7 +279,7 @@ _e_spectrum_redraw(void *d)
if (!data)
{
sp->draw_timer = NULL;
- return 0;
+ return ECORE_CALLBACK_CANCEL;
}
switch (sp->mode)
@@ -321,7 +324,7 @@ _e_spectrum_redraw(void *d)
evas_object_image_data_set(sp->o_spectrum, data);
evas_object_image_data_update_add(sp->o_spectrum, 0, 0, sp->iw, sp->ih);
sp->draw_timer = NULL;
- return 0;
+ return ECORE_CALLBACK_CANCEL;
}
static void