[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

gEDA-cvs: CVS update: pcb.g_dbus.patch



  User: pcjc2   
  Date: 06/10/05 18:24:30

  Modified:    .        pcb.g_dbus.patch
  Log:
  Updated PCB patch to use canonicalize_file_name for correct behaviour 
  
  when PCB was invoked from the command line and xgsch2pcb wants to 
  
  discover what file it is editing.
  
  
  
  
  Revision  Changes    Path
  1.2       +12 -4     eda/geda/xgsch2pcb/support/pcb.g_dbus.patch
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: pcb.g_dbus.patch
  ===================================================================
  RCS file: /home/cvspsrv/cvsroot/eda/geda/xgsch2pcb/support/pcb.g_dbus.patch,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -b -r1.1 -r1.2
  --- pcb.g_dbus.patch	5 Oct 2006 21:49:17 -0000	1.1
  +++ pcb.g_dbus.patch	5 Oct 2006 22:24:30 -0000	1.2
  @@ -89,10 +89,10 @@
    }
   Index: src/hid/gtk/dbus.c
   ===================================================================
  -diff -U3 -p -r -N /home/pcjc2/empty/dbus.c src/hid/gtk/dbus.c
  +diff -U3 -p -N /home/pcjc2/empty/dbus.c src/hid/gtk/dbus.c
   --- /home/pcjc2/empty/dbus.c	1970-01-01 01:00:00.000000000 +0100
  -+++ src/hid/gtk/dbus.c	2006-10-04 19:59:11.000000000 +0100
  -@@ -0,0 +1,158 @@
  ++++ src/hid/gtk/dbus.c	2006-10-05 23:05:41.000000000 +0100
  +@@ -0,0 +1,166 @@
   +/*
   + * PCB, an interactive printed circuit board editor
   + * D-Bus IPC logic
  @@ -117,11 +117,16 @@
   + *  D-Bus code derrived from example-service.c in the dbus-glib bindings
   + */
   +
  ++// For canonicalize_file_name
  ++#define _GNU_SOURCE
  ++#include <stdlib.h>
  ++
   +#include "dbus.h"
   +#include "data.h"
   +
   +#include <dbus/dbus-glib.h>
   +
  ++
   +typedef struct GhidDbus GhidDbus;
   +typedef struct GhidDbusClass GhidDbusClass;
   +
  @@ -164,10 +169,13 @@
   +gboolean
   +ghid_dbus_get_filename (GhidDbus *obj, char **ret, GError **error)
   +{
  ++  char *filename;
   +#ifdef DEBUGDBUS
   +  printf ("ghid_dbus_get_filename()\n");
   +#endif
  -+  (*ret) = g_strdup ( PCB->Filename );
  ++  filename = canonicalize_file_name( PCB->Filename );
  ++  (*ret) = g_strdup ( filename );
  ++  free( filename );
   +
   +  return TRUE;
   +}
  
  
  


_______________________________________________
geda-cvs mailing list
geda-cvs@xxxxxxxxxxxxxx
http://www.seul.org/cgi-bin/mailman/listinfo/geda-cvs