1. 12 Dec, 2014 1 commit
  2. 23 Jan, 2014 1 commit
  3. 24 Jan, 2013 1 commit
  4. 24 Mar, 2009 5 commits
    • Vincent Untz's avatar
      Create a END_SESSION_LAST phase during which we handle the clients which · 987bb630
      Vincent Untz authored
      2009-03-25  Vincent Untz  <vuntz@gnome.org>
      
      	Create a END_SESSION_LAST phase during which we handle the clients
      	which wanted to be ended last.
      	For this, we need to keep a list of clients in that case.
      
      	* gnome-session/gsm-client.h: add a new
      	GSM_CLIENT_END_SESSION_FLAG_LAST flag, to tell the client it's running
      	last.
      	* gnome-session/gsm-manager.[ch]: (phase_num_to_name): handle new phase
      	(end_phase): empty the list of clients that wants to be ended last if
      	it's not a relevant phase. Also handle new phase.
      	(on_phase_timeout): handle new phase
      	(_client_end_session_last): new, to tell a client that the session is
      	being ended. Works like _client_end_session()
      	(do_phase_end_session_last): prepare the right flags to be used for
      	each clients via _client_end_session_last(). Note that we don't use all
      	clients in the session here, but the list of clients that wanted to be
      	ended last.
      	We use a 10 seconds timeout for that phase to not block on clients that
      	don't reply. Also, if there's no client in the session, then save the
      	session if auto-save is enabled.
      	(start_phase): empty the list of clients that wants to be ended last if
      	it's not a relevant phase. Also handle new phase.
      	(maybe_save_session): make this call valid in END_SESSION_LAST instead
      	of END_SESSION
      	(on_client_end_session_response): save the client in a specific list if
      	it wants to be ended last.
      	* gnome-session/gsm-xsmp-client.c: (xsmp_save_yourself_phase2):
      	uncomment
      	(xsmp_end_session): if the client is running last, then it means it's
      	phase2 of SaveYourself, so use xsmp_save_yourself_phase2()
      
      svn path=/trunk/; revision=5363
      987bb630
    • Vincent Untz's avatar
      s/gdm_client_end_session_response/gsm_client_end_session_response/g · 9f0edb61
      Vincent Untz authored
      2009-03-25  Vincent Untz  <vuntz@gnome.org>
      
      	s/gdm_client_end_session_response/gsm_client_end_session_response/g
      
      	* gnome-session/gsm-client.c: (gsm_client_end_session_response):
      	* gnome-session/gsm-client.h:
      	* gnome-session/gsm-dbus-client.c: (handle_end_session_response):
      	* gnome-session/gsm-xsmp-client.c:
      	(save_yourself_phase2_request_callback),
      	(interact_request_callback), (interact_done_callback),
      	(save_yourself_done_callback):
      
      svn path=/trunk/; revision=5362
      9f0edb61
    • Vincent Untz's avatar
      Allow clients to specify that they want to be ended last (this mainly · 4f6fc3f9
      Vincent Untz authored
      2009-03-25  Vincent Untz  <vuntz@gnome.org>
      
      	Allow clients to specify that they want to be ended last (this mainly
      	matches the Phase2 of SaveYourself in XSMP). The server doesn't use
      	this information yet.
      
      	* gnome-session/gsm-client.[ch]: (gsm_client_class_init): add new
      	do_last argument to END_SESSION_RESPONSE signal
      	(gdm_client_end_session_response): add do_last and use it
      	* gnome-session/gsm-marshal.list: updated for new signature
      	* gnome-session/gsm-manager.c: (on_client_end_session_response): add
      	do_last parameter, unused for now
      	* gnome-session/gsm-dbus-client.c: (handle_end_session_response): pass
      	FALSE as do_last
      	* gnome-session/gsm-xsmp-client.c:
      	(save_yourself_phase2_request_callback): pass TRUE as do_last since
      	that's what the phase2 is
      	(interact_request_callback): pass FALSE as do_last
      	(interact_done_callback): pass FALSE as do_last
      	(save_yourself_done_callback): pass FALSE as do_last
      
      svn path=/trunk/; revision=5361
      4f6fc3f9
    • Vincent Untz's avatar
      Allow an interacting app to cancel the logout. · 7656d806
      Vincent Untz authored
      2009-03-25  Vincent Untz  <vuntz@gnome.org>
      
      	Allow an interacting app to cancel the logout.
      
      	* gnome-session/gsm-client.[ch]: (gsm_client_class_init): add new
      	cancel argument to END_SESSION_RESPONSE signal
      	(gdm_client_end_session_response): add cancel and use it
      	* gnome-session/gsm-marshal.list: updated for new signature
      	* gnome-session/gsm-manager.c: (on_client_end_session_response): add
      	cancel paramter, and call cancel_end_session if cancel is TRUE
      	* gnome-session/gsm-dbus-client.c: (handle_end_session_response): pass
      	FALSE as cancel
      	* gnome-session/gsm-xsmp-client.c:
      	(save_yourself_phase2_request_callback): pass FALSE as cancel
      	(interact_request_callback): pass FALSE as cancel
      	(interact_done_callback): pass the value returned by the client as
      	cancel
      	(save_yourself_done_callback): pass FALSE as cancel
      
      svn path=/trunk/; revision=5359
      7656d806
    • Vincent Untz's avatar
      Make session saving works a bit better by telling client to not just save · 27a02075
      Vincent Untz authored
      2009-03-25  Vincent Untz  <vuntz@gnome.org>
      
      	Make session saving works a bit better by telling client to not just
      	save the global state, but also the local state when relevant.
      
      	* gnome-session/gsm-client.h: add new GSM_CLIENT_END_SESSION_FLAG_SAVE
      	* gnome-session/gsm-manager.c: (do_phase_end_session): if the session
      	should be autosaved, then pass the GSM_CLIENT_END_SESSION_FLAG_SAVE
      	flag
      	(do_phase_query_end_session): add a comment explaining why we don't use
      	the GSM_CLIENT_END_SESSION_FLAG_SAVE flag
      	* gnome-session/gsm-xsmp-client.c: (xsmp_query_end_session),
      	(xsmp_end_session): depending on the presence of the
      	GSM_CLIENT_END_SESSION_FLAG_SAVE flag, use SmSaveBoth or SmSaveGlobal
      
      svn path=/trunk/; revision=5357
      27a02075
  5. 24 Feb, 2009 1 commit
  6. 16 Aug, 2008 1 commit
    • Kjartan Maraas's avatar
      Fix some warnings from sparse and other tools. Closes bug #521413 · 27270896
      Kjartan Maraas authored
      2008-08-16  Kjartan Maraas  <kmaraas@gnome.org>
      
      	* capplet/gsm-app-dialog.c:
      	* egg/eggdesktopfile.h:
      	* egg/eggsmclient-libgnomeui.c: (egg_sm_client_module_info_get):
      	* egg/eggsmclient-xsmp.c:
      	* gnome-session/gsm-autostart-app.c:
      	* gnome-session/gsm-client.c:
      	* gnome-session/gsm-client.h:
      	* gnome-session/gsm-dbus-client.c:
      	* gnome-session/gsm-inhibit-dialog.c: (add_inhibitor):
      	* gnome-session/gsm-inhibit-dialog.h:
      	* gnome-session/gsm-inhibitor.c:
      	* gnome-session/gsm-inhibitor.h:
      	* gnome-session/gsm-manager.c:
      	* gnome-session/gsm-store.c:
      	* gnome-session/gsm-util.c:
      	* gnome-session/gsm-xsmp-client.c:
      	* gnome-session/gsm-xsmp-server.c:
      	* gnome-session/test-inhibit.c:
      	* tools/gnome-session-save.c:
      	Fix some warnings from sparse and other tools. Closes
      	bug #521413
      
      svn path=/trunk/; revision=4964
      27270896
  7. 13 Aug, 2008 1 commit
    • William Jon McCann's avatar
      Make QES,ES,CES return errors. Check to make sure that connection is valid · a462d85f
      William Jon McCann authored
      2008-08-13  William Jon McCann  <jmccann@redhat.com>
      
      	* gnome-session/gsm-client.c (gsm_client_error_quark),
      	(gsm_client_error_get_type), (gsm_client_cancel_end_session),
      	(gsm_client_query_end_session), (gsm_client_end_session):
      	* gnome-session/gsm-client.h:
      	* gnome-session/gsm-dbus-client.c (dbus_client_query_end_session),
      	(dbus_client_end_session), (dbus_client_cancel_end_session):
      	* gnome-session/gsm-manager.c (_client_end_session),
      	(_client_query_end_session), (_client_cancel_end_session):
      	* gnome-session/gsm-xsmp-client.c (client_iochannel_watch),
      	(_client_protocol_timeout), (do_save_yourself),
      	(xsmp_cancel_end_session), (xsmp_query_end_session),
      	(xsmp_end_session), (gsm_xsmp_client_disconnect),
      	(gsm_xsmp_client_finalize), (interact_request_callback),
      	(close_connection_callback):
      	Make QES,ES,CES return errors.  Check to make sure that
      	connection is valid before handling same.  Set
      	status and disconnect when disconnected.
      
      
      svn path=/trunk/; revision=4946
      a462d85f
  8. 30 Jul, 2008 1 commit
    • William Jon McCann's avatar
      Add GetUnixProcessId to Client interface. · 014fb8e2
      William Jon McCann authored
      2008-07-29  William Jon McCann  <jmccann@redhat.com>
      
      	* gnome-session/gsm-client.c (gsm_client_get_unix_process_id):
      	* gnome-session/gsm-client.h:
      	* gnome-session/gsm-dbus-client.c (get_caller_info),
      	(gsm_dbus_client_set_bus_name), (dbus_client_get_unix_process_id),
      	(gsm_dbus_client_class_init):
      	* gnome-session/gsm-xsmp-client.c (_parse_value_as_uint),
      	(xsmp_get_unix_process_id), (gsm_xsmp_client_class_init):
      	* gnome-session/org.gnome.SessionManager.Client.xml:
      	Add GetUnixProcessId to Client interface.
      
      
      svn path=/branches/dbus_based/; revision=4891
      014fb8e2
  9. 29 Jul, 2008 2 commits
    • William Jon McCann's avatar
      Make status uint. Add some more exported methods to Client. · 6871489b
      William Jon McCann authored
      2008-07-29  William Jon McCann  <jmccann@redhat.com>
      
      	* gnome-session/gsm-client.c (gsm_client_set_status),
      	(gsm_client_set_property), (gsm_client_get_property),
      	(gsm_client_class_init), (gsm_client_peek_status),
      	(gsm_client_get_status):
      	* gnome-session/gsm-client.h:
      	* gnome-session/gsm-client.xml:
      	* gnome-session/gsm-inhibitor.xml:
      	Make status uint.  Add some more exported methods to Client.
      
      
      svn path=/branches/dbus_based/; revision=4875
      6871489b
    • William Jon McCann's avatar
      Add client introspection info. Fix the inhibitor methods. · 85d38c3d
      William Jon McCann authored
      2008-07-29  William Jon McCann  <jmccann@redhat.com>
      
      	* gnome-session/gsm-client.c (gsm_client_peek_id),
      	(gsm_client_peek_app_id), (gsm_client_peek_startup_id),
      	(gsm_client_peek_restart_style_hint), (gsm_client_get_startup_id),
      	(gsm_client_get_app_id), (gsm_client_get_restart_style_hint),
      	(gsm_client_get_app_name):
      	* gnome-session/gsm-client.h:
      	* gnome-session/gsm-client.xml:
      	* gnome-session/gsm-dbus-client.c (dbus_client_stop),
      	(dbus_client_query_end_session), (dbus_client_end_session):
      	* gnome-session/gsm-inhibit-dialog.c (add_inhibitor):
      	* gnome-session/gsm-inhibitor.c (gsm_inhibitor_peek_bus_name),
      	(gsm_inhibitor_get_app_id), (gsm_inhibitor_get_client_id),
      	(gsm_inhibitor_get_reason), (gsm_inhibitor_get_flags),
      	(gsm_inhibitor_get_toplevel_xid), (gsm_inhibitor_peek_id),
      	(gsm_inhibitor_peek_app_id), (gsm_inhibitor_peek_client_id),
      	(gsm_inhibitor_peek_reason), (gsm_inhibitor_peek_flags),
      	(gsm_inhibitor_peek_toplevel_xid), (gsm_inhibitor_peek_cookie):
      	* gnome-session/gsm-inhibitor.h:
      	* gnome-session/gsm-manager.c (_debug_client), (_debug_inhibitor),
      	(_find_by_cookie), (_find_by_startup_id), (_client_end_session),
      	(_client_query_end_session), (inhibitor_has_flag),
      	(inhibitor_is_jit), (on_query_end_session_timeout),
      	(disconnect_client), (inhibitor_has_bus_name),
      	(_client_has_startup_id), (inhibitor_has_client_id),
      	(on_client_end_session_response), (gsm_manager_register_client),
      	(gsm_manager_inhibit), (gsm_manager_uninhibit):
      	* gnome-session/gsm-xsmp-client.c (set_description):
      	* gnome-session/gsm-xsmp-server.c (accept_ice_connection):
      	Add client introspection info.  Fix the inhibitor methods.
      
      
      svn path=/branches/dbus_based/; revision=4874
      85d38c3d
  10. 18 Jul, 2008 2 commits
    • William Jon McCann's avatar
      Add support for legacy restart style hints from clients. · 38db5e91
      William Jon McCann authored
      2008-07-18  William Jon McCann  <jmccann@redhat.com>
      
      	* gnome-session/gsm-client.c (gsm_client_get_restart_style_hint):
      	* gnome-session/gsm-client.h:
      	* gnome-session/gsm-dbus-client.c
      	(dbus_client_get_restart_style_hint), (gsm_dbus_client_class_init):
      	* gnome-session/gsm-manager.c (disconnect_client):
      	* gnome-session/gsm-xsmp-client.c (xsmp_get_restart_style_hint),
      	(gsm_xsmp_client_class_init):
      	Add support for legacy restart style hints from clients.
      
      
      svn path=/branches/dbus_based/; revision=4814
      38db5e91
    • William Jon McCann's avatar
      Add a forceful shutdown path. Make shutdown path use same state machine as · 4b1c7cca
      William Jon McCann authored
      2008-07-18  William Jon McCann  <jmccann@redhat.com>
      
      	* gnome-session/gsm-client.h:
      	* gnome-session/gsm-manager.c (phase_num_to_name), (end_phase),
      	(on_phase_timeout), (do_phase_startup), (_client_end_session),
      	(do_phase_end_session), (_client_query_end_session),
      	(inhibitor_has_flag), (gsm_manager_is_logout_inhibited),
      	(_client_cancel_end_session), (inhibitor_is_jit),
      	(cancel_end_session), (manager_switch_user), (do_attempt_reboot),
      	(do_attempt_shutdown), (manager_attempt_reboot),
      	(manager_attempt_shutdown), (manager_attempt_hibernate),
      	(manager_attempt_suspend), (do_dialog_action),
      	(inhibit_dialog_response), (query_end_session_complete),
      	(generate_cookie), (_generate_unique_cookie),
      	(on_query_end_session_timeout), (do_phase_query_end_session),
      	(start_phase), (gsm_manager_start), (find_app_for_app_id),
      	(disconnect_client), (_disconnect_dbus_client),
      	(remove_clients_for_connection), (inhibitor_has_bus_name),
      	(remove_inhibitors_for_connection), (_app_has_startup_id),
      	(on_xsmp_client_register_request),
      	(on_client_end_session_response), (gsm_manager_setenv),
      	(gsm_manager_initialization_error), (request_logout),
      	(logout_dialog_response), (show_shutdown_dialog),
      	(show_logout_dialog), (user_logout), (gsm_manager_logout),
      	(gsm_manager_register_client):
      	* gnome-session/gsm-manager.h:
      	* gnome-session/gsm-xsmp-client.c (do_save_yourself),
      	(xsmp_query_end_session), (xsmp_end_session),
      	(save_yourself_request_callback), (save_yourself_done_callback):
      	Add a forceful shutdown path.  Make shutdown path use
      	same state machine as phases.
      
      
      svn path=/branches/dbus_based/; revision=4813
      4b1c7cca
  11. 17 Jul, 2008 2 commits
    • William Jon McCann's avatar
      Send cancellation to all clients. Cancel JIT inhibitors. · f340be47
      William Jon McCann authored
      2008-07-17  William Jon McCann  <jmccann@redhat.com>
      
      	* gnome-session/gsm-client.c (gsm_client_cancel_end_session):
      	* gnome-session/gsm-client.h:
      	* gnome-session/gsm-dbus-client.c (dbus_client_cancel_end_session),
      	(gsm_dbus_client_class_init):
      	* gnome-session/gsm-dbus-client.h:
      	* gnome-session/gsm-dbus-client.xml:
      	* gnome-session/gsm-manager.c (_cancel_shutdown_client),
      	(inhibitor_is_jit), (cancel_end_session),
      	(inhibit_dialog_response):
      	* gnome-session/gsm-xsmp-client.c (xsmp_cancel_end_session),
      	(gsm_xsmp_client_class_init), (interact_request_callback):
      	Send cancellation to all clients.  Cancel JIT inhibitors.
      
      
      svn path=/branches/dbus_based/; revision=4811
      f340be47
    • William Jon McCann's avatar
      Try to get something like an app-id for XSMP clients to display info in · 3d923fb5
      William Jon McCann authored
      2008-07-17  William Jon McCann  <jmccann@redhat.com>
      
      	* gnome-session/gsm-client.c (gsm_client_get_app_name):
      	* gnome-session/gsm-client.h:
      	* gnome-session/gsm-dbus-client.c (dbus_client_get_app_name),
      	(gsm_dbus_client_class_init):
      	* gnome-session/gsm-manager.c (on_client_end_session_response):
      	* gnome-session/gsm-xsmp-client.c (xsmp_get_app_name),
      	(gsm_xsmp_client_class_init), (interact_request_callback):
      	Try to get something like an app-id for XSMP clients to
      	display info in inhibit dialog.
      
      
      svn path=/branches/dbus_based/; revision=4808
      3d923fb5
  12. 16 Jul, 2008 1 commit
    • William Jon McCann's avatar
      Rename client-id to startup-id to distinguish from Client's ID. Start · 46d5a808
      William Jon McCann authored
      2008-07-16  William Jon McCann  <jmccann@redhat.com>
      
      	* gnome-session/Makefile.am:
      	* gnome-session/gsm-app.c (gsm_app_set_startup_id),
      	(gsm_app_set_property), (gsm_app_get_property), (gsm_app_dispose),
      	(gsm_app_class_init), (gsm_app_get_startup_id):
      	* gnome-session/gsm-app.h:
      	* gnome-session/gsm-autostart-app.c (load_desktop_file),
      	(autostart_app_start_spawn), (autostart_app_start_activate):
      	* gnome-session/gsm-client.c (gsm_client_finalize),
      	(gsm_client_set_startup_id), (gsm_client_set_property),
      	(gsm_client_get_property), (default_stop), (gsm_client_class_init),
      	(gsm_client_get_startup_id), (gsm_client_stop),
      	(gdm_client_end_session_response):
      	* gnome-session/gsm-client.h:
      	* gnome-session/gsm-client.xml:
      	* gnome-session/gsm-dbus-client.c (gsm_dbus_client_error_quark),
      	(gsm_dbus_client_error_get_type), (gsm_dbus_client_class_init),
      	(gsm_dbus_client_end_session_response):
      	* gnome-session/gsm-dbus-client.h:
      	* gnome-session/gsm-dbus-client.xml:
      	* gnome-session/gsm-inhibitor.c (gsm_inhibitor_set_client_id),
      	(gsm_inhibitor_get_client_id), (gsm_inhibitor_set_property),
      	(gsm_inhibitor_get_property), (gsm_inhibitor_finalize),
      	(gsm_inhibitor_class_init), (gsm_inhibitor_new_for_client):
      	* gnome-session/gsm-inhibitor.h:
      	* gnome-session/gsm-manager.c (_find_by_startup_id),
      	(app_condition_changed), (app_registered), (phase_timeout),
      	(start_phase), (inhibitor_has_bus_name), (_app_has_startup_id),
      	(find_app_for_startup_id), (register_client_for_name),
      	(_client_has_startup_id), (on_xsmp_client_register_request),
      	(_client_query_end_session), (query_end_session_complete),
      	(inhibitor_has_client_id), (generate_cookie),
      	(_generate_unique_cookie), (on_client_end_session_response),
      	(on_query_end_session_timeout), (query_end_session),
      	(request_logout), (user_logout), (gsm_manager_logout),
      	(gsm_manager_register_client), (gsm_manager_unregister_client):
      	* gnome-session/gsm-manager.xml:
      	* gnome-session/gsm-marshal.list:
      	* gnome-session/gsm-xsmp-client.c (set_description):
      	* gnome-session/test-client-dbus.c (register_client):
      	* gnome-session/util.c (gsm_util_generate_startup_id):
      	* gnome-session/util.h:
      	Rename client-id to startup-id to distinguish from
      	Client's ID.  Start adding a new shutdown path that
      	allows for more compatibility with xsmp.
      
      
      svn path=/branches/dbus_based/; revision=4805
      46d5a808
  13. 15 Jul, 2008 3 commits
    • William Jon McCann's avatar
      Add QueryEndSession and EndSession methods and signals. · eea44ea8
      William Jon McCann authored
      2008-07-15  William Jon McCann  <jmccann@redhat.com>
      
      	* gnome-session/gsm-client.c (gsm_client_query_end_session),
      	(gsm_client_end_session):
      	* gnome-session/gsm-client.h:
      	* gnome-session/gsm-client.xml:
      	* gnome-session/gsm-dbus-client.c (dbus_client_query_end_session),
      	(dbus_client_end_session), (gsm_dbus_client_class_init):
      	* gnome-session/gsm-manager.c (_shutdown_client):
      	* gnome-session/gsm-xsmp-client.c (xsmp_stop),
      	(xsmp_query_end_session), (xsmp_end_session),
      	(gsm_xsmp_client_class_init):
      	Add QueryEndSession and EndSession methods and signals.
      
      
      svn path=/branches/dbus_based/; revision=4804
      eea44ea8
    • William Jon McCann's avatar
      By default emit stop signal from client. · 2fa3b683
      William Jon McCann authored
      2008-07-15  William Jon McCann  <jmccann@redhat.com>
      
      	* gnome-session/gsm-app.c (gsm_app_class_init), (gsm_app_get_id),
      	(gsm_app_is_disabled), (gsm_app_is_running),
      	(gsm_app_get_autorestart), (gsm_app_provides), (gsm_app_start),
      	(gsm_app_restart), (gsm_app_stop):
      	* gnome-session/gsm-app.h:
      	* gnome-session/gsm-autostart-app.c (gsm_autostart_app_class_init):
      	* gnome-session/gsm-client.c (default_stop),
      	(gsm_client_class_init), (gsm_client_notify_session_over),
      	(gsm_client_stop):
      	* gnome-session/gsm-client.h:
      	* gnome-session/gsm-resumed-app.c (gsm_resumed_app_class_init):
      	* gnome-session/gsm-resumed-app.h:
      	* gnome-session/gsm-xsmp-client.c (gsm_xsmp_client_class_init):
      	By default emit stop signal from client.
      
      
      svn path=/branches/dbus_based/; revision=4800
      2fa3b683
    • William Jon McCann's avatar
      Register each client object with the bus. · fe49acb8
      William Jon McCann authored
      2008-07-15  William Jon McCann  <jmccann@redhat.com>
      
      	* gnome-session/Makefile.am:
      	* gnome-session/gsm-client.c (register_client),
      	(gsm_client_constructor), (gsm_client_class_init):
      	* gnome-session/gsm-client.xml:
      	Register each client object with the bus.
      
      
      svn path=/branches/dbus_based/; revision=4799
      fe49acb8
  14. 18 Jun, 2008 2 commits
    • William Jon McCann's avatar
      Add dbus method client support. Add test client. Fix up restart handling. · ad2bb9d1
      William Jon McCann authored
      2008-06-18  William Jon McCann  <jmccann@redhat.com>
      
      	* gnome-session/Makefile.am:
      	* gnome-session/gsm-app.c (gsm_app_class_init),
      	(gsm_app_get_autorestart), (gsm_app_restart):
      	* gnome-session/gsm-app.h:
      	* gnome-session/gsm-autostart-app.c (gsm_autostart_app_dispose),
      	(gsm_autostart_app_stop), (gsm_autostart_app_start),
      	(gsm_autostart_app_restart), (gsm_autostart_app_get_autorestart),
      	(gsm_autostart_app_class_init):
      	* gnome-session/gsm-client.c (gsm_client_class_init):
      	* gnome-session/gsm-client.h:
      	* gnome-session/gsm-dbus-client.c (gsm_dbus_client_set_bus_name),
      	(gsm_dbus_client_get_bus_name), (gsm_dbus_client_set_property),
      	(gsm_dbus_client_get_property), (gsm_dbus_client_class_init):
      	* gnome-session/gsm-dbus-client.h:
      	* gnome-session/gsm-manager.c (gsm_manager_error_get_type),
      	(find_app_for_app_id), (disconnect_client),
      	(_disconnect_dbus_client), (remove_clients_for_connection),
      	(on_client_disconnected), (on_xsmp_client_register_request),
      	(gsm_manager_register_client), (gsm_manager_unregister_client):
      	* gnome-session/gsm-manager.h:
      	* gnome-session/gsm-manager.xml:
      	* gnome-session/gsm-method-client.c (gsm_method_client_class_init):
      	* gnome-session/gsm-resumed-app.c (app_exited),
      	(gsm_resumed_app_start), (gsm_resumed_app_restart),
      	(gsm_resumed_app_dispose), (gsm_resumed_app_class_init):
      	* gnome-session/gsm-service-client.c
      	(gsm_service_client_class_init):
      	* gnome-session/gsm-xsmp-client.c (gsm_xsmp_client_class_init),
      	(register_client_callback):
      	* gnome-session/test-client-method.c (session_manager_connect),
      	(register_client), (session_manager_disconnect),
      	(unregister_client), (main):
      	Add dbus method client support.  Add test client.  Fix up
      	restart handling.
      
      
      svn path=/branches/dbus_based/; revision=4760
      ad2bb9d1
    • William Jon McCann's avatar
      Update copyright headers. · 1ef06768
      William Jon McCann authored
      2008-06-18  William Jon McCann  <jmccann@redhat.com>
      
      	* gnome-session/gsm-app.c:
      	* gnome-session/gsm-app.h:
      	* gnome-session/gsm-autostart-app.c:
      	* gnome-session/gsm-autostart-app.h:
      	* gnome-session/gsm-client.c:
      	* gnome-session/gsm-client.h:
      	* gnome-session/gsm-logout-dialog.c:
      	* gnome-session/gsm-manager.c:
      	* gnome-session/gsm-resumed-app.c:
      	* gnome-session/gsm-resumed-app.h:
      	* gnome-session/gsm-xsmp-client.c:
      	* gnome-session/gsm-xsmp-server.c:
      	* gnome-session/main.c:
      	Update copyright headers.
      
      
      svn path=/branches/dbus_based/; revision=4759
      1ef06768
  15. 17 Jun, 2008 1 commit
    • William Jon McCann's avatar
      Stub out some dbus based client classes. Make the GsmClient class more · 44842bd7
      William Jon McCann authored
      2008-06-17  William Jon McCann  <jmccann@redhat.com>
      
      	* gnome-session/Makefile.am:
      	* gnome-session/gsm-app.c (gsm_app_class_init), (gsm_app_get_id):
      	* gnome-session/gsm-app.h:
      	* gnome-session/gsm-autostart-app.c
      	(gsm_autostart_app_set_desktop_file), (gsm_autostart_app_dispose),
      	(is_disabled), (app_exited), (gsm_autostart_app_get_id),
      	(gsm_autostart_app_constructor), (gsm_autostart_app_class_init):
      	* gnome-session/gsm-client-store.c (gsm_client_store_get_locked):
      	* gnome-session/gsm-client-store.h:
      	* gnome-session/gsm-client.c (gsm_client_finalize),
      	(gsm_client_set_app_id), (gsm_client_set_property),
      	(gsm_client_get_property), (gsm_client_class_init),
      	(gsm_client_get_app_id), (gsm_client_notify_session_over),
      	(gsm_client_restart), (gsm_client_stop), (gsm_client_disconnected):
      	* gnome-session/gsm-client.h:
      	* gnome-session/gsm-dbus-client.c (gsm_dbus_client_constructor),
      	(gsm_dbus_client_init), (gsm_dbus_client_set_property),
      	(gsm_dbus_client_get_property), (gsm_dbus_client_finalize),
      	(gsm_dbus_client_class_init):
      	* gnome-session/gsm-dbus-client.h:
      	* gnome-session/gsm-manager.c (gsm_manager_error_get_type),
      	(app_condition_changed), (phase_timeout), (_start_app),
      	(find_app_for_client_id), (find_app_for_app_id),
      	(on_xsmp_client_register_request), (on_store_client_added),
      	(gsm_manager_class_init), (_shutdown_client), (get_caller_info),
      	(gsm_manager_register_client), (gsm_manager_unregister_client),
      	(gsm_manager_inhibit), (gsm_manager_uninhibit):
      	* gnome-session/gsm-manager.h:
      	* gnome-session/gsm-manager.xml:
      	* gnome-session/gsm-method-client.c
      	(gsm_method_client_constructor), (gsm_method_client_init),
      	(gsm_method_client_set_property), (gsm_method_client_get_property),
      	(gsm_method_client_finalize), (gsm_method_client_stop),
      	(gsm_method_client_restart), (gsm_method_client_class_init),
      	(gsm_method_client_new):
      	* gnome-session/gsm-method-client.h:
      	* gnome-session/gsm-resumed-app.c (gsm_resumed_app_get_id),
      	(gsm_resumed_app_class_init):
      	* gnome-session/gsm-service-client.c
      	(gsm_service_client_constructor), (gsm_service_client_init),
      	(gsm_service_client_set_property),
      	(gsm_service_client_get_property), (gsm_service_client_finalize),
      	(gsm_service_client_stop), (gsm_service_client_restart),
      	(gsm_service_client_class_init), (gsm_service_client_new):
      	* gnome-session/gsm-service-client.h:
      	* gnome-session/gsm-xsmp-client.c (xsmp_restart), (xsmp_stop),
      	(_boolean_handled_accumulator), (gsm_xsmp_client_class_init),
      	(register_client_callback), (save_yourself_request_callback),
      	(save_yourself_phase2_request_callback),
      	(interact_request_callback), (interact_done_callback),
      	(save_yourself_done_callback), (gsm_xsmp_client_register_request),
      	(gsm_xsmp_client_save_state):
      	* gnome-session/gsm-xsmp-client.h:
      	Stub out some dbus based client classes.  Make the GsmClient
      	class more generic.
      
      
      svn path=/branches/dbus_based/; revision=4758
      44842bd7
  16. 12 Jun, 2008 1 commit
    • William Jon McCann's avatar
      Give the code another whacking. · e5d826af
      William Jon McCann authored
      2008-06-12  William Jon McCann  <jmccann@redhat.com>
      
      	* gnome-session/gsm-client-store.c (gsm_client_store_size),
      	(gsm_client_store_lookup), (_has_client_id),
      	(gsm_client_store_add), (gsm_client_store_set_locked),
      	(gsm_client_store_set_property), (gsm_client_store_get_property),
      	(gsm_client_store_class_init):
      	* gnome-session/gsm-client-store.h:
      	* gnome-session/gsm-client.c (gsm_client_set_status),
      	(gsm_client_set_client_id), (gsm_client_set_property),
      	(gsm_client_get_property), (_boolean_handled_accumulator),
      	(gsm_client_class_init), (gsm_client_get_client_id),
      	(gsm_client_stop), (gsm_client_manage_request),
      	(gsm_client_logout_request):
      	* gnome-session/gsm-client.h:
      	* gnome-session/gsm-manager.c (_find_by_client_id),
      	(app_condition_changed), (on_store_client_added),
      	(gsm_manager_set_client_store), (_stop_client), (manager_shutdown),
      	(_shutdown_client), (initiate_shutdown):
      	* gnome-session/gsm-marshal.list:
      	* gnome-session/gsm-xsmp-client.c (client_iochannel_watch),
      	(client_protocol_timeout), (find_property), (set_description),
      	(setup_connection), (gsm_xsmp_client_constructor),
      	(gsm_xsmp_client_init), (delete_property), (debug_print_property),
      	(set_properties_callback), (delete_properties_callback),
      	(get_properties_callback), (prop_to_command),
      	(xsmp_get_restart_command), (xsmp_get_discard_command),
      	(xsmp_get_autorestart), (xsmp_restart), (do_save_yourself),
      	(xsmp_save_yourself), (xsmp_save_yourself_phase2), (xsmp_interact),
      	(xsmp_shutdown_cancelled), (xsmp_stop),
      	(gsm_client_set_ice_connection), (gsm_xsmp_client_set_property),
      	(gsm_xsmp_client_get_property), (gsm_xsmp_client_finalize),
      	(gsm_xsmp_client_class_init), (gsm_xsmp_client_new),
      	(register_client_callback), (save_yourself_request_callback),
      	(save_yourself_phase2_request_callback),
      	(interact_request_callback), (interact_done_callback),
      	(save_yourself_done_callback), (close_connection_callback),
      	(gsm_xsmp_client_connect):
      	* gnome-session/gsm-xsmp-client.h:
      	* gnome-session/gsm-xsmp-server.c (accept_ice_connection):
      	Give the code another whacking.
      
      
      svn path=/branches/dbus_based/; revision=4731
      e5d826af
  17. 11 Jun, 2008 1 commit
    • William Jon McCann's avatar
      First crack at new new gnome-session based around D-Bus. XSMP still · 75df2148
      William Jon McCann authored
      2008-06-11  William Jon McCann  <jmccann@redhat.com>
      
      	* gnome-session/Makefile.am:
      	* gnome-session/app-autostart.c:
      	* gnome-session/app-autostart.h:
      	* gnome-session/app-resumed.c:
      	* gnome-session/app-resumed.h:
      	* gnome-session/app.c:
      	* gnome-session/app.h:
      	* gnome-session/client-xsmp.c:
      	* gnome-session/client-xsmp.h:
      	* gnome-session/client.c:
      	* gnome-session/client.h:
      	* gnome-session/dbus.c:
      	* gnome-session/dbus.h:
      	* gnome-session/gconf.c (gsm_gconf_check):
      	* gnome-session/gsm-app.c (set_property), (get_property),
      	(dispose), (get_basename), (gsm_app_get_phase),
      	(gsm_app_is_disabled), (gsm_app_provides), (app_exited), (launch):
      	* gnome-session/gsm-app.h:
      	* gnome-session/gsm-autostart-app.c (gsm_autostart_app_init),
      	(gsm_autostart_app_class_init), (gsm_autostart_app_dispose),
      	(gsm_autostart_app_new), (unless_exists_condition_cb),
      	(if_exists_condition_cb), (gconf_condition_cb), (is_disabled):
      	* gnome-session/gsm-autostart-app.h:
      	* gnome-session/gsm-client-store.c (gsm_client_store_error_quark),
      	(gsm_client_store_clear), (remove_client),
      	(gsm_client_store_remove), (gsm_client_store_foreach),
      	(gsm_client_store_find), (gsm_client_store_foreach_remove),
      	(gsm_client_store_add), (gsm_client_store_class_init),
      	(client_unref), (gsm_client_store_init),
      	(gsm_client_store_finalize), (gsm_client_store_new):
      	* gnome-session/gsm-client-store.h:
      	* gnome-session/gsm-client.c (get_next_client_serial),
      	(gsm_client_constructor), (gsm_client_init), (gsm_client_finalize),
      	(gsm_client_class_init), (gsm_client_get_id),
      	(gsm_client_register_client), (gsm_client_request_logout):
      	* gnome-session/gsm-client.h:
      	* gnome-session/gsm-manager.c (gsm_manager_error_quark),
      	(app_condition_changed), (end_phase), (app_registered),
      	(phase_timeout), (start_phase), (gsm_manager_start),
      	(remove_client_for_connection), (remove_clients_for_connection),
      	(bus_name_owner_changed), (register_manager),
      	(gsm_manager_set_failsafe), (gsm_manager_set_client_store),
      	(gsm_manager_set_property), (gsm_manager_get_property),
      	(append_app), (append_default_apps), (append_autostart_apps),
      	(append_legacy_session_apps), (append_saved_session_apps),
      	(append_required_apps), (load_apps), (gsm_manager_constructor),
      	(gsm_manager_class_init), (gsm_manager_init),
      	(gsm_manager_finalize), (gsm_manager_new), (gsm_manager_setenv),
      	(gsm_manager_initialization_error), (manager_shutdown),
      	(initiate_shutdown), (logout_dialog_response),
      	(gsm_manager_initiate_shutdown), (gsm_manager_shutdown),
      	(gsm_manager_logout), (manager_set_name), (gsm_manager_set_name):
      	* gnome-session/gsm-manager.h:
      	* gnome-session/gsm-marshal.list:
      	* gnome-session/gsm-resumed-app.c (gsm_resumed_app_init),
      	(gsm_resumed_app_class_init),
      	(gsm_resumed_app_new_from_legacy_session),
      	(gsm_resumed_app_new_from_session), (get_basename), (launch):
      	* gnome-session/gsm-resumed-app.h:
      	* gnome-session/gsm-xsmp-client.c (gsm_xsmp_client_init),
      	(gsm_xsmp_client_class_init), (gsm_xsmp_client_new),
      	(xsmp_finalize), (client_iochannel_watch),
      	(client_protocol_timeout), (register_client_callback),
      	(do_save_yourself), (save_yourself_request_callback),
      	(xsmp_save_yourself), (save_yourself_phase2_request_callback),
      	(xsmp_save_yourself_phase2), (interact_request_callback),
      	(xsmp_interact), (interact_done_callback),
      	(xsmp_shutdown_cancelled), (xsmp_die),
      	(save_yourself_done_callback), (close_connection_callback),
      	(debug_print_property), (find_property), (delete_property),
      	(set_properties_callback), (delete_properties_callback),
      	(get_properties_callback), (xsmp_get_client_id), (xsmp_get_pid),
      	(xsmp_get_desktop_file), (prop_to_command),
      	(xsmp_get_restart_command), (xsmp_get_discard_command),
      	(xsmp_get_autorestart), (set_description),
      	(gsm_xsmp_client_connect):
      	* gnome-session/gsm-xsmp-client.h:
      	* gnome-session/gsm-xsmp-server.c (accept_ice_connection),
      	(gsm_xsmp_server_start), (gsm_xsmp_server_set_client_store),
      	(gsm_xsmp_server_set_property), (gsm_xsmp_server_get_property),
      	(accept_xsmp_connection), (ice_error_handler),
      	(ice_io_error_handler), (sms_error_handler), (auth_entry_new),
      	(update_iceauthority), (setup_listener),
      	(gsm_xsmp_server_constructor), (gsm_xsmp_server_class_init),
      	(gsm_xsmp_server_init), (gsm_xsmp_server_finalize),
      	(gsm_xsmp_server_new):
      	* gnome-session/gsm-xsmp-server.h:
      	* gnome-session/gsm.h:
      	* gnome-session/logout-dialog.c (gsm_logout_dialog_timeout),
      	(gsm_get_logout_dialog):
      	* gnome-session/logout-dialog.h:
      	* gnome-session/main.c (gsm_dbus_init), (gsm_dbus_check), (main):
      	* gnome-session/org.gnome.SessionManagement.xml:
      	* gnome-session/session.c:
      	* gnome-session/session.h:
      	* gnome-session/util.c (gsm_util_init_error),
      	(gsm_util_generate_client_id):
      	* gnome-session/util.h:
      	* gnome-session/xsmp.c:
      	* gnome-session/xsmp.h:
      	First crack at new new gnome-session based around D-Bus.
      	XSMP still provided but more as a legacy feature.  Not quite
      	operational yet.    See bug #535829 for more info.
      
      
      svn path=/branches/dbus_based/; revision=4728
      75df2148
  18. 24 Mar, 2008 1 commit