mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-25 00:46:21 +00:00
upstream: Minor improve theme (038f345a4)
This commit is contained in:
@@ -667,25 +667,17 @@ _theme_prep_fgnd(char* setting, GString* lookup_str, gboolean* bold)
|
||||
}
|
||||
}
|
||||
|
||||
char*
|
||||
gchar*
|
||||
theme_get_string(char* str)
|
||||
{
|
||||
gchar* res = g_key_file_get_string(theme, "colours", str, NULL);
|
||||
if (!res) {
|
||||
return strdup(g_hash_table_lookup(defaults, str));
|
||||
return g_strdup(g_hash_table_lookup(defaults, str));
|
||||
} else {
|
||||
return res;
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
theme_free_string(char* str)
|
||||
{
|
||||
if (str) {
|
||||
g_free(str);
|
||||
}
|
||||
}
|
||||
|
||||
int
|
||||
theme_hash_attrs(const char* str)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user