placesview: add view for fixed drives and networks
Places sidebar shows XDG directories, mounted and unmounted devices,
connected networks, bookmarks and actions like 'Connect to server'
and 'Insert location', which causes the sidebar to grow very quickly
and look cluttered. Because of that, new mockups for the sidebar try
to simplify it.
To make the sidebar simpler, the new mockups propose that it should
only handle connected networks and removable devices such as flash
drives and USB devices, and delegates other devices for external
widgets through the 'Other Locations' item.
To handle fixed devices and manage network connections, add a new
widget named GtkPlacesView, based on Nautilus mockups to keep
consistency between GNOME file management tools - in this case,
between Nautilus and the bundled Gtk's file chooser.
https://bugzilla.gnome.org/show_bug.cgi?id=752034
2015-07-14 17:45:37 +00:00
|
|
|
/* gtkplacesviewrow.h
|
|
|
|
*
|
|
|
|
* Copyright (C) 2015 Georges Basile Stavracas Neto <georges.stavracas@gmail.com>
|
|
|
|
*
|
|
|
|
* This program is free software: you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation, either version 3 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef GTK_PLACES_VIEW_ROW_H
|
|
|
|
#define GTK_PLACES_VIEW_ROW_H
|
|
|
|
|
|
|
|
#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION)
|
|
|
|
#error "Only <gtk/gtk.h> can be included directly."
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#include "gtkwidget.h"
|
|
|
|
#include "gtklistbox.h"
|
|
|
|
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
|
|
|
|
#define GTK_TYPE_PLACES_VIEW_ROW (gtk_places_view_row_get_type())
|
|
|
|
|
|
|
|
G_DECLARE_FINAL_TYPE (GtkPlacesViewRow, gtk_places_view_row, GTK, PLACES_VIEW_ROW, GtkListBoxRow)
|
|
|
|
|
|
|
|
GtkWidget* gtk_places_view_row_new (GVolume *volume,
|
|
|
|
GMount *mount);
|
|
|
|
|
|
|
|
GtkWidget* gtk_places_view_row_get_eject_button (GtkPlacesViewRow *row);
|
|
|
|
|
|
|
|
GtkWidget* gtk_places_view_row_get_event_box (GtkPlacesViewRow *row);
|
|
|
|
|
|
|
|
GMount* gtk_places_view_row_get_mount (GtkPlacesViewRow *row);
|
|
|
|
|
|
|
|
GVolume* gtk_places_view_row_get_volume (GtkPlacesViewRow *row);
|
|
|
|
|
2015-07-27 19:52:37 +00:00
|
|
|
GFile* gtk_places_view_row_get_file (GtkPlacesViewRow *row);
|
|
|
|
|
placesview: add view for fixed drives and networks
Places sidebar shows XDG directories, mounted and unmounted devices,
connected networks, bookmarks and actions like 'Connect to server'
and 'Insert location', which causes the sidebar to grow very quickly
and look cluttered. Because of that, new mockups for the sidebar try
to simplify it.
To make the sidebar simpler, the new mockups propose that it should
only handle connected networks and removable devices such as flash
drives and USB devices, and delegates other devices for external
widgets through the 'Other Locations' item.
To handle fixed devices and manage network connections, add a new
widget named GtkPlacesView, based on Nautilus mockups to keep
consistency between GNOME file management tools - in this case,
between Nautilus and the bundled Gtk's file chooser.
https://bugzilla.gnome.org/show_bug.cgi?id=752034
2015-07-14 17:45:37 +00:00
|
|
|
void gtk_places_view_row_set_busy (GtkPlacesViewRow *row,
|
|
|
|
gboolean is_busy);
|
|
|
|
|
2015-08-10 18:35:56 +00:00
|
|
|
gboolean gtk_places_view_row_get_is_network (GtkPlacesViewRow *row);
|
|
|
|
|
|
|
|
void gtk_places_view_row_set_is_network (GtkPlacesViewRow *row,
|
|
|
|
gboolean is_network);
|
|
|
|
|
placesview: add view for fixed drives and networks
Places sidebar shows XDG directories, mounted and unmounted devices,
connected networks, bookmarks and actions like 'Connect to server'
and 'Insert location', which causes the sidebar to grow very quickly
and look cluttered. Because of that, new mockups for the sidebar try
to simplify it.
To make the sidebar simpler, the new mockups propose that it should
only handle connected networks and removable devices such as flash
drives and USB devices, and delegates other devices for external
widgets through the 'Other Locations' item.
To handle fixed devices and manage network connections, add a new
widget named GtkPlacesView, based on Nautilus mockups to keep
consistency between GNOME file management tools - in this case,
between Nautilus and the bundled Gtk's file chooser.
https://bugzilla.gnome.org/show_bug.cgi?id=752034
2015-07-14 17:45:37 +00:00
|
|
|
G_END_DECLS
|
|
|
|
|
|
|
|
#endif /* GTK_PLACES_VIEW_ROW_H */
|