Wow... This is wow. I just found that vim settings in Elementary.h.in was WRONG. I was following indentation rules from Elementary.h.in documentation for several months. But that was wrong. I just fixed and committed that.
Thanks for your comment, Sebastian. Daniel Juyung Seo (SeoZ) On Mon, Feb 28, 2011 at 11:00 AM, Sebastian Dransfeld <[email protected]> wrote: > On 02/27/2011 11:59 PM, Enlightenment SVN wrote: >> Log: >> Elementary elm_button.c: Fix formatting. > > This seems to be wrong formatting. two spaces indent after if. Or? > > S. > >> >> >> Author: seoz >> Date: 2011-02-27 14:59:12 -0800 (Sun, 27 Feb 2011) >> New Revision: 57400 >> Trac: http://trac.enlightenment.org/e/changeset/57400 >> >> Modified: >> trunk/elementary/src/lib/elm_button.c >> >> Modified: trunk/elementary/src/lib/elm_button.c >> =================================================================== >> --- trunk/elementary/src/lib/elm_button.c 2011-02-27 22:39:51 UTC (rev >> 57399) >> +++ trunk/elementary/src/lib/elm_button.c 2011-02-27 22:59:12 UTC (rev >> 57400) >> @@ -41,10 +41,10 @@ >> static const char SIG_REPEATED[] = "repeated"; >> static const char SIG_UNPRESSED[] = "unpressed"; >> static const Evas_Smart_Cb_Description _signals[] = { >> - {SIG_CLICKED, ""}, >> - {SIG_REPEATED, ""}, >> - {SIG_UNPRESSED, ""}, >> - {NULL, NULL} >> + {SIG_CLICKED, ""}, >> + {SIG_REPEATED, ""}, >> + {SIG_UNPRESSED, ""}, >> + {NULL, NULL} >> }; >> >> static Eina_Bool >> @@ -59,7 +59,7 @@ >> if ((strcmp(ev->keyname, "Return"))&& >> (strcmp(ev->keyname, "KP_Enter"))&& >> (strcmp(ev->keyname, "space"))) >> - return EINA_FALSE; >> + return EINA_FALSE; >> _activate(obj); >> ev->event_flags |= EVAS_EVENT_FLAG_ON_HOLD; >> edje_object_signal_emit(wd->btn, "elm,anim,activate", "elm"); >> @@ -82,13 +82,13 @@ >> if (!wd) return; >> if (elm_widget_focus_get(obj)) >> { >> - edje_object_signal_emit(wd->btn, "elm,action,focus", "elm"); >> - evas_object_focus_set(wd->btn, EINA_TRUE); >> + edje_object_signal_emit(wd->btn, "elm,action,focus", "elm"); >> + evas_object_focus_set(wd->btn, EINA_TRUE); >> } >> else >> { >> - edje_object_signal_emit(wd->btn, "elm,action,unfocus", "elm"); >> - evas_object_focus_set(wd->btn, EINA_FALSE); >> + edje_object_signal_emit(wd->btn, "elm,action,unfocus", "elm"); >> + evas_object_focus_set(wd->btn, EINA_FALSE); >> } >> } >> >> @@ -110,25 +110,25 @@ >> _mirrored_set(obj, elm_widget_mirrored_get(obj)); >> _elm_theme_object_set(obj, wd->btn, "button", "base", >> elm_widget_style_get(obj)); >> if (wd->icon) >> - edje_object_part_swallow(wd->btn, "elm.swallow.content", wd->icon); >> + edje_object_part_swallow(wd->btn, "elm.swallow.content", wd->icon); >> if (wd->label) >> - edje_object_signal_emit(wd->btn, "elm,state,text,visible", "elm"); >> + edje_object_signal_emit(wd->btn, "elm,state,text,visible", "elm"); >> else >> - edje_object_signal_emit(wd->btn, "elm,state,text,hidden", "elm"); >> + edje_object_signal_emit(wd->btn, "elm,state,text,hidden", "elm"); >> if (wd->icon) >> - edje_object_signal_emit(wd->btn, "elm,state,icon,visible", "elm"); >> + edje_object_signal_emit(wd->btn, "elm,state,icon,visible", "elm"); >> else >> - edje_object_signal_emit(wd->btn, "elm,state,icon,hidden", "elm"); >> + edje_object_signal_emit(wd->btn, "elm,state,icon,hidden", "elm"); >> edje_object_part_text_set(wd->btn, "elm.text", wd->label); >> if (elm_object_disabled_get(obj)) >> - edje_object_signal_emit(wd->btn, "elm,state,disabled", "elm"); >> + edje_object_signal_emit(wd->btn, "elm,state,disabled", "elm"); >> edje_object_message_signal_process(wd->btn); >> edje_object_scale_set(wd->btn, elm_widget_scale_get(obj) * >> _elm_config->scale); >> str = edje_object_data_get(wd->btn, "focus_highlight"); >> if ((str)&& (!strcmp(str, "on"))) >> - elm_widget_highlight_in_theme_set(obj, EINA_TRUE); >> + elm_widget_highlight_in_theme_set(obj, EINA_TRUE); >> else >> - elm_widget_highlight_in_theme_set(obj, EINA_FALSE); >> + elm_widget_highlight_in_theme_set(obj, EINA_FALSE); >> _sizing_eval(obj); >> } >> >> @@ -138,9 +138,9 @@ >> Widget_Data *wd = elm_widget_data_get(obj); >> if (!wd) return; >> if (elm_widget_disabled_get(obj)) >> - edje_object_signal_emit(wd->btn, "elm,state,disabled", "elm"); >> + edje_object_signal_emit(wd->btn, "elm,state,disabled", "elm"); >> else >> - edje_object_signal_emit(wd->btn, "elm,state,enabled", "elm"); >> + edje_object_signal_emit(wd->btn, "elm,state,enabled", "elm"); >> } >> >> static void >> @@ -197,12 +197,12 @@ >> if (!wd) return; >> if (sub == wd->icon) >> { >> - edje_object_signal_emit(wd->btn, "elm,state,icon,hidden", "elm"); >> - evas_object_event_callback_del_full(sub, >> EVAS_CALLBACK_CHANGED_SIZE_HINTS, >> - _changed_size_hints, obj); >> - wd->icon = NULL; >> - edje_object_message_signal_process(wd->btn); >> - _sizing_eval(obj); >> + edje_object_signal_emit(wd->btn, "elm,state,icon,hidden", "elm"); >> + evas_object_event_callback_del_full(sub, >> EVAS_CALLBACK_CHANGED_SIZE_HINTS, >> + _changed_size_hints, obj); >> + wd->icon = NULL; >> + edje_object_message_signal_process(wd->btn); >> + _sizing_eval(obj); >> } >> } >> >> @@ -213,8 +213,8 @@ >> if (!wd) return; >> if (wd->timer) >> { >> - ecore_timer_del(wd->timer); >> - wd->timer = NULL; >> + ecore_timer_del(wd->timer); >> + wd->timer = NULL; >> } >> wd->repeating = EINA_FALSE; >> evas_object_smart_callback_call(obj, SIG_CLICKED, NULL); >> @@ -241,8 +241,8 @@ >> evas_object_smart_callback_call(data, SIG_REPEATED, NULL); >> if (!wd->repeating) >> { >> - wd->timer = NULL; >> - return ECORE_CALLBACK_CANCEL; >> + wd->timer = NULL; >> + return ECORE_CALLBACK_CANCEL; >> } >> >> return ECORE_CALLBACK_RENEW; >> @@ -270,10 +270,10 @@ >> >> if ((wd->autorepeat)&& (!wd->repeating)) >> { >> - if (wd->ar_threshold<= 0.0) >> - _autorepeat_initial_send(data); /* call immediately */ >> - else >> - wd->timer = ecore_timer_add(wd->ar_threshold, >> _autorepeat_initial_send, data); >> + if (wd->ar_threshold<= 0.0) >> + _autorepeat_initial_send(data); /* call immediately */ >> + else >> + wd->timer = ecore_timer_add(wd->ar_threshold, >> _autorepeat_initial_send, data); >> } >> } >> >> @@ -285,8 +285,8 @@ >> >> if (wd->timer) >> { >> - ecore_timer_del(wd->timer); >> - wd->timer = NULL; >> + ecore_timer_del(wd->timer); >> + wd->timer = NULL; >> } >> wd->repeating = EINA_FALSE; >> evas_object_smart_callback_call(data, SIG_UNPRESSED, NULL); >> @@ -363,9 +363,9 @@ >> if (!wd) return; >> eina_stringshare_replace(&wd->label, label); >> if (label) >> - edje_object_signal_emit(wd->btn, "elm,state,text,visible", "elm"); >> + edje_object_signal_emit(wd->btn, "elm,state,text,visible", "elm"); >> else >> - edje_object_signal_emit(wd->btn, "elm,state,text,hidden", "elm"); >> + edje_object_signal_emit(wd->btn, "elm,state,text,hidden", "elm"); >> edje_object_message_signal_process(wd->btn); >> edje_object_part_text_set(wd->btn, "elm.text", label); >> _sizing_eval(obj); >> @@ -403,12 +403,12 @@ >> wd->icon = icon; >> if (icon) >> { >> - elm_widget_sub_object_add(obj, icon); >> - evas_object_event_callback_add(icon, EVAS_CALLBACK_CHANGED_SIZE_HINTS, >> - _changed_size_hints, obj); >> - edje_object_part_swallow(wd->btn, "elm.swallow.content", icon); >> - edje_object_signal_emit(wd->btn, "elm,state,icon,visible", "elm"); >> - edje_object_message_signal_process(wd->btn); >> + elm_widget_sub_object_add(obj, icon); >> + evas_object_event_callback_add(icon, >> EVAS_CALLBACK_CHANGED_SIZE_HINTS, >> + _changed_size_hints, obj); >> + edje_object_part_swallow(wd->btn, "elm.swallow.content", icon); >> + edje_object_signal_emit(wd->btn, "elm,state,icon,visible", "elm"); >> + edje_object_message_signal_process(wd->btn); >> } >> _sizing_eval(obj); >> } >> @@ -513,8 +513,8 @@ >> if (wd->ar_threshold == t) return; >> if (wd->timer) >> { >> - ecore_timer_del(wd->timer); >> - wd->timer = NULL; >> + ecore_timer_del(wd->timer); >> + wd->timer = NULL; >> } >> wd->ar_threshold = t; >> } >> >> >> ------------------------------------------------------------------------------ >> Free Software Download: Index, Search& Analyze Logs and other IT data in >> Real-Time with Splunk. Collect, index and harness all the fast moving IT data >> generated by your applications, servers and devices whether physical, virtual >> or in the cloud. Deliver compliance at lower cost and gain new business >> insights. http://p.sf.net/sfu/splunk-dev2dev >> _______________________________________________ >> enlightenment-svn mailing list >> [email protected] >> https://lists.sourceforge.net/lists/listinfo/enlightenment-svn > > > ------------------------------------------------------------------------------ > Free Software Download: Index, Search & Analyze Logs and other IT data in > Real-Time with Splunk. Collect, index and harness all the fast moving IT data > generated by your applications, servers and devices whether physical, virtual > or in the cloud. Deliver compliance at lower cost and gain new business > insights. http://p.sf.net/sfu/splunk-dev2dev > _______________________________________________ > enlightenment-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/enlightenment-devel > ------------------------------------------------------------------------------ Free Software Download: Index, Search & Analyze Logs and other IT data in Real-Time with Splunk. Collect, index and harness all the fast moving IT data generated by your applications, servers and devices whether physical, virtual or in the cloud. Deliver compliance at lower cost and gain new business insights. http://p.sf.net/sfu/splunk-dev2dev _______________________________________________ enlightenment-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
