summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXiaotian Wu <[email protected]>2023-10-03 19:13:56 +0800
committerXiaotian Wu <[email protected]>2023-10-03 19:13:56 +0800
commit130cfb462bae215d4dc4cbe60aa9eb26c9d6d65b (patch)
treeefb01d95f8d3657905fe467b98ba58f1481ed1da
parent925941aa96d9760beaea555034dc8a5039af8883 (diff)
downloadmate-session-manager-130cfb462bae215d4dc4cbe60aa9eb26c9d6d65b.tar.bz2
mate-session-manager-130cfb462bae215d4dc4cbe60aa9eb26c9d6d65b.tar.xz
x
-rw-r--r--mate-session/gsm-manager.c42
1 files changed, 25 insertions, 17 deletions
diff --git a/mate-session/gsm-manager.c b/mate-session/gsm-manager.c
index e2d2331..07a052e 100644
--- a/mate-session/gsm-manager.c
+++ b/mate-session/gsm-manager.c
@@ -229,6 +229,31 @@ gboolean
gsm_manager_request_reboot (GsmExportedManager *skeleton,
GDBusMethodInvocation *invocation,
GsmManager *manager);
+gboolean
+gsm_manager_request_shutdown (GsmManager *manager,
+ GError **error);
+gboolean
+gsm_manager_setenv (GsmManager *manager,
+ const char *variable,
+ const char *value,
+ GError **error);
+static gboolean
+gsm_manager_shutdown (GsmExportedManager *skeleton,
+ GDBusMethodInvocation *invocation,
+ GsmManager *manager);
+static gboolean
+gsm_manager_uninhibit (GsmExportedManager *skeleton,
+ GDBusMethodInvocation *invocation,
+ guint cookie,
+ GsmManager *manager);
+static gboolean
+gsm_manager_unregister_client (GsmExportedManager *skeleton,
+ GDBusMethodInvocation *invocation,
+ const char *client_id,
+ GsmManager *manager);
+static void
+user_logout (GsmManager *manager,
+ GsmManagerLogoutMode mode);
static gpointer manager_object = NULL;
@@ -2179,23 +2204,6 @@ on_session_connection_closed (GDBusConnection *connection G_GNUC_UNUSED,
remove_clients_for_connection (manager, NULL);
}
-static void
-user_logout (GsmManager *manager,
- GsmManagerLogoutMode mode)
-{
- //GsmManagerPrivate *priv;
-
- //priv = gsm_manager_get_instance_private (manager);
-
- //if (priv->phase >= GSM_MANAGER_PHASE_QUERY_END_SESSION) {
- // priv->logout_mode = mode;
- // end_session_or_show_shell_dialog (manager);
- // return;
- //}
-
- request_logout (manager, mode);
-}
-
gboolean
gsm_manager_logout (GsmManager *manager,
guint logout_mode,