Gtk.AppChooser not showing all applications?
- From: Amy C <mathematical coffee gmail com>
- To: gnome-shell-list gnome org
- Subject: Gtk.AppChooser not showing all applications?
- Date: Tue, 14 Aug 2012 11:30:27 +1000
Hi all,
I'm trying to bring up a Gtk.AppChooserWidget with a list of all
applications on the computer for the user to select from.
However, I notice that there are quite a few apps missing from the
list, and duplicates of others. For example, I have 3 'Banshee'
entries and *no* 'Terminal' entries. I definitely need the Terminal to
show up in the list. Even clicking the 'Show other application'
buttons doesn't increase the list.
The code in prefs.js (I've also attached a standalone version of the
code: do './gjs sample_app-chooser.js' to see. It works in GNOME 3.2,
probably GNOME 3.4 but I can't test at the moment. Modified from from
the ButtonExample on dev.gnome.org in the demos/unstable section.
However, I didn't bother connecting up the dialog buttons to anything
so you'll have to Ctrl+C to quit the program).
/* bring up a dialogue for them to set windows */
let dialog = new Gtk.AppChooserDialog(this.get_toplevel(),
Gtk.DialogFlags.MODAL | Gtk.DialogFlags.DESTROY_WITH_PARENT),
widget = dialog.get_widget();
dialog.set_heading(_("Select an app to blacklist/whitelist"));
widget.set_show_all(true); // set the appchooser to show every app
I was under the impression that the `.set_show_all(true)` would cause
every application to appear on the list - why would some not show?
(such as the Terminal application which is definitely installed!)
cheers.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]