summaryrefslogtreecommitdiff
path: root/legacy
diff options
context:
space:
mode:
authorCarsten Haitzler <raster@rasterman.com>2011-10-31 00:42:05 +0000
committerCarsten Haitzler <raster@rasterman.com>2011-10-31 00:42:05 +0000
commitaa73164b353acdf533a8493d784ce6fdd82c2bbe (patch)
treea1fececef8a517b9161328b65f3d475ac9e04079 /legacy
parentd8cb0b4a889835fd020319558c5faabd5935c16b (diff)
really the event_info is a pointer and we should use it as such:
api break! elm segment control changed cb passes item handle not index as event_info now! SVN revision: 64538
Diffstat (limited to 'legacy')
-rw-r--r--legacy/elementary/src/lib/Elementary.h.in2
-rw-r--r--legacy/elementary/src/lib/elm_segment_control.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/legacy/elementary/src/lib/Elementary.h.in b/legacy/elementary/src/lib/Elementary.h.in
index 9c2f5a0373..97798021f6 100644
--- a/legacy/elementary/src/lib/Elementary.h.in
+++ b/legacy/elementary/src/lib/Elementary.h.in
@@ -27512,7 +27512,7 @@ extern "C" {
27512 * Smart callbacks one can listen to: 27512 * Smart callbacks one can listen to:
27513 * - "changed" - When the user clicks on a segment item which is not 27513 * - "changed" - When the user clicks on a segment item which is not
27514 * previously selected and get selected. The event_info parameter is the 27514 * previously selected and get selected. The event_info parameter is the
27515 * segment item index. 27515 * segment item pointer.
27516 * 27516 *
27517 * Available styles for it: 27517 * Available styles for it:
27518 * - @c "default" 27518 * - @c "default"
diff --git a/legacy/elementary/src/lib/elm_segment_control.c b/legacy/elementary/src/lib/elm_segment_control.c
index ed131142ba..0fd4ab0e1f 100644
--- a/legacy/elementary/src/lib/elm_segment_control.c
+++ b/legacy/elementary/src/lib/elm_segment_control.c
@@ -218,7 +218,7 @@ _segment_on(Elm_Segment_Item *it)
218 edje_object_signal_emit(VIEW(it), "elm,state,segment,selected", "elm"); 218 edje_object_signal_emit(VIEW(it), "elm,state,segment,selected", "elm");
219 219
220 wd->selected_item = it; 220 wd->selected_item = it;
221 evas_object_smart_callback_call(wd->obj, SIG_CHANGED, (void *)(unsigned long)it->seg_index); 221 evas_object_smart_callback_call(wd->obj, SIG_CHANGED, it);
222} 222}
223 223
224static void 224static void