Just indenting this file.
authorGustavo Lima Chaves <glima@profusion.mobi>
Mon, 6 Dec 2010 12:46:02 +0000 (12:46 +0000)
committerGustavo Lima Chaves <glima@profusion.mobi>
Mon, 6 Dec 2010 12:46:02 +0000 (12:46 +0000)
SVN revision: 55327

src/bin/test_tooltip.c

index 522162f..1dabd1a 100644 (file)
@@ -7,15 +7,17 @@
 typedef struct _Testitem
 {
    Elm_Gengrid_Item *item;
-   const char *path;
-   int mode;
-   int onoff;
+   const char       *path;
+   int               mode;
+   int               onoff;
 } Testitem;
 
 static Elm_Gengrid_Item_Class gic;
 
 char *
-grdt_lbl_get(void *data, Evas_Object *obj __UNUSED__, const char *part __UNUSED__)
+grdt_lbl_get(void            *data,
+             Evas_Object *obj __UNUSED__,
+             const char *part __UNUSED__)
 {
    const Testitem *ti = data;
    char buf[256];
@@ -24,16 +26,20 @@ grdt_lbl_get(void *data, Evas_Object *obj __UNUSED__, const char *part __UNUSED_
 }
 
 Evas_Object *
-grdt_icon_get(void *data, Evas_Object *obj, const char *part)
+grdt_icon_get(void        *data,
+              Evas_Object *obj,
+              const char  *part)
 {
    const Testitem *ti = data;
    if (!strcmp(part, "elm.swallow.icon"))
      {
-       Evas_Object *icon = elm_bg_add(obj);
-       elm_bg_file_set(icon, ti->path, NULL);
-       evas_object_size_hint_aspect_set(icon, EVAS_ASPECT_CONTROL_VERTICAL, 1, 1);
-       evas_object_show(icon);
-       return icon;
+        Evas_Object *icon = elm_bg_add(obj);
+        elm_bg_file_set(icon, ti->path, NULL);
+        evas_object_size_hint_aspect_set(icon,
+                                         EVAS_ASPECT_CONTROL_VERTICAL,
+                                         1, 1);
+        evas_object_show(icon);
+        return icon;
      }
    return NULL;
 }
@@ -41,7 +47,9 @@ grdt_icon_get(void *data, Evas_Object *obj, const char *part)
 static Elm_Genlist_Item_Class itct;
 
 static void
-gltt_exp(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info)
+gltt_exp(void *data       __UNUSED__,
+         Evas_Object *obj __UNUSED__,
+         void            *event_info)
 {
    Elm_Genlist_Item *it = event_info;
    Evas_Object *gl = elm_genlist_item_genlist_get(it);
@@ -62,28 +70,36 @@ gltt_exp(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info)
 }
 
 static void
-gltt_con(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info)
+gltt_con(void *data       __UNUSED__,
+         Evas_Object *obj __UNUSED__,
+         void            *event_info)
 {
    Elm_Genlist_Item *it = event_info;
    elm_genlist_item_subitems_clear(it);
 }
 
 static void
-gltt_exp_req(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info)
+gltt_exp_req(void *data       __UNUSED__,
+             Evas_Object *obj __UNUSED__,
+             void            *event_info)
 {
    Elm_Genlist_Item *it = event_info;
    elm_genlist_item_expanded_set(it, 1);
 }
 
 static void
-gltt_con_req(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info)
+gltt_con_req(void *data       __UNUSED__,
+             Evas_Object *obj __UNUSED__,
+             void            *event_info)
 {
    Elm_Genlist_Item *it = event_info;
    elm_genlist_item_expanded_set(it, 0);
 }
 
 char *
-gltt_label_get(void *data, Evas_Object *obj __UNUSED__, const char *part __UNUSED__)
+gltt_label_get(void            *data,
+               Evas_Object *obj __UNUSED__,
+               const char *part __UNUSED__)
 {
    char buf[256];
    snprintf(buf, sizeof(buf), "Item mode %i", (int)(long)data);
@@ -91,11 +107,14 @@ gltt_label_get(void *data, Evas_Object *obj __UNUSED__, const char *part __UNUSE
 }
 
 static Evas_Object *
-_tt_item_icon(void *data __UNUSED__, Evas_Object *obj, void *item __UNUSED__)
+_tt_item_icon(void *data   __UNUSED__,
+              Evas_Object *obj,
+              void *item   __UNUSED__)
 {
    Evas_Object *ic = elm_icon_add(obj);
    char buf[PATH_MAX];
-   snprintf(buf, sizeof(buf), "%s/images/logo_small.png", PACKAGE_DATA_DIR);
+   snprintf(buf, sizeof(buf), "%s/images/logo_small.png",
+            PACKAGE_DATA_DIR);
    elm_icon_file_set(ic, buf, NULL);
    elm_icon_scale_set(ic, 0, 0);
    evas_object_resize(ic, 64, 64);
@@ -103,7 +122,9 @@ _tt_item_icon(void *data __UNUSED__, Evas_Object *obj, void *item __UNUSED__)
 }
 
 static void
-_tt_item_icon_del(void *data, Evas_Object *obj __UNUSED__, void *event_info)
+_tt_item_icon_del(void            *data,
+                  Evas_Object *obj __UNUSED__,
+                  void            *event_info)
 {
    // test to check for del_cb behavior!
    printf("_tt_icon_del: data=%ld (== 456?), event_info=%p\n",
@@ -111,7 +132,9 @@ _tt_item_icon_del(void *data, Evas_Object *obj __UNUSED__, void *event_info)
 }
 
 static void
-_tt_text_replace(void *data __UNUSED__, Evas_Object *obj, void *event_info __UNUSED__)
+_tt_text_replace(void *data       __UNUSED__,
+                 Evas_Object     *obj,
+                 void *event_info __UNUSED__)
 {
    static int count = 0;
    char buf[64];
@@ -121,7 +144,10 @@ _tt_text_replace(void *data __UNUSED__, Evas_Object *obj, void *event_info __UNU
 }
 
 static void
-_tt_timer_del(void *data __UNUSED__, Evas *e __UNUSED__, Evas_Object *obj, void *event_info __UNUSED__)
+_tt_timer_del(void *data       __UNUSED__,
+              Evas *e          __UNUSED__,
+              Evas_Object     *obj,
+              void *event_info __UNUSED__)
 {
    Ecore_Timer *timer = evas_object_data_del(obj, "test-timer");
    if (!timer) return;
@@ -136,28 +162,34 @@ _tt_text_replace_timer_cb(void *data)
 }
 
 static void
-_tt_text_replace_timed(void *data __UNUSED__, Evas_Object *obj, void *event_info __UNUSED__)
+_tt_text_replace_timed(void *data       __UNUSED__,
+                       Evas_Object     *obj,
+                       void *event_info __UNUSED__)
 {
    Ecore_Timer *timer = evas_object_data_get(obj, "test-timer");
    if (timer)
      {
         ecore_timer_del(timer);
         evas_object_data_del(obj, "test-timer");
-        elm_button_label_set(obj, "Simple text tooltip, click to start changed timed");
+        elm_button_label_set(obj, "Simple text tooltip, click to start"
+                                  " changed timed");
         return;
      }
 
    timer = ecore_timer_add(1.5, _tt_text_replace_timer_cb, obj);
    evas_object_data_set(obj, "test-timer", timer);
-   elm_button_label_set(obj, "Simple text tooltip, click to stop changed timed");
+   elm_button_label_set(obj, "Simple text tooltip, click to stop changed"
+                             " timed");
 }
 
 static Evas_Object *
-_tt_icon(void *data __UNUSED__, Evas_Object *obj)
+_tt_icon(void *data   __UNUSED__,
+         Evas_Object *obj)
 {
    Evas_Object *ic = elm_icon_add(obj);
    char buf[PATH_MAX];
-   snprintf(buf, sizeof(buf), "%s/images/logo_small.png", PACKAGE_DATA_DIR);
+   snprintf(buf, sizeof(buf), "%s/images/logo_small.png",
+            PACKAGE_DATA_DIR);
    elm_icon_file_set(ic, buf, NULL);
    elm_icon_scale_set(ic, 0, 0);
    evas_object_resize(ic, 64, 64);
@@ -165,7 +197,8 @@ _tt_icon(void *data __UNUSED__, Evas_Object *obj)
 }
 
 static Evas_Object *
-_tt_icon2(void *data __UNUSED__, Evas_Object *obj)
+_tt_icon2(void *data   __UNUSED__,
+          Evas_Object *obj)
 {
    Evas_Object *ic = elm_icon_add(obj);
    char buf[PATH_MAX];
@@ -177,7 +210,9 @@ _tt_icon2(void *data __UNUSED__, Evas_Object *obj)
 }
 
 static void
-_tt_icon_del(void *data, Evas_Object *obj __UNUSED__, void *event_info)
+_tt_icon_del(void            *data,
+             Evas_Object *obj __UNUSED__,
+             void            *event_info)
 {
    // test to check for del_cb behavior!
    printf("_tt_icon_del: data=%ld (== 123?), event_info=%p\n",
@@ -197,14 +232,17 @@ _tt_icon_replace_timer_cb(void *data)
 }
 
 static void
-_tt_icon_replace_timed(void *data __UNUSED__, Evas_Object *obj, void *event_info __UNUSED__)
+_tt_icon_replace_timed(void *data       __UNUSED__,
+                       Evas_Object     *obj,
+                       void *event_info __UNUSED__)
 {
    Ecore_Timer *timer = evas_object_data_get(obj, "test-timer");
    if (timer)
      {
         ecore_timer_del(timer);
         evas_object_data_del(obj, "test-timer");
-        elm_button_label_set(obj, "Icon tooltip, click to start changed timed");
+        elm_button_label_set(obj, "Icon tooltip, click to start changed"
+                                  " timed");
         return;
      }
 
@@ -223,24 +261,30 @@ _tt_style_replace_timer_cb(void *data)
 }
 
 static void
-_tt_style_replace_timed(void *data __UNUSED__, Evas_Object *obj, void *event_info __UNUSED__)
+_tt_style_replace_timed(void *data       __UNUSED__,
+                        Evas_Object     *obj,
+                        void *event_info __UNUSED__)
 {
    Ecore_Timer *timer = evas_object_data_get(obj, "test-timer");
    if (timer)
      {
         ecore_timer_del(timer);
         evas_object_data_del(obj, "test-timer");
-        elm_button_label_set(obj, "Icon tooltip style, click to start changed timed");
+        elm_button_label_set(obj, "Icon tooltip style, click to start"
+                                  " changed timed");
         return;
      }
 
    timer = ecore_timer_add(1.5, _tt_style_replace_timer_cb, obj);
    evas_object_data_set(obj, "test-timer", timer);
-   elm_button_label_set(obj, "Icon tooltip style, click to stop changed timed");
+   elm_button_label_set(obj, "Icon tooltip style, click to stop changed"
+                             " timed");
 }
 
 static void
-_tt_visible_lock_toggle(void *data __UNUSED__, Evas_Object *obj, void *event_info __UNUSED__)
+_tt_visible_lock_toggle(void *data       __UNUSED__,
+                        Evas_Object     *obj,
+                        void *event_info __UNUSED__)
 {
    static int locked = 0;
 
@@ -248,20 +292,25 @@ _tt_visible_lock_toggle(void *data __UNUSED__, Evas_Object *obj, void *event_inf
    if (locked)
      {
         elm_button_label_set(obj, "Locked tooltip visibility");
-        elm_object_tooltip_text_set(obj, "This tooltip is locked visible,<br> click the button to unlock!");
+        elm_object_tooltip_text_set(obj, "This tooltip is locked"
+                                         " visible,<br> click the button"
+                                         " to unlock!");
         elm_object_tooltip_show(obj);
      }
    else
      {
         elm_button_label_set(obj, "Unlocked tooltip visibility");
-        elm_object_tooltip_text_set(obj, "This tooltip is unlocked visible,<br> click the button to lock!");
+        elm_object_tooltip_text_set(obj, "This tooltip is unlocked"
+                                         " visible,<br> click the button"
+                                         " to lock!");
         elm_object_tooltip_hide(obj);
      }
-
 }
 
 void
-test_tooltip(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
+test_tooltip(void *data       __UNUSED__,
+             Evas_Object *obj __UNUSED__,
+             void *event_info __UNUSED__)
 {
    Evas_Object *win, *bg, *bx, *tb, *bt, *se, *lst;
    Elm_Toolbar_Item *ti;
@@ -273,11 +322,13 @@ test_tooltip(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_inf
 
    bg = elm_bg_add(win);
    elm_win_resize_object_add(win, bg);
-   evas_object_size_hint_weight_set(bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+   evas_object_size_hint_weight_set(bg, EVAS_HINT_EXPAND,
+                                    EVAS_HINT_EXPAND);
    evas_object_show(bg);
 
    bx = elm_box_add(win);
-   evas_object_size_hint_weight_set(bx, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+   evas_object_size_hint_weight_set(bx, EVAS_HINT_EXPAND,
+                                    EVAS_HINT_EXPAND);
    elm_win_resize_object_add(win, bx);
    evas_object_show(bx);
 
@@ -310,26 +361,32 @@ test_tooltip(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_inf
    evas_object_show(bt);
 
    bt = elm_button_add(win);
-   elm_button_label_set(bt, "Simple text tooltip, click to start changed timed");
+   elm_button_label_set(bt, "Simple text tooltip, click to start"
+                            " changed timed");
    elm_object_tooltip_text_set(bt, "Initial");
-   evas_object_smart_callback_add(bt, "clicked", _tt_text_replace_timed, NULL);
+   evas_object_smart_callback_add(bt, "clicked", _tt_text_replace_timed,
+                                  NULL);
    elm_box_pack_end(bx, bt);
    evas_object_show(bt);
-   evas_object_event_callback_add(bt, EVAS_CALLBACK_DEL, _tt_timer_del, NULL);
+   evas_object_event_callback_add(bt, EVAS_CALLBACK_DEL, _tt_timer_del,
+                                  NULL);
 
    bt = elm_button_add(win);
    elm_button_label_set(bt, "Icon tooltip");
-   elm_object_tooltip_content_cb_set(bt, _tt_icon, (void*)123L, _tt_icon_del);
+   elm_object_tooltip_content_cb_set(bt, _tt_icon, (void *)123L,
+                                     _tt_icon_del);
    elm_box_pack_end(bx, bt);
    evas_object_show(bt);
 
    bt = elm_button_add(win);
    elm_button_label_set(bt, "Icon tooltip, click to start changed timed");
    elm_object_tooltip_content_cb_set(bt, _tt_icon, NULL, NULL);
-   evas_object_smart_callback_add(bt, "clicked", _tt_icon_replace_timed, NULL);
+   evas_object_smart_callback_add(bt, "clicked", _tt_icon_replace_timed,
+                                  NULL);
    elm_box_pack_end(bx, bt);
    evas_object_show(bt);
-   evas_object_event_callback_add(bt, EVAS_CALLBACK_DEL, _tt_timer_del, NULL);
+   evas_object_event_callback_add(bt, EVAS_CALLBACK_DEL, _tt_timer_del,
+                                  NULL);
 
    bt = elm_button_add(win);
    elm_button_label_set(bt, "Transparent Icon tooltip");
@@ -339,24 +396,30 @@ test_tooltip(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_inf
    evas_object_show(bt);
 
    bt = elm_button_add(win);
-   elm_button_label_set(bt, "Icon tooltip style, click to start changed timed");
+   elm_button_label_set(bt, "Icon tooltip style, click to start changed"
+                            " timed");
    elm_object_tooltip_content_cb_set(bt, _tt_icon, NULL, NULL);
-   evas_object_smart_callback_add(bt, "clicked", _tt_style_replace_timed, NULL);
+   evas_object_smart_callback_add(bt, "clicked", _tt_style_replace_timed,
+                                  NULL);
    elm_box_pack_end(bx, bt);
    evas_object_show(bt);
-   evas_object_event_callback_add(bt, EVAS_CALLBACK_DEL, _tt_timer_del, NULL);
+   evas_object_event_callback_add(bt, EVAS_CALLBACK_DEL, _tt_timer_del,
+                                  NULL);
 
    bt = elm_button_add(win);
    elm_button_label_set(bt, "Unlocked tooltip visibility");
-   elm_object_tooltip_text_set(bt, "This tooltip is unlocked visible,<br> click the button to lock!");
-   evas_object_smart_callback_add(bt, "clicked", _tt_visible_lock_toggle, NULL);
+   elm_object_tooltip_text_set(bt, "This tooltip is unlocked visible,<br>"
+                                   " click the button to lock!");
+   evas_object_smart_callback_add(bt, "clicked", _tt_visible_lock_toggle,
+                                  NULL);
    elm_box_pack_end(bx, bt);
    evas_object_show(bt);
 
    se = elm_scrolled_entry_add(win);
    evas_object_size_hint_weight_set(se, EVAS_HINT_EXPAND, 0.0);
    evas_object_size_hint_align_set(se, EVAS_HINT_FILL, 0.5);
-   elm_scrolled_entry_scrollbar_policy_set(se, ELM_SCROLLER_POLICY_OFF, ELM_SCROLLER_POLICY_OFF);
+   elm_scrolled_entry_scrollbar_policy_set(se, ELM_SCROLLER_POLICY_OFF,
+                                           ELM_SCROLLER_POLICY_OFF);
    elm_scrolled_entry_entry_set(se, "Hello, some scrolled entry here!");
    elm_object_tooltip_text_set(se, "Type something here!");
    elm_scrolled_entry_single_line_set(se, 1);
@@ -364,11 +427,12 @@ test_tooltip(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_inf
    evas_object_show(se);
 
    lst = elm_list_add(win);
-   li = elm_list_item_append(lst, "Hello", NULL, NULL,  NULL, NULL);
+   li = elm_list_item_append(lst, "Hello", NULL, NULL, NULL, NULL);
    elm_list_item_tooltip_text_set(li, "Something useful here?");
-   li = elm_list_item_append(lst, "Icon Tooltip", NULL, NULL,  NULL, NULL);
+   li = elm_list_item_append(lst, "Icon Tooltip", NULL, NULL, NULL, NULL);
    elm_list_item_tooltip_content_cb_set(li, _tt_item_icon, NULL, NULL);
-   evas_object_size_hint_weight_set(lst, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+   evas_object_size_hint_weight_set(lst, EVAS_HINT_EXPAND,
+                                    EVAS_HINT_EXPAND);
    evas_object_size_hint_align_set(lst, EVAS_HINT_FILL, EVAS_HINT_FILL);
    evas_object_size_hint_min_set(lst, 100, 100);
    elm_list_go(lst);
@@ -380,7 +444,9 @@ test_tooltip(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_inf
 }
 
 void
-test_tooltip2(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
+test_tooltip2(void *data       __UNUSED__,
+              Evas_Object *obj __UNUSED__,
+              void *event_info __UNUSED__)
 {
    Evas_Object *win, *bg, *bx, *grid, *gl;
    Elm_Genlist_Item *it1, *it2, *it3;
@@ -388,29 +454,31 @@ test_tooltip2(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_in
    int i, n;
    char buf[PATH_MAX];
    const char *img[9] =
-     {
-       "panel_01.jpg",
-       "plant_01.jpg",
-       "rock_01.jpg",
-       "rock_02.jpg",
-       "sky_01.jpg",
-       "sky_02.jpg",
-       "sky_03.jpg",
-       "sky_04.jpg",
-       "wood_01.jpg",
-     };
+   {
+      "panel_01.jpg",
+      "plant_01.jpg",
+      "rock_01.jpg",
+      "rock_02.jpg",
+      "sky_01.jpg",
+      "sky_02.jpg",
+      "sky_03.jpg",
+      "sky_04.jpg",
+      "wood_01.jpg",
+   };
 
    win = elm_win_add(NULL, "tooltip2", ELM_WIN_BASIC);
    elm_win_title_set(win, "Tooltip 2");
    elm_win_autodel_set(win, 1);
 
    bg = elm_bg_add(win);
-   evas_object_size_hint_weight_set(bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+   evas_object_size_hint_weight_set(bg, EVAS_HINT_EXPAND,
+                                    EVAS_HINT_EXPAND);
    elm_win_resize_object_add(win, bg);
    evas_object_show(bg);
 
    bx = elm_box_add(win);
-   evas_object_size_hint_weight_set(bx, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+   evas_object_size_hint_weight_set(bx, EVAS_HINT_EXPAND,
+                                    EVAS_HINT_EXPAND);
    elm_win_resize_object_add(win, bx);
    evas_object_show(bx);
 
@@ -419,7 +487,8 @@ test_tooltip2(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_in
    elm_gengrid_horizontal_set(grid, EINA_FALSE);
    elm_gengrid_multi_select_set(grid, EINA_TRUE);
    evas_object_size_hint_align_set(grid, EVAS_HINT_FILL, EVAS_HINT_FILL);
-   evas_object_size_hint_weight_set(grid, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+   evas_object_size_hint_weight_set(grid, EVAS_HINT_EXPAND,
+                                    EVAS_HINT_EXPAND);
 
    gic.item_style = "default";
    gic.func.label_get = grdt_lbl_get;
@@ -428,17 +497,19 @@ test_tooltip2(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_in
    n = 0;
    for (i = 0; i < 9; i++)
      {
-       snprintf(buf, sizeof(buf), "%s/images/%s", PACKAGE_DATA_DIR, img[n]);
-       n++;
-       ti[i].mode = i;
-       ti[i].path = eina_stringshare_add(buf);
-       ti[i].item = elm_gengrid_item_append(grid, &gic, &(ti[i]), NULL, NULL);
-       if (n % 2)
-         elm_gengrid_item_tooltip_text_set(ti[i].item, "Testing X");
-       else
-         elm_gengrid_item_tooltip_text_set(ti[i].item, "Testing Y");
-       if (!(i % 5))
-         elm_gengrid_item_selected_set(ti[i].item, EINA_TRUE);
+        snprintf(buf, sizeof(buf), "%s/images/%s", PACKAGE_DATA_DIR,
+                 img[n]);
+        n++;
+        ti[i].mode = i;
+        ti[i].path = eina_stringshare_add(buf);
+        ti[i].item = elm_gengrid_item_append(grid, &gic, &(ti[i]), NULL,
+                                             NULL);
+        if (n % 2)
+          elm_gengrid_item_tooltip_text_set(ti[i].item, "Testing X");
+        else
+          elm_gengrid_item_tooltip_text_set(ti[i].item, "Testing Y");
+        if (!(i % 5))
+          elm_gengrid_item_selected_set(ti[i].item, EINA_TRUE);
      }
 
    elm_box_pack_end(bx, grid);
@@ -446,9 +517,10 @@ test_tooltip2(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_in
 
    gl = elm_genlist_add(win);
    evas_object_size_hint_align_set(gl, EVAS_HINT_FILL, EVAS_HINT_FILL);
-   evas_object_size_hint_weight_set(gl, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+   evas_object_size_hint_weight_set(gl, EVAS_HINT_EXPAND,
+                                    EVAS_HINT_EXPAND);
 
-   itct.item_style     = "default";
+   itct.item_style = "default";
    itct.func.label_get = gltt_label_get;
 
    it1 = elm_genlist_item_append(gl, &itct, (void *)1, NULL,
@@ -463,7 +535,8 @@ test_tooltip2(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_in
    elm_genlist_item_tooltip_text_set(it3, "Testing 3");
 
    evas_object_smart_callback_add(gl, "expand,request", gltt_exp_req, gl);
-   evas_object_smart_callback_add(gl, "contract,request", gltt_con_req, gl);
+   evas_object_smart_callback_add(gl, "contract,request", gltt_con_req,
+                                  gl);
    evas_object_smart_callback_add(gl, "expanded", gltt_exp, gl);
    evas_object_smart_callback_add(gl, "contracted", gltt_con, gl);
 
@@ -473,4 +546,5 @@ test_tooltip2(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_in
    evas_object_resize(win, 320, 480);
    evas_object_show(win);
 }
+
 #endif