Commit c7f1da6b authored by cinamod's avatar cinamod

clean up some return values in xp_theme

parent 3b960961
...@@ -11,6 +11,7 @@ ...@@ -11,6 +11,7 @@
2003-10-07 Dom Lachowicz <cinamod@hotmail.com> 2003-10-07 Dom Lachowicz <cinamod@hotmail.com>
* Added new mingw based build system, tidied up other missing bits * Added new mingw based build system, tidied up other missing bits
* src/xp_theme.c: Tidied up some return cases
2003-10-07 Raymond Penners <raymond@dotsphinx.com> 2003-10-07 Raymond Penners <raymond@dotsphinx.com>
......
...@@ -118,7 +118,7 @@ static DrawThemeBackgroundFunc draw_theme_background_func = NULL; ...@@ -118,7 +118,7 @@ static DrawThemeBackgroundFunc draw_theme_background_func = NULL;
static EnableThemeDialogTextureFunc enable_theme_dialog_texture_func = NULL; static EnableThemeDialogTextureFunc enable_theme_dialog_texture_func = NULL;
static IsThemeActiveFunc is_theme_active_func = NULL; static IsThemeActiveFunc is_theme_active_func = NULL;
static gboolean was_theming_active = FALSE; static gboolean was_theming_active = FALSE;
static void static void
xp_theme_close_open_handles (void) xp_theme_close_open_handles (void)
...@@ -157,7 +157,6 @@ xp_theme_init (void) ...@@ -157,7 +157,6 @@ xp_theme_init (void)
} }
} }
void void
xp_theme_reset (void) xp_theme_reset (void)
{ {
...@@ -667,8 +666,6 @@ xp_theme_draw (GdkWindow *win, XpThemeElement element, GtkStyle *style, ...@@ -667,8 +666,6 @@ xp_theme_draw (GdkWindow *win, XpThemeElement element, GtkStyle *style,
gboolean gboolean
xp_theme_is_drawable (XpThemeElement element) xp_theme_is_drawable (XpThemeElement element)
{ {
gboolean ret = FALSE;
if (is_theme_active_func) if (is_theme_active_func)
{ {
gboolean active = (*is_theme_active_func) (); gboolean active = (*is_theme_active_func) ();
...@@ -683,10 +680,11 @@ xp_theme_is_drawable (XpThemeElement element) ...@@ -683,10 +680,11 @@ xp_theme_is_drawable (XpThemeElement element)
if (active) if (active)
{ {
ret = (xp_theme_get_handle_by_element (element) != NULL); return (xp_theme_get_handle_by_element (element) != NULL);
} }
} }
return ret;
return FALSE;
} }
gboolean gboolean
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment