GNOME Bugzilla – Bug 642706
No way to select the default entry
Last modified: 2011-09-10 06:01:27 UTC
When using GtkAppChooserButton in control-center's info panel, I have no way to select which application should be the "selected by default" application, which means that instead of seeing the default application for a particular mime-type, we see the last used application for it.
This is what I had to do in the info panel: http://git.gnome.org/browse/gnome-control-center/commit/?id=f05f6307d72974ff22e1fddd0e83747794d5783a
Created attachment 181518 [details] [review] appchooserbutton: add API to show the default application on top
The attached patch should work for your use case.
Created attachment 181519 [details] [review] appchooserbutton: add API to show the default application on top Better patch, with some leaks fixed.
Is this about showing the default app, or about selecting it initially ? I think we need some documentation additions about the topic of what gets shown, and what gets selected initially. That should also talk about last-used vs default. Would probably be ok in the long desc of GtkAppChooser or GtkAppChooserWidget.
(In reply to comment #5) > Is this about showing the default app, or about selecting it initially ? The default app is shown, but it's possible that the default app wouldn't be the default selected one, as it might not be the "last used" one. > I think we need some documentation additions about the topic of what gets > shown, and what gets selected initially. That should also talk about last-used > vs default. Would probably be ok in the long desc of GtkAppChooser or > GtkAppChooserWidget. Definitely. I also don't like the name for the new function/properties, as it makes it look like the default application wouldn't be shown if the property was enabled.
The following fix has been pushed: f9379ad GtkAppChooserButton: Add a way to include the default app
Created attachment 196161 [details] [review] GtkAppChooserButton: Add a way to include the default app This is necessary to use an app chooser button for selecting default apps in the control center. Also, beef up the docs for this widget family.
Filed bug 658693 to bring this back to the control-center side.