summaryrefslogtreecommitdiff
path: root/thunar/thunar-dbus-service.c
diff options
context:
space:
mode:
authorBenedikt Meurer <benny@xfce.org>2006-02-26 23:22:39 +0000
committerBenedikt Meurer <benny@xfce.org>2006-02-26 23:22:39 +0000
commit6fa84beaa40c6c61364daba6f53e3ecef48f4ab9 (patch)
treeea7d9e3b9850ae6c97250e2f1bbcc3548f73373a /thunar/thunar-dbus-service.c
parentcfd0320fa91512b908f2c6faa955059b51b92115 (diff)
downloadthunar-6fa84beaa40c6c61364daba6f53e3ecef48f4ab9.tar.gz
2006-02-27 Benedikt Meurer <benny@xfce.org>
* thunar/main.c, thunar/thunar-application.{c,h}, thunar/thunar-dbus-client.{c,h}, thunar/thunar-dbus-service-infos.xml, thunar/thunar-dbus-service.c: Add session management support based on the ExoXsessionClient class. Bug #1415. * po/Thunar.pot, po/*.po: Update translations. (Old svn revision: 20105)
Diffstat (limited to 'thunar/thunar-dbus-service.c')
-rw-r--r--thunar/thunar-dbus-service.c21
1 files changed, 21 insertions, 0 deletions
diff --git a/thunar/thunar-dbus-service.c b/thunar/thunar-dbus-service.c
index 46616d59..a539097d 100644
--- a/thunar/thunar-dbus-service.c
+++ b/thunar/thunar-dbus-service.c
@@ -65,6 +65,9 @@ static gboolean thunar_dbus_service_launch_files (ThunarDBusServi
gchar **filenames,
const gchar *display,
GError **error);
+static gboolean thunar_dbus_service_restore_session (ThunarDBusService *dbus_service,
+ const gchar *session_data,
+ GError **error);
static gboolean thunar_dbus_service_terminate (ThunarDBusService *dbus_service,
GError **error);
@@ -383,6 +386,24 @@ thunar_dbus_service_launch_files (ThunarDBusService *dbus_service,
static gboolean
+thunar_dbus_service_restore_session (ThunarDBusService *dbus_service,
+ const gchar *session_data,
+ GError **error)
+{
+ ThunarApplication *application;
+ gboolean result;
+
+ /* tell the application to restore the session */
+ application = thunar_application_get ();
+ result = thunar_application_restore_session (application, session_data, error);
+ g_object_unref (G_OBJECT (application));
+
+ return result;
+}
+
+
+
+static gboolean
thunar_dbus_service_terminate (ThunarDBusService *dbus_service,
GError **error)
{