Skip to content
Snippets Groups Projects
Commit 0803b6d9 authored by edgrif's avatar edgrif
Browse files

add display pointer to xremote create.

parent 8be57a9c
No related branches found
No related tags found
No related merge requests found
......@@ -27,9 +27,9 @@
*
* Exported functions: None
* HISTORY:
* Last edited: Aug 13 18:01 2009 (edgrif)
* Last edited: Mar 25 14:41 2010 (edgrif)
* Created: Thu May 5 18:19:30 2005 (rds)
* CVS info: $Id: zmapAppremote.c,v 1.39 2010-03-04 15:09:38 mh17 Exp $
* CVS info: $Id: zmapAppremote.c,v 1.40 2010-03-29 09:54:10 edgrif Exp $
*-------------------------------------------------------------------
*/
......@@ -123,7 +123,7 @@ void zmapAppRemoteInstaller(GtkWidget *widget, gpointer app_context_data)
{
ZMapXRemoteObj client = NULL;
if((app_context->xremote_client = client = zMapXRemoteNew()) != NULL)
if ((app_context->xremote_client = client = zMapXRemoteNew(GDK_DISPLAY())) != NULL)
{
Window id = (Window)GDK_DRAWABLE_XID(widget->window);
char *req = NULL, *resp = NULL;
......
......@@ -28,9 +28,9 @@
* Exported functions: None
*
* HISTORY:
* Last edited: Mar 2 15:48 2010 (edgrif)
* Last edited: Mar 26 09:20 2010 (edgrif)
* Created: Thu Feb 15 11:25:20 2007 (rds)
* CVS info: $Id: xremote_gui_test.c,v 1.20 2010-03-04 15:09:47 mh17 Exp $
* CVS info: $Id: xremote_gui_test.c,v 1.21 2010-03-29 09:54:55 edgrif Exp $
*-------------------------------------------------------------------
*/
......@@ -633,7 +633,7 @@ static void addClientCB(GtkWidget *button, gpointer user_data)
client_text = (char *)gtk_entry_get_text(GTK_ENTRY(suite->client_entry));
wxid = (Window)(strtoul(client_text, (char **)NULL, 16));
if ((client = zMapXRemoteNew()))
if ((client = zMapXRemoteNew(NULL)))
{
zMapXRemoteInitClient(client, wxid);
addClientToHash(suite->xremote_clients, client, wxid, NULL, TRUE);
......@@ -1044,7 +1044,7 @@ static gboolean xml_client_end_cb(gpointer user_data, ZMapXMLElement client_elem
if((attr = zMapXMLElementGetAttributeByName(client_element, "response_atom")) != NULL)
resp = (char *)g_quark_to_string(zMapXMLAttributeGetValue(attr));
if(wxid && req && resp && (new_client = zMapXRemoteNew()))
if(wxid && req && resp && (new_client = zMapXRemoteNew(NULL)))
{
GList *actions = NULL;
......@@ -1118,7 +1118,7 @@ static gboolean xml_client_start_cb(gpointer user_data, ZMapXMLElement client_el
if((attr = zMapXMLElementGetAttributeByName(client_element, "response_atom")) != NULL)
resp = (char *)g_quark_to_string(zMapXMLAttributeGetValue(attr));
if (wxid && req && resp && (new_client = zMapXRemoteNew()))
if (wxid && req && resp && (new_client = zMapXRemoteNew(NULL)))
{
GList *actions = NULL;
......
......@@ -28,9 +28,9 @@
* Exported functions: See zmapControl_P.h
*
* HISTORY:
* Last edited: Feb 8 15:19 2010 (edgrif)
* Last edited: Mar 25 14:42 2010 (edgrif)
* Created: Thu Jul 12 14:54:30 2007 (rds)
* CVS info: $Id: zmapControlRemoteReceive.c,v 1.10 2010-03-04 15:09:54 mh17 Exp $
* CVS info: $Id: zmapControlRemoteReceive.c,v 1.11 2010-03-29 09:54:30 edgrif Exp $
*-------------------------------------------------------------------
*/
......@@ -366,7 +366,7 @@ static void createClient(ZMap zmap, ZMapXRemoteParseCommandData input_data, Resp
char *format_response = "<client xwid=\"0x%lx\" created=\"%d\" exists=\"%d\" />";
int created, exists;
if (!(zmap->xremote_client) && (client = zMapXRemoteNew()) != NULL)
if (!(zmap->xremote_client) && (client = zMapXRemoteNew(GDK_DISPLAY())) != NULL)
{
zMapXRemoteInitClient(client, client_params->xid) ;
zMapXRemoteSetRequestAtomName(client, (char *)g_quark_to_string(client_params->request)) ;
......
......@@ -29,9 +29,9 @@
* Exported functions: See zmapView_P.h
*
* HISTORY:
* Last edited: Jan 27 15:46 2010 (edgrif)
* Last edited: Mar 25 14:43 2010 (edgrif)
* Created: Tue Jul 10 21:02:42 2007 (rds)
* CVS info: $Id: zmapViewRemoteReceive.c,v 1.42 2010-03-19 08:56:42 mh17 Exp $
* CVS info: $Id: zmapViewRemoteReceive.c,v 1.43 2010-03-29 09:56:50 edgrif Exp $
*-------------------------------------------------------------------
*/
......@@ -488,7 +488,7 @@ static void createClient(ZMapView view, ZMapXRemoteParseCommandData input_data,
char *format_response = "<client xwid=\"0x%lx\" created=\"%d\" exists=\"%d\" />";
int created, exists;
if(!(view->xremote_client) && (client = zMapXRemoteNew()) != NULL)
if(!(view->xremote_client) && (client = zMapXRemoteNew(GDK_DISPLAY())) != NULL)
{
zMapXRemoteInitClient(client, client_params->xid);
zMapXRemoteSetRequestAtomName(client, (char *)g_quark_to_string(client_params->request));
......
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