Mercurial > mplayer.hg
diff gui/skin/skin.c @ 35493:411875efca3f
Introduce boolean symbolic constants.
Use them wherever suitable and useful to make code easier to read.
author | ib |
---|---|
date | Tue, 04 Dec 2012 18:36:14 +0000 |
parents | 31a5320909f7 |
children | e27855a45128 |
line wrap: on
line diff
--- a/gui/skin/skin.c Tue Dec 04 16:08:18 2012 +0000 +++ b/gui/skin/skin.c Tue Dec 04 18:36:14 2012 +0000 @@ -27,6 +27,7 @@ #include "skin.h" #include "font.h" #include "gui/app.h" +#include "gui/gui.h" #include "gui/interface.h" #include "gui/ui/widgets.h" #include "gui/util/cut.h" @@ -78,16 +79,16 @@ * * @param item name of the item to be put in a message in case of an error * - * @return 1 (ok) or 0 (error) + * @return #True (ok) or #False (error) */ static int section_item(char *item) { if (!skin) { skin_error(MSGTR_SKIN_ERROR_SECTION, item); - return 0; + return False; } - return 1; + return True; } /** @@ -95,16 +96,16 @@ * * @param item name of the item to be put in a message in case of an error * - * @return 1 (ok) or 0 (error) + * @return #True (ok) or #False (error) */ static int window_item(char *item) { if (!currWinName[0]) { skin_error(MSGTR_SKIN_ERROR_WINDOW, item); - return 0; + return False; } - return 1; + return True; } /** @@ -364,9 +365,9 @@ } if (is_bar) - skin->playbarIsPresent = 1; + skin->playbarIsPresent = True; if (is_menu) - skin->menuIsPresent = 1; + skin->menuIsPresent = True; return 0; }