summaryrefslogtreecommitdiff
path: root/gtk/gtkplacessidebar.h
Commit message (Collapse)AuthorAgeFilesLines
* placessidebar: add Other Locations itemGeorges Basile Stavracas Neto2015-07-151-2/+8
| | | | | | | | | | | | | | | | | | | | Places sidebar is a widget that enabled the user to select XDG directories, bookmarks and mounted network locations, as well as manages permanent and removable devices. The new design that aims to look less clutered makes the sidebar display only removable devices, as well as mounted networks, bookmarks and XDG directories, and delegates the management of permanent devices such as hard drive partitions to GtkPlacesView, a newly introduced widget for this specific purpose. To delegate it, add an "Other Locations..." item to notify when the permanent devices manager is required. Besides that, don't show these fixes devices on the sidebar itself, as they are not supposed to be handled by the sidebar anymore. https://bugzilla.gnome.org/show_bug.cgi?id=752034
* GtkPlacesSidebar: Allow hiding TrashMatthias Clasen2015-07-041-0/+5
| | | | We will use this in the filechooser in save mode.
* gtkplacessidebar: add API for show drop hintsCarlos Soriano2015-06-161-0/+4
| | | | | | | | | | | | | | | | | | | It is convenient to allow applications to show all the drop targets at once. This improves the user experience with drag an drop. The new API allows the application to set the gtkplacessidebar in a mode where invalid drop targets are insensitive and it adds a "new bookmark" row. This mode is intended to be set when the application is aware of a dnd operation and needs to be stopped kwhen the application is aware that dnd operation was cancelled or ended in a different part than gtkplacesisdebar. The context parameter is unused in this patch, but will be used in next patches when the sidebar will use a GtkListBox. The reason of being unused now is just convenience. https://bugzilla.gnome.org/show_bug.cgi?id=747793
* places sidebar: Make 'recent' work on other platformsMatthias Clasen2015-06-061-0/+6
| | | | | | | | | | | | | Since nautilus merge, we were not showing 'Recent' in the sidebar if GIO did not support the recent: scheme. But the file chooser can show recent files independent of gvfs - it loads the recent files manually. This is relevant on Windows and OS X, where gvfs is typically not used. This commit adds a show-recent property which can be used to override the recent: scheme check. We use it in the file chooser. https://bugzilla.gnome.org/show_bug.cgi?id=750068
* Fix some oversights with header guardsMatthias Clasen2014-12-081-3/+4
| | | | Pointed out in https://bugzilla.gnome.org/show_bug.cgi?id=741254
* places-sidebar: add optional enter location placeWilliam Jon McCann2014-04-221-0/+5
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=722211
* docs: use proper apostropheWilliam Jon McCann2014-02-071-1/+1
| | | | https://wiki.gnome.org/Design/OS/Typography
* GtkPlacesSidebar: Add local-onlyMatthias Clasen2013-11-091-0/+7
| | | | | | | This is necessary to implement the filechooser property of the same name. https://bugzilla.gnome.org/show_bug.cgi?id=711574
* Add annotations to gtk headersMatthias Clasen2013-05-051-0/+14
| | | | Add annotations to all exported functions in GTK+ headers.
* Make gtkplacessidebar.h look like a gtk headerMatthias Clasen2013-05-011-14/+21
|
* Sync from nautilus commit 500770e8de18b07392ffa4435372525d5d03c688Federico Mena Quintero2013-04-201-0/+3
| | | | Add a Connect to Server menu item, a show-connect-to-server property, and a show-connect-to-server signal.
* Remove the accept-uri-drops propertyFederico Mena Quintero2013-01-291-3/+0
| | | | Signed-off-by: Federico Mena Quintero <federico@gnome.org>
* Add GObject properties and C gettersCosimo Cecchi2013-01-211-4/+4
|
* Add some missing docs for GtkPlacesSidebarFederico Mena Quintero2013-01-181-0/+27
| | | | Signed-off-by: Federico Mena Quintero <federico@gnome.org>
* Make the set_location()/get_location() API consistentFederico Mena Quintero2013-01-101-2/+2
| | | | | | | | | We used to have set_current_location() and get_selected_location(), with confusing semantics. Now they are symmetric, with the exception that if set_location() is called with a location that is not shown in the sidebar, then it will both clear the selection in the list and make get_selection() return NULL. Signed-off-by: Federico Mena Quintero <federico@gnome.org>
* New API, gtk_places_sidebar_set_open_flags()Federico Mena Quintero2013-01-101-4/+6
| | | | | | | This lets us handle the 'Open in new tab' and 'Open in new window' menu items on our own, and allows callers to have less code to deal with each mode. Signed-off-by: Federico Mena Quintero <federico@gnome.org>
* Use GtkTrashMonitor instead of an API to set the trash stateFederico Mena Quintero2013-01-101-3/+0
| | | | | | | This lets us remove two entry points, gtk_places_sidebar_set_show_trash(), and gtk_places_sidebar_set_trash_is_full(). Signed-off-by: Federico Mena Quintero <federico@gnome.org>
* New public function to get the selected location from menu item callbacksFederico Mena Quintero2012-12-171-0/+2
| | | | Signed-off-by: Federico Mena Quintero <federico@gnome.org>
* Remove the Properties menu itemFederico Mena Quintero2012-12-141-2/+0
| | | | Signed-off-by: Federico Mena Quintero <federico@gnome.org>
* Remove the multiple-tab/windows-supported APIsFederico Mena Quintero2012-12-141-4/+0
| | | | | | We'll have the caller do these instead via the populate-popup signal. Signed-off-by: Federico Mena Quintero <federico@gnome.org>
* Remove gtk_places_sidebar_set_show_cwd(), implement that in the file chooserFederico Mena Quintero2012-12-111-2/+0
| | | | | | This removes more idiosyncratic API from the sidebar. Signed-off-by: Federico Mena Quintero <federico@gnome.org>
* Remove the GError from the shortcut-related functionsFederico Mena Quintero2012-12-111-2/+2
| | | | | | | See https://bugzilla.gnome.org/show_bug.cgi?id=650363#c8 and the next comment; this argument just makes the API harder to use without real benefit. Signed-off-by: Federico Mena Quintero <federico@gnome.org>
* Implement the Alt-number quick bookmark shortcutsFederico Mena Quintero2012-12-101-0/+2
| | | | Signed-off-by: Federico Mena Quintero <federico@gnome.org>
* New machinery to add application-specific shortcutsFederico Mena Quintero2012-12-071-0/+4
| | | | | | The file chooser needs them for gtk_file_chooser_add_shortcut_folder() and friends. Signed-off-by: Federico Mena Quintero <federico@gnome.org>
* Oops, forgot to commit this header file.Federico Mena Quintero2012-12-041-1/+1
| | | | Signed-off-by: Federico Mena Quintero <federico@gnome.org>
* New API to set whether URI drops are acceptedFederico Mena Quintero2012-12-041-0/+2
| | | | | | | The file chooser will not accept dropping URIs in a shortcut item. However, Nautilus will, to perform normal DnD for files. Signed-off-by: Federico Mena Quintero <federico@gnome.org>
* Turn gtk_places_sidebar_set_current_uri() into _set_current_location()Federico Mena Quintero2012-11-241-1/+1
| | | | | | | To be consistent with the ::location-selected signal, which emits a GFile, we now also use a GFile instead of a string URI in the inbound API. Signed-off-by: Federico Mena Quintero <federico@gnome.org>
* New way to show in the sidebarFederico Mena Quintero2012-11-201-0/+2
| | | | Signed-off-by: Federico Mena Quintero <federico@gnome.org>
* I guess I can call myself a coauthor of this nowFederico Mena Quintero2012-09-111-1/+2
| | | | Signed-off-by: Federico Mena Quintero <federico@gnome.org>
* Add machinery for Nautilus to set up the trash stateFederico Mena Quintero2012-09-111-0/+1
| | | | | | | | We add a method to say whether the trash is full/empty (to use the appropriate icon), and a signal that the sidebar can use to request that the trash be emptied when the user selects 'Empty trash' from the context menu. Signed-off-by: Federico Mena Quintero <federico@gnome.org>
* Add set_show_properties and set_show_trash APIsFederico Mena Quintero2012-09-111-0/+4
| | | | | | | Currently they default to false. This also fixes warnings with uninitialized widgets in bookmarks_check_popup_sensitivity(). Signed-off-by: Federico Mena Quintero <federico@gnome.org>
* Fix compilationFederico Mena Quintero2012-09-031-0/+2
|
* Function to set whether to show the Desktop itemFederico Mena Quintero2012-09-031-0/+2
| | | | | | | It sucks to have this as an app-settable option. Maybe we should make this a standard GSetting thing and be done with it. Signed-off-by: Federico Mena Quintero <federico@gnome.org>
* Add functions to say whether multiple tabs/windows are supportedFederico Mena Quintero2012-09-031-1/+6
| | | | | | | | | | The file chooser will leave these off by default; file managers like Nautilus will turn them on. These control whether the places sidebar shows 'open in new tab' and similar items in its context menu. Signed-off-by: Federico Mena Quintero <federico@gnome.org>
* Add a GtkPlacesOpenMode enum to say how a shortcut should be openedFederico Mena Quintero2012-09-031-0/+6
| | | | | | | | Nautilus lets you open things in the same tab, in a new tab, or in a new window. We will expose these semantics through an enum, as part of an 'open' signal. Signed-off-by: Federico Mena Quintero <federico@gnome.org>
* Add gtk_places_sidebar_set_current_uri()Federico Mena Quintero2012-09-031-1/+3
| | | | | | | And remove the code that updated the current URI automatically based on a NautilusWindow. Signed-off-by: Federico Mena Quintero <federico@gnome.org>
* Export GtkPlacesSidebar and the Class types, for subclassingFederico Mena Quintero2012-09-031-0/+3
| | | | Signed-off-by: Federico Mena Quintero <federico@gnome.org>
* Replace 'NautilusPlacesSidebar' with 'GtkPlacesSidebar'Federico Mena Quintero2012-09-031-21/+18
| | | | | | Function names are of course of the form gtk_places_sidebar_*() now. Signed-off-by: Federico Mena Quintero <federico@gnome.org>
* Copy nautilus-places-sidebar.[ch] as gtkplacessidebar.[ch]Federico Mena Quintero2012-09-031-0/+50