Enlightenment CVS committal Author : ningerso Project : e17 Module : libs/ewl
Dir : e17/libs/ewl/src/lib Modified Files: ewl_widget.c Log Message: Fix updating default text parts on widgets. =================================================================== RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_widget.c,v retrieving revision 1.118 retrieving revision 1.119 diff -u -3 -r1.118 -r1.119 --- ewl_widget.c 5 Jan 2007 08:18:26 -0000 1.118 +++ ewl_widget.c 5 Jan 2007 23:58:35 -0000 1.119 @@ -922,13 +922,16 @@ DCHECK_PARAM_PTR("w", w); DCHECK_TYPE("w", w, EWL_WIDGET_TYPE); + if (part && !*part) + part = NULL; + /* * Check for an existing instance of the part key. */ if (w->theme_text.list) { if (w->theme_text.direct) { match = EWL_PAIR(w->theme_text.list); - if (part == match->key || + if (part != match->key || (part && strcmp(part, match->key))) match = NULL; } @@ -1011,7 +1014,6 @@ DENTER_FUNCTION(DLEVEL_STABLE); DCHECK_PARAM_PTR_RET("w", w, NULL); - DCHECK_PARAM_PTR_RET("part", part, NULL); DCHECK_TYPE_RET("w", w, EWL_WIDGET_TYPE, NULL); /* @@ -1085,6 +1087,9 @@ match = ewl_widget_appearance_part_text_get(w, part); FREE(part); } + + if (!match) + match = ewl_widget_appearance_part_text_get(w, NULL); DRETURN_PTR(match, DLEVEL_STABLE); } ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs