Skip to content

Commit

Permalink
Increase the amount of configurable power key dbus actions to six
Browse files Browse the repository at this point in the history
While refactoring the power key handler, it was assumed that two dbus
actions would be enough. Turns out that the assumption was wrong.


Increase the amount of customizable dbus actions from two to six, so
that it is now possible to configure one unique dbus action for each
combination of { short, long, double press } x {from display on, off }.

[mce] Increase the amount of configurable power key dbus actions to six. Fixes NEMO#781
  • Loading branch information
spiiroin committed Feb 5, 2015
1 parent 8f7cb9a commit 9d72d9c
Show file tree
Hide file tree
Showing 4 changed files with 298 additions and 116 deletions.
20 changes: 20 additions & 0 deletions builtin-gconf.c
Expand Up @@ -1552,6 +1552,26 @@ static const setting_t gconf_defaults[] =
.type = "s",
.def = DEFAULT_POWERKEY_DBUS_ACTION2,
},
{
.key = MCE_GCONF_POWERKEY_DBUS_ACTION3,
.type = "s",
.def = DEFAULT_POWERKEY_DBUS_ACTION3,
},
{
.key = MCE_GCONF_POWERKEY_DBUS_ACTION4,
.type = "s",
.def = DEFAULT_POWERKEY_DBUS_ACTION4,
},
{
.key = MCE_GCONF_POWERKEY_DBUS_ACTION5,
.type = "s",
.def = DEFAULT_POWERKEY_DBUS_ACTION5,
},
{
.key = MCE_GCONF_POWERKEY_DBUS_ACTION6,
.type = "s",
.def = DEFAULT_POWERKEY_DBUS_ACTION6,
},
{
.key = MCE_GCONF_MEMNOTIFY_WARNING_USED,
.type = "i",
Expand Down

0 comments on commit 9d72d9c

Please sign in to comment.