Skip to content

Commit

Permalink
Initial (hack) to get it to build with Mer MCE/DSME.
Browse files Browse the repository at this point in the history
Descision needs to be made whether to use Maemo or Mer MCE/DSME etc as they differ in dbus command names and availability. Adding as a seperate commit for now to easily revert.
  • Loading branch information
android-808 committed Aug 11, 2015
1 parent 7d11313 commit 0c0a848
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions src/launcher/hd-app-mgr.c
Original file line number Diff line number Diff line change
Expand Up @@ -1914,17 +1914,17 @@ hd_app_mgr_dbus_signal_handler (DBusConnection *conn,
MCE_TKLOCK_MODE_SIG))
{
priv->unlocked = _hd_app_mgr_dbus_check_value (msg,
MCE_DEVICE_UNLOCKED);
MCE_TK_UNLOCKED);
}
else if (dbus_message_is_signal (msg,
/* else if (dbus_message_is_signal (msg,
MCE_SIGNAL_IF,
MCE_DEVICE_ORIENTATION_SIG))
{
priv->portrait = _hd_app_mgr_dbus_check_value (msg,
MCE_ORIENTATION_PORTRAIT);
hd_app_mgr_update_portraitness(self);
}
}*/
}
#endif

Expand All @@ -1943,7 +1943,7 @@ hd_app_mgr_mce_activate_accel_if_needed (gboolean update_portraitness)
extern gboolean hd_dbus_tklock_on;
HdAppMgrPrivate *priv = HD_APP_MGR_GET_PRIVATE (the_app_mgr);
DBusConnection *conn = NULL;
#ifdef HAVE_DSME
#ifdef HAVE_DSME_DISABLEDFORNOW
DBusMessage *msg = NULL;
#endif
gboolean activate = !hd_dbus_tklock_on;
Expand All @@ -1968,17 +1968,17 @@ hd_app_mgr_mce_activate_accel_if_needed (gboolean update_portraitness)
{
hd_app_mgr_dbus_add_signal_match (conn, MCE_SIGNAL_IF,
MCE_TKLOCK_MODE_SIG);
hd_app_mgr_dbus_add_signal_match (conn, MCE_SIGNAL_IF,
MCE_DEVICE_ORIENTATION_SIG);
/*hd_app_mgr_dbus_add_signal_match (conn, MCE_SIGNAL_IF,
MCE_DEVICE_ORIENTATION_SIG);*/
}
else
{
hd_app_mgr_dbus_remove_signal_match (conn, MCE_SIGNAL_IF,
MCE_TKLOCK_MODE_SIG);
hd_app_mgr_dbus_remove_signal_match (conn, MCE_SIGNAL_IF,
MCE_DEVICE_ORIENTATION_SIG);
/*hd_app_mgr_dbus_remove_signal_match (conn, MCE_SIGNAL_IF,
MCE_DEVICE_ORIENTATION_SIG);*/
}

#ifdef DISABLED_FOR_NOW_HAHA
msg = dbus_message_new_method_call (
MCE_SERVICE,
MCE_REQUEST_PATH,
Expand Down Expand Up @@ -2020,6 +2020,7 @@ hd_app_mgr_mce_activate_accel_if_needed (gboolean update_portraitness)

g_debug ("%s: %s", __FUNCTION__, activate ? "enabled" : "disabled");
priv->accel_enabled = activate;
#endif
#endif

if (update_portraitness)
Expand Down

0 comments on commit 0c0a848

Please sign in to comment.