Re: Bug in bonobo-property?



Hi Jose,

	Thansk for your bug report; it is an intriguing problem.
  
        pb = bonobo_property_bag_new (get_prop, set_prop, (void *) gnupg);
        
        [..]
        
        def = bonobo_arg_new (BONOBO_ARG_STRING);

        BONOBO_ARG_SET_STRING (def, "wwwkeys.us.pgp.net");

        bonobo_property_bag_add (pb, "DefaultServer", 3,
			 BONOBO_ARG_STRING,
                         def, "Default Key Server",
                         BONOBO_PROPERTY_READABLE |
			 BONOBO_PROPERTY_WRITEABLE);

	This is quite correct. The strange thing is that I've just tested
( again ) some very similar code in
bonobo/tests/test-properties-client/server and it works just fine.

	Is it possible that you are passing 'def' as the default for more
than 1 property ? that would cause this problem; if you want to do this
you should insert a bonobo_arg_copy (def) for the first assignments.

	Please get back to me if this is not the case,

	Thanks again,

		Michael.

-- 
 mmeeks gnu org  <><, Pseudo Engineer, itinerant idiot





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