Re: gtk.filechooser problems...



On Mon, Jul 16, 2012 at 3:55 PM, Yaa101 <yaa101 xs4all nl> wrote:
> On Mon, 16 Jul 2012 15:38:09 -0400
> "Jasper St. Pierre" <jstpierre mecheye net> wrote:

... snip ...

>> Again, preferences should be done with the new preferences mechanism.
>
> Yeah, but I only heard about this new system in the previous email.
> So I have to redesign that.

Yeah. The biggest thing we're missing at the moment is good
documentation on the extension system. I don't know what approach to
take for that. Feedback and suggestions would be worthwhile on that.

> So if I read right there will be an extra config button on the
> my extensions page of the extension plugin from my browser?
> And that button appears when I add a prefs.js to my extension directory
> and that file contains the buildPrefsWidget() function?

Correct.

> And from that prefs.js I have no problem to use GTK+ its filechooser?

Correct.

>>
>> >>
>> >> > I thought it was my coding that made the lockup, so I tried to
>> >> > create a js filechooser, today I tried to revisit the attempt on
>> >> > Gtk.fileChooser as I made a lot of progress last 2 weeks on gjs.
>> >> >
>> >> > Can you explain more about the following?
>> >> >
>> >> >> Note that there is
>> >> >> support for extension preferences, which run in a separate
>> >> >> process.
>> >>
>> >> Please see my blog post at:
>> >> http://blog.mecheye.net/2012/02/more-extension-api-breaks/
>> >>
>> >> Basically, you create a file called 'prefs.js', which inside of it
>> >> has a function named 'buildPrefsWidget', which returns some form of
>> >> GtkWidget. Some extensions already have preferences -- go to your
>> >> Installed Extensions on the website. Do any extensions have a green
>> >> preferences icon next to them?
>> >
>> > No none, only one not working extension (called Media player
>> > indicator) has a blue button (with a tools icon) in front of it,
>> > but it does not do anything.
>>
>> Are you using Debian?
>>
>> > I go read your post... So much to learn still...
>> >
>> >>
>> >> > I am asking all these (maybe obvious for you) questions because I
>> >> > have no prior background with GKT+, so besides learning
>> >> > gnome-shell I have to learn also the core GTK+ stuff.
>> >> >
>> >> >
>> >> > --
>> >> > (o_
>> >> > //\  Regards, Groeten,
>> >> > V_/_ Bas Burger.
>> >> >
>> >> >
>> >> > On Mon, 16 Jul 2012 18:50:42 +0200
>> >> > Florian Müllner <fmuellner gnome org> wrote:
>> >> >
>> >> >> On Jul 16, 2012 6:39 PM, "Yaa101" <yaa101 xs4all nl> wrote:
>> >> >> > I am trying to call a filechooser, run it, then get the
>> >> >> > filename from it.
>> >> >>
>> >> >> You can only open override-redirect windows from the window
>> >> >> manager itself, which means you cannot use most of GTK+. Note
>> >> >> that there is support for extension preferences, which run in a
>> >> >> separate process.
>> >> >>
>> >> >> Florian
>> >> >
>> >> > _______________________________________________
>> >> > gnome-shell-list mailing list
>> >> > gnome-shell-list gnome org
>> >> > https://mail.gnome.org/mailman/listinfo/gnome-shell-list
>> >>
>> >>
>> >>
>> >
>>
>>
>>
>



-- 
  Jasper


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