eea192adaa
Sync from Nautilus commit 480b1daf8814063f348d0f75082353a2f6a3eab3
...
cancel the hostnamed proxy creation on dispose
2013-01-21 16:38:23 -05:00
26a5391caa
Add some missing docs for GtkPlacesSidebar
...
Signed-off-by: Federico Mena Quintero <federico@gnome.org >
2013-01-18 20:05:00 -06:00
52d07c9148
Add toplevel docs for the sidebar
...
Signed-off-by: Federico Mena Quintero <federico@gnome.org >
2013-01-18 17:18:25 -06:00
4cad0db95a
Add docstrings for the signals
...
Signed-off-by: Federico Mena Quintero <federico@gnome.org >
2013-01-11 17:55:36 -06:00
306dcd3956
Add missing docstrings to public functions
2013-01-10 20:07:27 -06:00
da2e081786
Make the set_location()/get_location() API consistent
...
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 >
2013-01-10 18:12:15 -06:00
0b4183234b
New API, gtk_places_sidebar_set_open_flags()
...
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 >
2013-01-10 16:19:03 -06:00
439a770efa
Use GtkTrashMonitor instead of an API to set the trash state
...
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 >
2013-01-10 15:06:01 -06:00
ff041608ec
Remove to-do items for Nautilus; they are done now
2013-01-08 16:34:15 -06:00
8dd233dfac
New public function to get the selected location from menu item callbacks
...
Signed-off-by: Federico Mena Quintero <federico@gnome.org >
2012-12-17 20:05:23 -06:00
bfa1f4ac0b
Emit the populate-popup signal so the caller can spice things up
...
Also, we factor out the process of getting the selected item's info out of
the liststore.
Signed-off-by: Federico Mena Quintero <federico@gnome.org >
2012-12-14 21:44:50 -06:00
d0d02357e0
Remove the Properties menu item
...
Signed-off-by: Federico Mena Quintero <federico@gnome.org >
2012-12-14 18:15:49 -06:00
335ce0edc6
Remove the Empty Trash menu item
...
Signed-off-by: Federico Mena Quintero <federico@gnome.org >
2012-12-14 18:08:50 -06:00
55927f273d
Remove the multiple-tab/windows-supported APIs
...
We'll have the caller do these instead via the populate-popup signal.
Signed-off-by: Federico Mena Quintero <federico@gnome.org >
2012-12-14 18:04:30 -06:00
fc01ce0756
Rebuild the popup menu every time it is used
...
We'll need to rebuild it every time for the populate-popup signal.
Signed-off-by: Federico Mena Quintero <federico@gnome.org >
2012-12-14 17:56:53 -06:00
e00498fcd8
New signal populate-popup
...
Instead of conditionally creating contextual menu items like 'Show file properties',
we'll instead let the caller populate the popup menu, as is done for GtkEntry.
Signed-off-by: Federico Mena Quintero <federico@gnome.org >
2012-12-14 11:57:49 -06:00
42d239f6d5
Remove gtk_places_sidebar_set_show_cwd(), implement that in the file chooser
...
This removes more idiosyncratic API from the sidebar.
Signed-off-by: Federico Mena Quintero <federico@gnome.org >
2012-12-11 15:52:17 -06:00
c4f40a92ca
Remove the GError from the shortcut-related functions
...
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 >
2012-12-11 15:29:11 -06:00
72ce506cfc
Rename signal location-selected to open-location
...
Signed-off-by: Federico Mena Quintero <federico@gnome.org >
2012-12-11 12:09:13 -06:00
e4d5e66d44
Remove another to-do
2012-12-10 17:28:07 -06:00
c26293eacd
Implement the Alt-number quick bookmark shortcuts
...
Signed-off-by: Federico Mena Quintero <federico@gnome.org >
2012-12-10 16:00:42 -06:00
976672ad4b
Implement the application-side shortcuts in GtkFileChooserDefault
...
Signed-off-by: Federico Mena Quintero <federico@gnome.org >
2012-12-10 14:06:07 -06:00
e4c70bb691
New machinery to add application-specific shortcuts
...
The file chooser needs them for gtk_file_chooser_add_shortcut_folder() and friends.
Signed-off-by: Federico Mena Quintero <federico@gnome.org >
2012-12-07 13:42:39 -06:00
19001bafaa
One less to-do
...
Signed-off-by: Federico Mena Quintero <federico@gnome.org >
2012-12-06 12:11:30 -06:00
489000ba9a
Remove obsolete comment
2012-12-05 17:44:49 -06:00
35866c8ac6
Sync from Nautilus commit bde2536ee72672c4cd58af7cbb3cf42a42962c21
...
Use ellipsis character instead of dots
2012-12-05 17:44:14 -06:00
1bd5eeabb2
Sync from nautilus commit b2e8339d9f49770db0f6a523c8bf77b11d7eace3
...
Simplify setting eject icon
Signed-off-by: Federico Mena Quintero <federico@gnome.org >
2012-12-05 16:56:15 -06:00
e7d6e788e3
Sync from nautilus commit 0177dd24a5f7f9f5302745a865eb970a35faa78c
2012-12-05 16:51:32 -06:00
221095d287
Add list of pending things in GtkPlacesSidebar
2012-12-05 16:51:15 -06:00
6fcf8a78ef
Remove comments on things that Nautilus no longer needs to do
2012-12-04 18:25:44 -06:00
be492a206f
Use the right signal id
...
Signed-off-by: Federico Mena Quintero <federico@gnome.org >
2012-12-04 18:18:32 -06:00
686814e0e6
Removed unneeded signal initiated-unmount
...
Signed-off-by: Federico Mena Quintero <federico@gnome.org >
2012-12-04 18:09:38 -06:00
b22e553095
Oops, signals returning an int must be G_SIGNAL_RUN_LAST
...
Signed-off-by: Federico Mena Quintero <federico@gnome.org >
2012-12-04 17:37:45 -06:00
56331a4c43
Port code to add a bookmark for a volume
...
Signed-off-by: Federico Mena Quintero <federico@gnome.org >
2012-12-04 16:16:49 -06:00
10b22e0ee2
New API to set whether URI drops are accepted
...
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 >
2012-12-04 12:57:48 -06:00
4fe86f1d10
Emit drag-perform-drop when we need the caller to do the drop action
...
Signed-off-by: Federico Mena Quintero <federico@gnome.org >
2012-12-04 12:52:44 -06:00
221ea9d4c5
New signal drag-perform-drop
...
The caller is supposed to take action with the specified URIs.
Signed-off-by: Federico Mena Quintero <federico@gnome.org >
2012-12-04 12:44:46 -06:00
f46b26d245
New signal drag-action-ask
...
We'll ask the caller to present a popup menu (or whatever) with the possible drag actions.
Signed-off-by: Federico Mena Quintero <federico@gnome.org >
2012-12-03 18:15:41 -06:00
a5184c2eb1
Emit drag-action-requested and feed the result to gdk_drag_status()
...
Signed-off-by: Federico Mena Quintero <federico@gnome.org >
2012-12-03 17:37:11 -06:00
0a2f9b7313
New signal drag-action-requested
...
We'll use this signal to ask the caller about what drag action to indicate
when something is being hovered on an item in the places sidebar.
Signed-off-by: Federico Mena Quintero <federico@gnome.org >
2012-12-03 17:32:10 -06:00
08334f5258
Free URI lists
...
Signed-off-by: Federico Mena Quintero <federico@gnome.org >
2012-12-03 16:45:25 -06:00
0a0eee816a
Rename function for clarity
...
build_selection_list() -> build_uri_list()
Signed-off-by: Federico Mena Quintero <federico@gnome.org >
2012-12-03 16:41:02 -06:00
e09b568b68
Remove the menu items to select recent-files or CWD
...
Per the gtk-devel meeting on 2012/11/29, we'll not have a UI in the file chooser dialog
to select between those modes. Instead, we'll show that key in gtweaktool.
Signed-off-by: Federico Mena Quintero <federico@gnome.org >
2012-11-30 11:08:08 -06:00
c16654bb75
Ahem, read radio menu items like I knew how to do it
...
Signed-off-by: Federico Mena Quintero <federico@gnome.org >
2012-11-26 20:43:23 -06:00
bd9532d23f
Restore the originally-selected location when dynamically updating the bookmarks
...
Signed-off-by: Federico Mena Quintero <federico@gnome.org >
2012-11-24 11:18:23 -06:00
637bd8f2b8
Oops, actually update the internal location of the places sidebar prior to notifying the caller
...
This is so that the sidebar will already know the URI of the location it is showing. When
the caller asks the sidebar to change back to the same location, the call will be idempotent.
Signed-off-by: Federico Mena Quintero <federico@gnome.org >
2012-11-24 10:59:48 -06:00
e0b30d013e
Turn gtk_places_sidebar_set_current_uri() into _set_current_location()
...
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 >
2012-11-24 10:41:11 -06:00
791bd3cec2
Update the widgets until all of them have been created
...
Signed-off-by: Federico Mena Quintero <federico@gnome.org >
2012-11-21 13:16:44 -06:00
fe6814061d
Add menu items to the places sidebar to configure the startup mode
...
Signed-off-by: Federico Mena Quintero <federico@gnome.org >
2012-11-21 13:16:43 -06:00
ec9bdc6397
New way to show in the sidebar
...
Signed-off-by: Federico Mena Quintero <federico@gnome.org >
2012-11-20 20:04:20 -06:00