Fix minor code style issue in pgtkfns.c
* src/pgtkfns.c (pgtk_get_defaults_value) (pgtk_set_defaults_value): Fix code style.
This commit is contained in:
parent
87facc9e3d
commit
76874df05f
1 changed files with 3 additions and 9 deletions
|
@ -1920,9 +1920,7 @@ pgtk_get_defaults_value (const char *key)
|
|||
|
||||
GSettings *gs = parse_resource_key (key, skey);
|
||||
if (gs == NULL)
|
||||
{
|
||||
return NULL;
|
||||
}
|
||||
return NULL;
|
||||
|
||||
gchar *str = g_settings_get_string (gs, skey);
|
||||
|
||||
|
@ -1952,13 +1950,9 @@ pgtk_set_defaults_value (const char *key, const char *value)
|
|||
error ("Unknown resource key");
|
||||
|
||||
if (value != NULL)
|
||||
{
|
||||
g_settings_set_string (gs, skey, value);
|
||||
}
|
||||
g_settings_set_string (gs, skey, value);
|
||||
else
|
||||
{
|
||||
g_settings_reset (gs, skey);
|
||||
}
|
||||
g_settings_reset (gs, skey);
|
||||
|
||||
g_object_unref (gs);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue