Mercurial > pidgin.yaz
diff libpurple/theme-manager.c @ 23483:748308865dbf
Changed how the prefs handle themes
author | Justin Rodriguez <ffdragon@soc.pidgin.im> |
---|---|
date | Wed, 23 Jul 2008 05:32:00 +0000 |
parents | 331a7a69d955 |
children | 9525fb966efb 4575b578a54b |
line wrap: on
line diff
--- a/libpurple/theme-manager.c Tue Jul 22 03:08:59 2008 +0000 +++ b/libpurple/theme-manager.c Wed Jul 23 05:32:00 2008 +0000 @@ -21,7 +21,8 @@ * */ -#include <stdarg.h> +#include <string.h> + #include "theme-manager.h" /****************************************************************************** @@ -65,8 +66,8 @@ static gchar * purple_theme_manager_make_key(const gchar *name, const gchar *type) { - g_return_val_if_fail(name, NULL); - g_return_val_if_fail(type, NULL); + g_return_val_if_fail(name && strlen(name), NULL); + g_return_val_if_fail(type && strlen(type), NULL); return g_strconcat(type, "/", name, NULL); }