GTK+ File Chooser Dialog: Difference between revisions
Created page with "GIMP (GTK+ 2) GTK+ file chooser For GTK+ dialog, the location bar will not appear while viewing "Recently Used" in the file chooser. In this view, even Ctrl+L shortcut keys ..." |
No edit summary |
||
Line 1: | Line 1: | ||
The primary user interface for selecting files | |||
* File Open | |||
* File Save | |||
Applications in Ubuntu / Mint call the GTK+ File Chooser Dialog for this purpose. | |||
* GTK+ file chooser | |||
* | Which includes | ||
*GtkFileChooser interface | |||
* GtkFileChooserDialog | |||
== customize and configure == | |||
vi /etc/gtk-3.0/settings.ini | vi /etc/gtk-3.0/settings.ini | ||
/home/nicolep/.config/gtk-2.0/gtkfilechooser.ini | /home/nicolep/.config/gtk-2.0/gtkfilechooser.ini | ||
Line 46: | Line 44: | ||
In Mint 18.3 To customize the list of "Places" that appears in the dialog you can edit the bookmarks file. | In Mint 18.3 To customize the list of "Places" that appears in the dialog you can edit the bookmarks file. | ||
=== misc === | |||
GIMP (GTK+ 2) | |||
For GTK+ dialog, the location bar will not appear while viewing "Recently Used" in the file chooser. In this view, even Ctrl+L shortcut keys will not work. | |||
KGtk is the hackish way to use KDE dialogs in GTK+ applications. | |||
* ref: https://superuser.com/questions/944119/replace-gtk-file-dialog-with-alternative | |||
{{:Template:Untidy Entry}} |
Revision as of 11:25, 3 December 2019
The primary user interface for selecting files
- File Open
- File Save
Applications in Ubuntu / Mint call the GTK+ File Chooser Dialog for this purpose.
- GTK+ file chooser
Which includes
- GtkFileChooser interface
- GtkFileChooserDialog
customize and configure
vi /etc/gtk-3.0/settings.ini
/home/nicolep/.config/gtk-2.0/gtkfilechooser.ini
As people already said here, you can set StartupMode=cwd in ~/.config/gtk-2.0/gtkfilechooser.ini. This file exists already, if it is GTK+2, but I am not sure if your screenshot shows GTK+3.
In this case insert this line into your ~/.config/gtk-3.0/settings.ini:
gtk-recent-files-enabled=false
If you want "/" to appear as first view, you need to chdir / before starting the application.
startup mode
In ~/.config/gtk-2.0/gtkfilechooser.ini
change
StartupMode=recent
to
StartupMode=cwd
"recent" and "cwd" are the choices available to the user. An app developer can set an arbitrary start up folder by calling gtk_file_chooser_set_current_folder ().
places
vi ~/.config/gtk-3.0/bookmarks
In Mint 18.3 To customize the list of "Places" that appears in the dialog you can edit the bookmarks file.
misc
GIMP (GTK+ 2)
For GTK+ dialog, the location bar will not appear while viewing "Recently Used" in the file chooser. In this view, even Ctrl+L shortcut keys will not work.
KGtk is the hackish way to use KDE dialogs in GTK+ applications.
![]() Learn more... |