Cosimo Cecchi
7fa38fd6fb
Use g_clear_object()
2013-01-21 17:07:12 -05:00
Cosimo Cecchi
a97a5d3049
Don't unconditionally unref potentially NULL objects
...
We already have != NULL checks here, so fold the unrefs inside.
2013-01-21 17:06:42 -05:00
Cosimo Cecchi
0523b2f719
Avoid an useless ref/unref
...
The GMount will be kept alive by the async operation itself.
2013-01-21 17:00:50 -05:00
Cosimo Cecchi
ceb631b60f
Fix a FIXME about using symbolic icons
...
Use g_file_info_get_symbolic_icon() for it.
2013-01-21 16:57:27 -05:00
Cosimo Cecchi
2cf8970f91
Sync from Nautilus commit 463e8d1b1922474e4cf591a3029ea813804bd3e7
...
make sure to always notify when unmounting
2013-01-21 16:48:52 -05:00
Cosimo Cecchi
eea192adaa
Sync from Nautilus commit 480b1daf8814063f348d0f75082353a2f6a3eab3
...
cancel the hostnamed proxy creation on dispose
2013-01-21 16:38:23 -05:00
Federico Mena Quintero
26a5391caa
Add some missing docs for GtkPlacesSidebar
...
Signed-off-by: Federico Mena Quintero <federico@gnome.org>
2013-01-18 20:05:00 -06:00
Federico Mena Quintero
223a30d1b9
Add GtkPlacesSidebar to the gtk-doc machinery
2013-01-18 17:52:10 -06:00
Federico Mena Quintero
52d07c9148
Add toplevel docs for the sidebar
...
Signed-off-by: Federico Mena Quintero <federico@gnome.org>
2013-01-18 17:18:25 -06:00
Federico Mena Quintero
4cad0db95a
Add docstrings for the signals
...
Signed-off-by: Federico Mena Quintero <federico@gnome.org>
2013-01-11 17:55:36 -06:00
Federico Mena Quintero
306dcd3956
Add missing docstrings to public functions
2013-01-10 20:07:27 -06:00
Federico Mena Quintero
8a4e96f8cd
Oops, removed unused icon field
2013-01-10 19:37:24 -06:00
Federico Mena Quintero
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
Federico Mena Quintero
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
Federico Mena Quintero
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
Federico Mena Quintero
ee261203cb
Add a GtkTrashMonitor private API
...
This is analogous to NautilusTrashMonitor in that it just monitors trash:///
and is able to return the appropriate icon for the trash's current state.
Later we may want to move this utility object into GIO or something.
Signed-off-by: Federico Mena Quintero <federico@gnome.org>
2013-01-10 14:36:27 -06:00
Federico Mena Quintero
ff041608ec
Remove to-do items for Nautilus; they are done now
2013-01-08 16:34:15 -06:00
Federico Mena Quintero
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
Federico Mena Quintero
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
Federico Mena Quintero
d0d02357e0
Remove the Properties menu item
...
Signed-off-by: Federico Mena Quintero <federico@gnome.org>
2012-12-14 18:15:49 -06:00
Federico Mena Quintero
335ce0edc6
Remove the Empty Trash menu item
...
Signed-off-by: Federico Mena Quintero <federico@gnome.org>
2012-12-14 18:08:50 -06:00
Federico Mena Quintero
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
Federico Mena Quintero
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
Federico Mena Quintero
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
Federico Mena Quintero
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
Federico Mena Quintero
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
Federico Mena Quintero
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
Federico Mena Quintero
e4d5e66d44
Remove another to-do
2012-12-10 17:28:07 -06:00
Federico Mena Quintero
9124766d7b
Implement the Search keyboard shortcut
...
We still lack a button to activate Search, like in Nautilus, but that will come later.
And with this, the last REMOVE_FOR_PLACES_SIDEBAR is gone!
Signed-off-by: Federico Mena Quintero <federico@gnome.org>
2012-12-10 17:26:53 -06:00
Federico Mena Quintero
bd28aad834
Remove unused code
2012-12-10 17:16:36 -06:00
Federico Mena Quintero
c1c1823634
Go back to our machinery for Recent files instead of reading recent:/// as-is
...
Reading recent:/// as-is is probably fine for OPEN mode. But for SAVE mode, we want to present
a list of recent directories. So, we go back to our old machinery for now; in the future
we'll probably just use recent:/// and extract the list of recent directories from there.
This also fixes showing the Recent item as highlighted when the file chooser starts up.
Signed-off-by: Federico Mena Quintero <federico@gnome.org>
2012-12-10 17:14:12 -06:00
Federico Mena Quintero
016dd28a9f
Remove an obsolete function
2012-12-10 16:05:18 -06:00
Federico Mena Quintero
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
Federico Mena Quintero
8b0aea9f3d
Implement the Desktop keyboard shortcut
...
Signed-off-by: Federico Mena Quintero <federico@gnome.org>
2012-12-10 14:45:18 -06:00
Federico Mena Quintero
e6ba6e7e06
Implement the Home keyboard shortcut
...
Signed-off-by: Federico Mena Quintero <federico@gnome.org>
2012-12-10 14:23:06 -06:00
Federico Mena Quintero
f3beff7556
Implement the 'Add to bookmarks' command as before
...
Signed-off-by: Federico Mena Quintero <federico@gnome.org>
2012-12-10 14:18:00 -06:00
Federico Mena Quintero
0dca40e851
Remove an obsolete function
2012-12-10 14:09:40 -06:00
Federico Mena Quintero
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
Federico Mena Quintero
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
Federico Mena Quintero
19001bafaa
One less to-do
...
Signed-off-by: Federico Mena Quintero <federico@gnome.org>
2012-12-06 12:11:30 -06:00
Federico Mena Quintero
1681cf9b16
Remove the old shortcuts pane code from GtkFileChooserDefault
...
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>
2012-12-05 18:09:44 -06:00
Federico Mena Quintero
eecda25d64
Allow not setting a changed callback on GtkBookmarksManager
2012-12-05 18:03:54 -06:00
Federico Mena Quintero
489000ba9a
Remove obsolete comment
2012-12-05 17:44:49 -06:00
Federico Mena Quintero
35866c8ac6
Sync from Nautilus commit bde2536ee72672c4cd58af7cbb3cf42a42962c21
...
Use ellipsis character instead of dots
2012-12-05 17:44:14 -06:00
Federico Mena Quintero
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
Federico Mena Quintero
e7d6e788e3
Sync from nautilus commit 0177dd24a5f7f9f5302745a865eb970a35faa78c
2012-12-05 16:51:32 -06:00
Federico Mena Quintero
221095d287
Add list of pending things in GtkPlacesSidebar
2012-12-05 16:51:15 -06:00
Federico Mena Quintero
6fcf8a78ef
Remove comments on things that Nautilus no longer needs to do
2012-12-04 18:25:44 -06:00
Federico Mena Quintero
be492a206f
Use the right signal id
...
Signed-off-by: Federico Mena Quintero <federico@gnome.org>
2012-12-04 18:18:32 -06:00
Federico Mena Quintero
686814e0e6
Removed unneeded signal initiated-unmount
...
Signed-off-by: Federico Mena Quintero <federico@gnome.org>
2012-12-04 18:09:38 -06:00