From: hermet Date: Wed, 23 Nov 2011 02:47:57 +0000 (+0000) Subject: elementary/panes - change the default to left content X-Git-Tag: REL_F_I9500_20120323_1~17^2~1292 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=119055e649b1ac3440e3780216756a9236949f5c;p=framework%2Fuifw%2Felementary.git elementary/panes - change the default to left content my fault. left content would be better as a default content git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/elementary@65525 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- diff --git a/src/lib/elm_panes.c b/src/lib/elm_panes.c index 9eba317..2c4d011 100644 --- a/src/lib/elm_panes.c +++ b/src/lib/elm_panes.c @@ -277,10 +277,10 @@ _content_set_hook(Evas_Object *obj, const char *part, Evas_Object *content) Widget_Data *wd = elm_widget_data_get(obj); if (!wd) return; if (part && (!strncmp(part, "elm.swallow.", 12))) part += 12; - if (!part || !strcmp(part, "right")) - _content_right_set(obj, content); - else if(!strcmp(part, "left")) + if (!part || !strcmp(part, "left")) _content_left_set(obj, content); + else if(!strcmp(part, "right")) + _content_right_set(obj, content); } static Evas_Object * @@ -290,10 +290,10 @@ _content_get_hook(const Evas_Object *obj, const char *part) Widget_Data *wd = elm_widget_data_get(obj); if (!wd) return NULL; if (part && (!strncmp(part, "elm.swallow.", 12))) part += 12; - if (!part || !strcmp(part, "right")) - return wd->contents.right; - else if (!strcmp(part, "left")) + if (!part || !strcmp(part, "left")) return wd->contents.left; + else if (!strcmp(part, "right")) + return wd->contents.right; return NULL; } @@ -304,10 +304,10 @@ _content_unset_hook(Evas_Object *obj, const char *part) Widget_Data *wd = elm_widget_data_get(obj); if (!wd) return NULL; if (part && (!strncmp(part, "elm.swallow.", 12))) part += 12; - if (!part || !strcmp(part, "right")) - return _content_right_unset(obj); - else if (!strcmp(part, "left")) + if (!part || !strcmp(part, "left")) return _content_left_unset(obj); + else if (!strcmp(part, "right")) + return _content_right_unset(obj); return NULL; }