I've just tested my widget on Ubuntu and I've figured out that there
it is persisting data. So now I'm convicted that it is a bug on google
gadget's API.

Kind regards,
Rafael

On Aug 8, 8:46 am, Rafael Brandão <[email protected]> wrote:
> I've been running it as a .gg file but I didn't open it every time I
> log on.
>
> It happens that after I install the widget, after doing some changes
> on it, and after saving those changes into options dictionary, when I
> try to restart the pc, all the changes are lost. The only way I've
> figured out to persist data is clicking on another widget that has a
> working persistance and change something there. I have no idea what's
> going on.
>
> Kind regards,
> Rafael
>
> On Aug 7, 1:23 pm, Teo <[email protected]> wrote:
>
>
>
> > Have you been running the gadget as a .gg file or as a .gmanifest file? I
> > think the manual install of a .gg erases the options for security reasons...
>
> > 2009/8/7 Rafael Brandão <[email protected]>
>
> > > Thank you for the reply!
>
> > > I mistyped the function, but I've been using "putValue()" correctly. I
> > > have no idea what's going on but it is still not properly saving
> > > changes, only if I go to another widget and change any piece of
> > > information there, what's really weird (I was running the google
> > > sidebar at Windows XP, perhaps that's the reason).
>
> > > Is there any change that it's a bug on google gadgets' API?
>
> > > Kind regards,
> > > Rafael
>
> > > On Aug 6, 3:05 pm, Benjamin <[email protected]> wrote:
> > > > Actually there is no setValue() method, the correct method is called
> > > > putValue(). There is no additional method or action necessary to
> > > > instruct Google Desktop to actually store the options. Every putValue
> > > > () call is automatically stored. You can even use options as a
> > > > temporary storage for information and it will work.
>
> > > > Best regards,
> > > > Benjamin
>
> > > > On Aug 5, 10:49 pm, Rafael <[email protected]> wrote:
>
> > > > > Greetings!
>
> > > > > I've been in troubles trying to make my widget persist certain types
> > > > > of data. Actually, I've learned about JSON and it is working fine. I'm
> > > > > also using "options.setValue()" to keep data. However, it seens that I
> > > > > have to trigger something else to confirm all the changes inside the
> > > > > options dictionary. It's like changing the value is not enough.
>
> > > > > What else I have to do inside the widget to make sure that it will
> > > > > persist data?
>
> > > > > I've realized that the widget only persists data when I change the
> > > > > focused widget to any other that has a working data persistance, i.e.
> > > > > the note draft widget. So all I need to do is to click there, inside
> > > > > the edit box, and when THAT widget saves its data, it will save the
> > > > > data of my widget.
>
> > > > > Any ideas?
>
> > > > > Thanks in advance,
> > > > > Rafael
>
> > --
> > Teo (a.k.a. Teominator a.k.a. Teodor Filimon)
> > sitewww.teodorfilimon.com|blogwww.teodorfilimon.blogspot.com
> > GMT +2
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Desktop Developer Group" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/Google-Desktop-Developer?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to