Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Add builtin-gconf key for color profile
  • Loading branch information
spiiroin committed Mar 12, 2013
1 parent 911dd59 commit 64c4d6f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
6 changes: 6 additions & 0 deletions builtin-gconf.c
Expand Up @@ -1164,6 +1164,12 @@ static const setting_t gconf_defaults[] =
.type = "b",
.def = "true",
},
{
// MCE_GCONF_DISPLAY_COLOR_PROFILE_PATH @ modules/filter-brightness-als.h
.key = "/system/osso/dsm/display/color_profile",
.type = "s",
.def = "",
},
{
// MCE_GCONF_DISPLAY_DIM_TIMEOUT_PATH @ modules/display.h
.key = "/system/osso/dsm/display/display_dim_timeout",
Expand Down
4 changes: 4 additions & 0 deletions modules/filter-brightness-als.c
Expand Up @@ -2309,6 +2309,10 @@ static gchar *read_current_color_profile(void)
(void)mce_gconf_get_string(MCE_GCONF_DISPLAY_COLOR_PROFILE_PATH,
&retval);

/* Treat empty string as NULL */
if( retval && !*retval )
g_free(retval), retval = 0;

return retval;
}

Expand Down

0 comments on commit 64c4d6f

Please sign in to comment.