On Mon, Aug 20, 2012 at 8:22 AM, Amy C <mathematical.cof...@gmail.com> wrote: > On 20 August 2012 17:07, Jasper St. Pierre <jstpie...@mecheye.net> wrote: >> Due to the way the window manager works, it's not possible to pop up a >> GTK+ window in-process. You can spawn the gnome-shell-extension-prefs >> tool yourself, but I don't see why you would do that. >> > Oh, I see. The main reason is that on GNOME 3.4 I'm happy for all > configuring to be done via gnome-shell-extension-prefs but on GNOME > 3.2 would like configuring to be done via the drop down menu from the > status icon (since it'll have one anyway). However I'm after a few > more complex widgets that won't work in PopupMenu (like Gtk TreeView), > so have to work out how to get the TreeView happening from the > PopupMenu for the GNOME 3.2 folk (I know 3.2 is going out of fashion > pretty quickly due to 3.5 coming out, but I personally am going to be > stuck on 3.2 for at least another year at work so it's important for > me that extensions work on the computer I spend the most time on!) > > So the options for getting (e.g.) Gtk.TreeView from a PopupMenu/GNOME > 3.2 (I mainly want to use it as a list box where each item is > editable; the add/remove functions are not important), what I've > thought of so far: > > * a PopupMenuItem ("Prefs") launches a GTK widget with the TreeView in > it - I now know it will have to spawn an external process to do so. > * make a PopupMenuItem for *each* of the entires that I wanted in my > TreeView, and say clicking them brings up a modalDialog with a > St.Entry for the user to enter in a new name > * a PopupMenuItem ("Prefs") brings up a modal dialog where there's one > non-editable St.Entry for each of the entries and perhaps a St.Button > next to each ("Edit") that allows me to edit each entry > > Are these basically my only options? (I think the > St.Entry/PopupMenuItem-per-entry solution feels pretty cludgy).
You can do anything you want to. I'd recommend the first one. I'm not sure how you'd do it, with GSettings not working and everything. -- Jasper _______________________________________________ gnome-shell-list mailing list gnome-shell-list@gnome.org https://mail.gnome.org/mailman/listinfo/gnome-shell-list