1 | /* gtkplacesviewrow.h |
2 | * |
3 | * Copyright (C) 2015 Georges Basile Stavracas Neto <georges.stavracas@gmail.com> |
4 | * |
5 | * This program is free software: you can redistribute it and/or modify |
6 | * it under the terms of the GNU Lesser General Public License as published by |
7 | * the Free Software Foundation, either version 2.1 of the License, or |
8 | * (at your option) any later version. |
9 | * |
10 | * This program is distributed in the hope that it will be useful, |
11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
13 | * GNU Lesser General Public License for more details. |
14 | * |
15 | * You should have received a copy of the GNU Lesser General Public License |
16 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
17 | */ |
18 | |
19 | #ifndef GTK_PLACES_VIEW_ROW_H |
20 | #define GTK_PLACES_VIEW_ROW_H |
21 | |
22 | #if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION) |
23 | #error "Only <gtk/gtk.h> can be included directly." |
24 | #endif |
25 | |
26 | #include "gtkwidget.h" |
27 | #include "gtksizegroup.h" |
28 | #include "gtklistbox.h" |
29 | |
30 | G_BEGIN_DECLS |
31 | |
32 | #define GTK_TYPE_PLACES_VIEW_ROW (gtk_places_view_row_get_type()) |
33 | |
34 | G_DECLARE_FINAL_TYPE (GtkPlacesViewRow, gtk_places_view_row, GTK, PLACES_VIEW_ROW, GtkListBoxRow) |
35 | |
36 | GtkWidget* gtk_places_view_row_new (GVolume *volume, |
37 | GMount *mount); |
38 | |
39 | GtkWidget* gtk_places_view_row_get_eject_button (GtkPlacesViewRow *row); |
40 | |
41 | GMount* gtk_places_view_row_get_mount (GtkPlacesViewRow *row); |
42 | |
43 | GVolume* gtk_places_view_row_get_volume (GtkPlacesViewRow *row); |
44 | |
45 | GFile* gtk_places_view_row_get_file (GtkPlacesViewRow *row); |
46 | |
47 | void gtk_places_view_row_set_busy (GtkPlacesViewRow *row, |
48 | gboolean is_busy); |
49 | |
50 | gboolean gtk_places_view_row_get_is_network (GtkPlacesViewRow *row); |
51 | |
52 | void gtk_places_view_row_set_is_network (GtkPlacesViewRow *row, |
53 | gboolean is_network); |
54 | |
55 | void gtk_places_view_row_set_path_size_group (GtkPlacesViewRow *row, |
56 | GtkSizeGroup *group); |
57 | |
58 | void gtk_places_view_row_set_space_size_group (GtkPlacesViewRow *row, |
59 | GtkSizeGroup *group); |
60 | |
61 | G_END_DECLS |
62 | |
63 | #endif /* GTK_PLACES_VIEW_ROW_H */ |
64 | |