Re: gtk.filechooser problems...



On Mon, Jul 16, 2012 at 4:25 PM, Yaa101 <yaa101 xs4all nl> wrote:
> I just installed your extension, but clicking on the settings button on
> the extension page in my browser does nothing at all.

Is there anything notable in the JS console of the page after
clicking, or in ~/.xsession-errors?

> I am afraid that this part does not work on my system (gnome-shell
> 3.4.1), this means it also will not work on many other peoples' system.
> Also I cannot work on the settings box if I have no access in the first
> place.
>
> So for now there is no use in persuing that route for my extensions'
> settings, maybe at gnome-shell 3.6 there is any use.
>
> The extension is mainly for my own use (scratching my own itch), but
> until I can offer a decent working extension with a decent working
> config, I will not distribute it to the world.
>
> Thanks for the suggestion, I probably will use the examples from
> your extension in a few months.
>
> --
> (o_
> //\  Regards, Groeten,
> V_/_ Bas Burger.
>
>
> On Mon, 16 Jul 2012 21:57:14 +0200
> Clemens Eberwein <clemens lab21 org> wrote:
>
>> Install https://extensions.gnome.org/extension/16/auto-move-windows/
>> It uses the prefs tool and launches a gtk app chooser. Imho the
>> easiest way to learn how it works is to see it :)
>> Am 16.07.2012 21:54 schrieb "Yaa101" <yaa101 xs4all nl>:
>>
>> >
>> >
>> >
>> > --
>> > (o_
>> > //\  Regards, Groeten,
>> > V_/_ Bas Burger.
>> >
>> >
>> > On Mon, 16 Jul 2012 15:38:09 -0400
>> > "Jasper St. Pierre" <jstpierre mecheye net> wrote:
>> >
>> > > On Mon, Jul 16, 2012 at 3:36 PM, Yaa101 <yaa101 xs4all nl> wrote:
>> > > >
>> > > >
>> > > >
>> > > > --
>> > > > (o_
>> > > > //\  Regards, Groeten,
>> > > > V_/_ Bas Burger.
>> > > >
>> > > >
>> > > > On Mon, 16 Jul 2012 15:01:32 -0400
>> > > > "Jasper St. Pierre" <jstpierre mecheye net> wrote:
>> > > >
>> > > >> ( First of all, Florian, please try to reply on-list :) )
>> > > >
>> > > > Florian probably replied sender instead of reply all, so I
>> > > > corrected it...
>> > > >
>> > > >>
>> > > >> On Mon, Jul 16, 2012 at 2:45 PM, Yaa101 <yaa101 xs4all nl>
>> > > >> wrote:
>> > > >> >
>> > > >> > So what you say is that all the widgets from GKT+ itself are
>> > > >> > offlimit for us gjs users?
>> > > >>
>> > > >> Not all GTK+ widgets are off-limits. Just new top-level
>> > > >> windows. And that's not for gjs users, that's only when
>> > > >> running gnome-shell extensions, as they run in-process.
>> > > >>
>> > > >> > Shame, now I have to finish my selfmade filechooser, I
>> > > >> > started on that after I tried the Gtk.fileChooser for the
>> > > >> > first time.
>> > > >>
>> > > >> You shouldn't have to. Why do you want to launch a
>> > > >> Gtk.FileChooser from a gnome-shell extension?
>> > > >
>> > > > Because I have a settings dialog with my extension and in there
>> > > > a user has to fill a directory setting, so my thinking was, why
>> > > > not let a user choose a directory instead of having that user
>> > > > fill in a potentially wrong path.
>> > > >
>> > > > I am 3/4 there, the dialog works well but misses the places
>> > > > listbox yet. That is why the questions of a scrolling table in
>> > > > the other mail.
>> > >
>> > > 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.
>> >
>> > 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?
>> >
>> > And from that prefs.js I have no problem to use GTK+ its
>> > filechooser?
>> >
>> >
>> > >
>> > > >>
>> > > >> > 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
>> > > >>
>> > > >>
>> > > >>
>> > > >
>> > >
>> > >
>> > >
>> >
>> > _______________________________________________
>> > 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]