On Wed, 2001-08-22 at 14:58, Edd Dumbill wrote: > Trying to get the memo_file conduit to work, but having no success. > > >From the debugger I notice it does not get added to the conduit list > passed to iterate_dbs > > Also, there is a warning when it is initialised: > > Gtk-WARNING **: gtk_object_new(): could not find argument "" in the > `GnomePilotConduitStandardAbs' class ancestry > > I've also seen other random junk inside those "". so I guess some > pointer's screwy. What seems to be happening is that the creator id and database name are getting lost somewhere along the line. I wrote a quick patch to fix it, which I attach, but I suspect this is not the Proper Way to get things going... -- Edd
--- memo_file_conduit.c 2001/06/19 02:10:55 1.36
+++ memo_file_conduit.c 2001/08/22 14:59:06
@@ -1305,7 +1305,7 @@
conduit_get_gpilot_conduit (guint32 pilotId)
{
GtkObject *retval;
-
+ GnomePilotConduitStandard *c;
ConduitData *cd = g_new0(ConduitData,1);
ConduitCfg *cfg, *cfg2;
@@ -1313,7 +1313,9 @@
retval = gnome_pilot_conduit_standard_abs_new ("MemoDB", 0x6d656d6f);
g_assert (retval != NULL);
-
+ c=(GnomePilotConduitStandard *)retval;
+ gnome_pilot_conduit_standard_set_creator_id(c,(guint32)0x6d656d6f);
+ gnome_pilot_conduit_standard_set_db_name(c,"MemoDB");
LOG("creating memo_file conduit");
g_assert (retval != NULL);
Attachment:
pgpWYrulxbZfv.pgp
Description: PGP signature