Skip to content
Snippets Groups Projects
Commit ce13e063 authored by rds's avatar rds
Browse files

added a destory method

parent cac44b05
No related branches found
No related tags found
No related merge requests found
......@@ -27,9 +27,9 @@
*
* Exported functions: See ZMap/zmapXRemote.h (this file)
* HISTORY:
* Last edited: Jun 10 10:48 2005 (rds)
* Last edited: Jun 24 12:31 2005 (rds)
* Created: Wed Apr 13 19:02:52 2005 (rds)
* CVS info: $Id: zmapXRemote.h,v 1.5 2005-06-10 09:49:52 rds Exp $
* CVS info: $Id: zmapXRemote.h,v 1.6 2005-06-24 11:29:00 rds Exp $
*-------------------------------------------------------------------
*/
......@@ -60,7 +60,7 @@
((status) < 300 ? ZMAP_XREMOTE_SUCCESS_XML_FORMAT : ZMAP_XREMOTE_ERROR_XML_FORMAT )
/* These are here just to allow checking */
#define ZMAP_XREMOTE_CURRENT_VERSION "$Revision: 1.5 $"
#define ZMAP_XREMOTE_CURRENT_VERSION "$Revision: 1.6 $"
#define ZMAP_XREMOTE_CURRENT_VERSION_ATOM "_ZMAP_XREMOTE_VERSION"
#define ZMAP_XREMOTE_APPLICATION_ATOM "_ZMAP_XREMOTE_APP"
......@@ -135,6 +135,7 @@ char *zMapXRemoteGetResponse(zMapXRemoteObj object);
GdkAtom zMapXRemoteGdkRequestAtom(zMapXRemoteObj object);
GdkAtom zMapXRemoteGdkResponseAtom(zMapXRemoteObj object);
void zMapXRemoteDestroy(zMapXRemoteObj object);
/* ================================================ */
/* CLIENT MODE ONLY METHODS */
/* ================================================ */
......
......@@ -27,9 +27,9 @@
*
* Exported functions: See ZMap/zmapXRemote.h
* HISTORY:
* Last edited: Jun 22 19:37 2005 (rds)
* Last edited: Jun 24 12:28 2005 (rds)
* Created: Wed Apr 13 19:04:48 2005 (rds)
* CVS info: $Id: zmapXRemote.c,v 1.5 2005-06-22 18:39:44 rds Exp $
* CVS info: $Id: zmapXRemote.c,v 1.6 2005-06-24 11:26:33 rds Exp $
*-------------------------------------------------------------------
*/
......@@ -72,6 +72,29 @@ zMapXRemoteObj zMapXRemoteNew(void)
return object;
}
void zMapXRemoteDestroy(zMapXRemoteObj object)
{
zmapXDebug("%s id: 0x%lx\n", "Destroying object", object->window_id);
if(object->remote_app)
g_free(object->remote_app);
/* Don't think we need this bit
* ****************************
* zmapXTrapErrors();
* XDeleteProperty(object->display, object->window_id, object->request_atom);
* XDeleteProperty(object->display, object->window_id, object->response_atom);
* XDeleteProperty(object->display, object->window_id, object->app_sanity_atom);
* XDeleteProperty(object->display, object->window_id, object->version_sanity_atom);
* XSync(object->display, False);
* zmapXUntrapErrors();
* ****************************
*/
g_free(object);
return ;
}
void zMapXRemoteSetWindowID(zMapXRemoteObj object, Window id)
{
object->window_id = id;
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment