Copy nautilus-places-sidebar.[ch] as gtkplacessidebar.[ch]
Replace 'NautilusPlacesSidebar' with 'GtkPlacesSidebar'

Function names are of course of the form gtk_places_sidebar_*() now.

Signed-off-by: Federico Mena Quintero <federico@gnome.org>
Remove Nautilus includes

Signed-off-by: Federico Mena Quintero <federico@gnome.org>
Export GtkPlacesSidebar and the Class types, for subclassing

Signed-off-by: Federico Mena Quintero <federico@gnome.org>
Remove unused structs

Signed-off-by: Federico Mena Quintero <federico@gnome.org>
Update the top comment in gtkplacessidebar.c

Signed-off-by: Federico Mena Quintero <federico@gnome.org>
Don't take a NautilusWindow argument in gtk_places_sidebar_new()

We will move the window-related initialization to ::map() or to a constructor.

Signed-off-by: Federico Mena Quintero <federico@gnome.org>
Connect to the volume monitor at the time of its creation

Signed-off-by: Federico Mena Quintero <federico@gnome.org>
Add gtk_places_sidebar_set_current_uri()

And remove the code that updated the current URI automatically based
on a NautilusWindow.

Signed-off-by: Federico Mena Quintero <federico@gnome.org>
Remove the 'nautilus' prefix from some constants

Signed-off-by: Federico Mena Quintero <federico@gnome.org>
Add a GtkPlacesOpenMode enum to say how a shortcut should be opened

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>
New 'location-selected' signal

Instead of directly calling the Nautilus machinery to open locations
in tabs or windows, we emit a signal which the caller must handle.

Signed-off-by: Federico Mena Quintero <federico@gnome.org>
Rename NautilusShortcutsModelFilter to ShortcutsModelFilter

It's unfortunate that we need a filter model to do the DnD stuff...

Signed-off-by: Federico Mena Quintero <federico@gnome.org>
Split out a GtkBookmarksManager from gtkfilesystem.[ch]

We had the bookmarks machinery in GtkFileSystem for historical reasons.
Now, we'll keep this separately.  This will allow us to make the
bookmarks machinery public if needed in the future.

Signed-off-by: Federico Mena Quintero <federico@gnome.org>

Conflicts:
	gtk/Makefile.am
Make GtkFileChooserDefault use GtkBookmarksManager

It no longer uses GtkFileSystem to deal with bookmarks.

Signed-off-by: Federico Mena Quintero <federico@gnome.org>
Make gtk_places_sidebar_set_current_uri() handle NULL URIs to unselect all

Signed-off-by: Federico Mena Quintero <federico@gnome.org>
Make GtkFileChooserButton use GtkBookmarksManager

It's unfortunate that now we have two instances of the bookmarks manager
for each GtkFileChooserButton; one for the button itself and one for the
underlying GtkFileChooserDefault.  We may refactor that in the future.

Signed-off-by: Federico Mena Quintero <federico@gnome.org>
Remove the bookmarking bits from GtkFileSystem

Signed-off-by: Federico Mena Quintero <federico@gnome.org>

Conflicts:
	gtk/gtkfilesystem.c
Read the legacy bookmarks file

Signed-off-by: Federico Mena Quintero <federico@gnome.org>
Cancel and disconnect from the bookmarks monitor when done

Signed-off-by: Federico Mena Quintero <federico@gnome.org>