seahorse r2883 - in seahorse-plugins/trunk: . agent
- From: sadam svn gnome org
- To: svn-commits-list gnome org
- Subject: seahorse r2883 - in seahorse-plugins/trunk: . agent
- Date: Tue, 3 Mar 2009 19:03:08 +0000 (UTC)
Author: sadam
Date: Tue Mar 3 19:03:07 2009
New Revision: 2883
URL: http://svn.gnome.org/viewvc/seahorse?rev=2883&view=rev
Log:
2009-03-03 Adam Schreiber <sadam clemson edu>
* seahorse-agent.c:
* seahorse-agent-main.c:
* seahorse-agent.h: Connect the uninit function to gtk_quit signal.
Fixes
bug #560784
Modified:
seahorse-plugins/trunk/ChangeLog
seahorse-plugins/trunk/agent/seahorse-agent-main.c
seahorse-plugins/trunk/agent/seahorse-agent.c
seahorse-plugins/trunk/agent/seahorse-agent.h
Modified: seahorse-plugins/trunk/agent/seahorse-agent-main.c
==============================================================================
--- seahorse-plugins/trunk/agent/seahorse-agent-main.c (original)
+++ seahorse-plugins/trunk/agent/seahorse-agent-main.c Tue Mar 3 19:03:07 2009
@@ -239,6 +239,8 @@
gtk_init_with_args (&argc, &argv, _("Encryption Key Agent (Seahorse)"), (GOptionEntry *) options, GETTEXT_PACKAGE, NULL);
+ gtk_quit_add (0, (GtkFunction) seahorse_agent_uninit, NULL);
+
seahorse_agent_prefork ();
if (seahorse_agent_execvars &&
@@ -269,7 +271,7 @@
seahorse_gtkstock_init ();
if (!seahorse_agent_init ())
- seahorse_agent_uninit ();
+ agent_quit = TRUE;
/* Sometimes we've already gotten a quit signal */
if(!agent_quit) {
@@ -279,7 +281,7 @@
}
/* And now clean them all up */
- seahorse_agent_uninit ();
+ seahorse_agent_uninit (NULL);
return 0;
}
Modified: seahorse-plugins/trunk/agent/seahorse-agent.c
==============================================================================
--- seahorse-plugins/trunk/agent/seahorse-agent.c (original)
+++ seahorse-plugins/trunk/agent/seahorse-agent.c Tue Mar 3 19:03:07 2009
@@ -143,11 +143,11 @@
return TRUE;
}
-void
-seahorse_agent_uninit ()
+gboolean
+seahorse_agent_uninit (gpointer *data)
{
if(!seahorse_agent_enabled)
- return;
+ return FALSE;
/* If any windows are open this closes them */
seahorse_agent_prompt_cleanup ();
@@ -157,5 +157,7 @@
seahorse_agent_cache_uninit ();
seahorse_agent_actions_uninit ();
seahorse_agent_io_uninit ();
+
+ return FALSE;
}
Modified: seahorse-plugins/trunk/agent/seahorse-agent.h
==============================================================================
--- seahorse-plugins/trunk/agent/seahorse-agent.h (original)
+++ seahorse-plugins/trunk/agent/seahorse-agent.h Tue Mar 3 19:03:07 2009
@@ -54,7 +54,7 @@
/* Called in the new child process */
gboolean seahorse_agent_init ();
-void seahorse_agent_uninit ();
+gboolean seahorse_agent_uninit (gpointer *data);
/* Global options to set from the command line */
extern gboolean seahorse_agent_cshell;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]