summaryrefslogtreecommitdiff
path: root/gtk/gtkfilechooserprivate.h
Commit message (Collapse)AuthorAgeFilesLines
* Convert headers to #pragma onceMatthias Clasen2023-03-311-3/+1
| | | | The conversion was done by guard2one.
* filesystemmodel: Rename private headerMatthias Clasen2023-01-071-1/+1
|
* filechooser: Save and restore view typeMatthias Clasen2022-12-131-0/+1
| | | | | | With this, the filechooser comes up with the same view (grid or list) that it had the last time you used it.
* Deprecate GtkFileChooser and implementationsMatthias Clasen2022-10-291-1/+1
| | | | | | | | | These are being replaced by GtkFileDialog. This commit only moves the headers for GtkFileChooserWidget and GtkFileChooserDialog to deprecated/, and keeps the implementations in gtk/, since they will eventually be salvaged into a private GtkFileChooserWindow.
* Deprecate treeviews and cell renderersMatthias Clasen2022-10-111-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This includes GtkCellArea GtkCellAreaBox GtkCellAreaContext GtkCellEditable GtkCellRenderer GtkCellRendererAccel GtkCellRendererCombo GtkCellRendererPixbuf GtkCellRendererProgress GtkCellRendererSpin GtkCellRendererSpinner GtkCellRendererText GtkCellRendererToggle GtkCellView GtkComboBox GtkComboBoxText GtkIconView GtkListStore GtkTreeModel GtkTreeModelFilter GtkTreeModelSort GtkTreeStore GtkTreeView GtkTreeViewColumn GtkTreeSelection
* searchengine: Rename private headerswip/otte/G_TYPE_POINTERBenjamin Otte2021-08-291-1/+1
| | | | The code uses G_TYPE_POINTER and I got all sorts of scared.
* Replace "gchar" with "char"Benjamin Otte2020-07-251-2/+2
|
* filechooser: Drop get_file_system from the interfaceMatthias Clasen2020-07-121-4/+0
| | | | This is no longer used.
* filechooser: Make get_files return a list modelMatthias Clasen2020-07-091-1/+1
| | | | | | Like the other list getters in this interface, make gtk_file_chooser_get_files() return a list model.
* filechooser: Drop gtk_file_chooser_[un]select_fileMatthias Clasen2020-07-091-1/+5
| | | | | | Most use cases for these apis can be handled with gtk_file_chooser_set_file and/or gtk_file_chooser_set_current_folder.
* filechooser: Drop gtk_file_chooser_[un]_select_allMatthias Clasen2020-07-091-0/+3
| | | | | For now, we just remove them as public api, they are still used internally.
* filechooser: Add gtk_file_chooser_get_shortcutsMatthias Clasen2020-07-061-1/+1
| | | | | | | Replace gtk_file_chooser_list_shortcuts with a new api that returns a list model. Update all callers.
* filechooser: Add gtk_file_chooser_get_filtersMatthias Clasen2020-07-061-24/+24
| | | | | | | Replace gtk_file_chooser_list_filters with a new api that returns a list model. Update all callers.
* Remove preview widget from GtkFileChooserEmmanuele Bassi2020-02-221-1/+0
| | | | | | | | | | | The preview widget harks from a platform before time, when we didn't have GIO, or a thumbnail specification. Very few applications use it correctly, if at all; it has an horrid hack to deal with the ownership of the widget's instance when accessed through the getter function; it messes up the layout of the widget and its label is less than useful when it comes to file names longer than a dozen characters; it's a poor substitute for a proper thumbnail view.
* Remove overwrite confirmation machinery from GtkFileChooserEmmanuele Bassi2020-02-221-1/+0
| | | | | Overwrite confirmation should not be optional, and it should not loop into application code to create their own dialog and user response.
* Remove filename/URI API from GtkFileChooserEmmanuele Bassi2020-02-221-8/+0
| | | | | | | | | | | | GtkFileChooser's API predates GIO by a few years, so it started off with filenames and URI as character arrays. After introducing GIO as a dependency, the API included GFile-based entry points. It's much more appropriate to use GFile everywhere, as we want to encourage people to use GIO instead of passing random bytes to low level POSIX API. See: #2455
* Rename gtkbookmarkmanager.h to gtkbookmarksmanagerprivate.hTimm Bäder2019-09-111-1/+0
| | | | It's a private type, so gets a private header file name.
* filechooser: Remove SETTINGS_KEY_WINDOW_POSITIONTimm Bäder2019-07-191-1/+0
| | | | Now unused.
* Revert "file chooser: Stop using gtk_window_get_position"Timm Bäder2019-07-191-0/+1
| | | | | | | This reverts commit 2ed533c3e1f0fe776fb24cc370447a0c63e49f24. This also made the filechooser dialog not save the window size anymore, which does not depend on the gtk_window_get_position() removal.
* GtkFileChooser: add a sortable "Type" columnNelson Benítez León2019-06-221-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | along with a new 'type-format' setting that allows to choose the output format for the "Type" column. The options implemented for this setting are: 'mime' : Output from g_content_type_get_mime_type(). 'description' : Output from g_content_type_get_description(). 'category' : It uses the corresponding generic icon of the mime type to group by categories (aka basic types). This produces a more compact output than previous options, and allows for type families to be grouped together, so eg. after sorting by "Type" column, jpeg and png images will be placed together, or the various types of archiver files will also be grouped together. This format was copied from and currently used by Nautilus list view, so we also improve consistency with Nautilus. Bugzilla entry for Nautilus implementation is: https://bugzilla.gnome.org/show_bug.cgi?id=683722 The list of type families or categories can be checked on: https://developer.gnome.org/icon-naming-spec/#mimetypes This 'category' format is set as default. Issue #362
* file chooser: Stop using gtk_window_get_positionMatthias Clasen2019-03-261-1/+0
| | | | It is going away.
* GtkFileChooser: Add abstract api for comboboxes and checkbuttonsMatthias Clasen2016-07-081-1/+15
| | | | | | | | | | This commit adds API for adding combo boxes and check buttons to GtkFileChooser, and getting the selected value back in ::response. In contrast to gtk_file_chooser_set_extra_widget, these APIs are abstract and suitable for implementation in GtkFileChooserNative. https://bugzilla.gnome.org/show_bug.cgi?id=768499
* file chooser: Clean up enum handlingMatthias Clasen2015-07-041-9/+11
| | | | | Use g_settings_get_set_enum to handle the clock and date format settings.
* file-chooser: add a sort-directories-first gsettingWilliam Jon McCann2013-12-031-0/+1
| | | | | Add an option to sort folders before files in order to be more constistent with the file manager.
* filechooser: Add gtk_file_chooser_get_current_name()Jonh Wendell2013-06-191-0/+1
| | | | | | | | | | Currently you can only set the current filename, but not get it. It's useful to be able to get it in save dialogs, where the user has typed the desired filename and you are not in a real directory (recent used, for example). https://bugzilla.gnome.org/show_bug.cgi?id=702497
* Move GtkFileChooserDefault to gtkfilechooserdefault.cFederico Mena Quintero2013-04-111-181/+0
| | | | We will move all the fields to a private structure next.
* Move GtkFileChooserWidgetPrivate to gtkfilechooserwidget.cFederico Mena Quintero2013-04-111-10/+0
| | | | | In addition, remove the unused "file_system" field from that structure.
* Move GtkFileChooserDialogPrivate into gtkfilechooserdialog.cFederico Mena Quintero2013-04-111-11/+0
| | | | | We'll take private structures out of gtkfilechooserprivate.h and move them to the appropriate place.
* Merge branch 'places-sidebar' into masterFederico Mena Quintero2013-04-111-13/+14
|\ | | | | | | | | | | This lands the GtkPlacesSidebar widget. It is used in GtkFileChooserDefault, and it can also be used by third-party applications.
| * Merge branch 'master' into places-sidebarFederico Mena Quintero2013-02-131-14/+12
| |\ | | | | | | | | | | | | | | | | | | Conflicts: docs/reference/gtk/gtk-docs.sgml gtk/gtkfilechooserdefault.c gtk/org.gtk.Settings.FileChooser.gschema.xml
| * | Remove the old shortcuts pane code from GtkFileChooserDefaultFederico Mena Quintero2012-12-051-17/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Oh, the giant void. I stare into it and it makes me afraid that I've screwed up. But I know I haven't. Because any remaining bugs will be yours to fix. Not mine. Signed-off-by: Federico Mena Quintero <federico@gnome.org>
| * | Add a new org.gtk.SettingsFileChooser startup-mode settings keyFederico Mena Quintero2012-11-211-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | It has two possible values, 'recent' and 'cwd'. We will use these to determine whether to set the default starting mode, if a folder has not been pre-set, to showing the Recent Files list or the current working directory. Signed-off-by: Federico Mena Quintero <federico@gnome.org>
| * | Create the places sidebar instead of the old custom treeviewFederico Mena Quintero2012-09-051-0/+2
| | | | | | | | | | | | Signed-off-by: Federico Mena Quintero <federico@gnome.org>
| * | #if out a few thingsFederico Mena Quintero2012-09-031-0/+6
| | |
| * | Make GtkFileChooserDefault use GtkBookmarksManagerFederico Mena Quintero2012-09-031-0/+3
| | | | | | | | | | | | | | | | | | It no longer uses GtkFileSystem to deal with bookmarks. Signed-off-by: Federico Mena Quintero <federico@gnome.org>
* | | Revert "GtkFileChooserDefault: Define children with a GtkBuilder template"Federico Mena Quintero2013-04-111-2/+152
| | | | | | | | | | | | | | | | | | | | | | | | Having the changes for composite widget templates makes it impossible to merge the places-sidebar branch. So, we will merge that branch, and *then* apply the changes for composite templates. This reverts commit bf909f56157311174d5d9089bdec954e7def8873.
* | | GtkFileChooserDialog: Define children with a GtkBuilder templateTristan Van Berkom2013-04-081-2/+0
| | |
* | | GtkFileChooserDefault: Define children with a GtkBuilder templateTristan Van Berkom2013-04-081-152/+2
| |/ |/|
* | filechooser: Oops, cancel a file operation that was missingFederico Mena Quintero2013-02-131-1/+0
| | | | | | | | | | | | In addition, remove a list of pending_cancellables that was no longer being used. Signed-off-by: Federico Mena Quintero <federico@gnome.org>
* | filechooserbutton: Remove unused function prototypesFederico Mena Quintero2013-02-131-11/+0
| |
* | filechooser: follow the gtk-recent-files-enabled GtkSettingCosimo Cecchi2013-02-131-0/+1
| | | | | | | | | | | | Avoid showing the Recent files entry if the setting is FALSE. https://bugzilla.gnome.org/show_bug.cgi?id=693709
* | filechooser: Move settings key defines into headerBenjamin Otte2013-01-261-0/+9
| | | | | | | | ... so we can read/write those keys from different source files.
* | filechooser: Attach GSettings object to GtkSettingsBenjamin Otte2013-01-241-2/+0
| | | | | | | | | | ... instead of keeping one per GtkFileChooserDefault. This allows using it in other places, too.
* | filechooser: remember sidebar widthJonny Lamb2012-11-141-0/+1
|/ | | | | | https://bugzilla.gnome.org/show_bug.cgi?id=524295 Signed-off-by: Jonny Lamb <jonnylamb@gnome.org>
* Change FSF AddressJavier Jardón2012-02-271-3/+1
|
* Menu item to visit the selected files in recent-files modeFederico Mena Quintero2011-09-051-0/+1
| | | | | | | | This will take you to the file's folder and select the file in question. The menu item is only available in Recently-used and Search modes, so that you can go from files in them to the 'normal' browsing mode. Signed-off-by: Federico Mena Quintero <federico@gnome.org>
* [filechooser] bgo#349502: Context menu option to copy selected files to the ↵Arx Cruz2011-08-231-0/+1
| | | | clipboard
* Move the widgets above the hpaned to their own boxFederico Mena Quintero2011-07-271-0/+1
| | | | | | | This way we can re-create the contents of that box easily without disrupting the rest of the file chooser. Signed-off-by: Federico Mena Quintero <federico@gnome.org>
* Centralize the setting of the pathbar's widgetsFederico Mena Quintero2011-07-011-2/+3
| | | | | | | | | | | | | | It used to be that every part of the file chooser's code would show/hide the widgets near the pathbar as needed. Now we have two central functions: path_bar_update() path_bar_set_mode() These take care of all the widget shuffling; setting the visibility of the pathbar, info bar, and Create Folder button as appropriate; setting the contents of the info bar, etc. - based on the current operation_mode and action. Signed-off-by: Federico Mena Quintero <federico@gnome.org>
* Warn the user when he still needs to type a filename or choose a folderFederico Mena Quintero2011-07-011-0/+2
| | | | Signed-off-by: Federico Mena Quintero <federico@gnome.org>