summaryrefslogtreecommitdiff
path: root/src/nautilus-places-view.c
diff options
context:
space:
mode:
authorCarlos Soriano <csoriano@gnome.org>2018-04-05 23:05:48 +0200
committerCarlos Soriano <csoriano@gnome.org>2018-05-03 22:33:44 +0200
commit1c03da2b897eb3aac1f4206b44ab6f6f08b325b9 (patch)
tree6d53e6a7925b2e976d2bcf4b70ea033d802e1542 /src/nautilus-places-view.c
parent68d6a01c9258015c9d5e5c0edc5413b36e739ea0 (diff)
downloadnautilus-1c03da2b897eb3aac1f4206b44ab6f6f08b325b9.tar.gz
views: Proxy the view main values and states
So they can be accessed easily from outside the view or window-slot. This is useful for preventing layer violation, as we had in the past.
Diffstat (limited to 'src/nautilus-places-view.c')
-rw-r--r--src/nautilus-places-view.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/nautilus-places-view.c b/src/nautilus-places-view.c
index 981d2de15..80134c9e3 100644
--- a/src/nautilus-places-view.c
+++ b/src/nautilus-places-view.c
@@ -48,8 +48,9 @@ enum
PROP_0,
PROP_LOCATION,
PROP_SEARCH_QUERY,
- PROP_IS_LOADING,
- PROP_IS_SEARCHING,
+ PROP_LOADING,
+ PROP_SEARCHING,
+ PROP_SELECTION,
LAST_PROP
};
@@ -108,7 +109,7 @@ open_location_cb (NautilusPlacesView *view,
static void
loading_cb (NautilusView *view)
{
- g_object_notify (G_OBJECT (view), "is-loading");
+ g_object_notify (G_OBJECT (view), "loading");
}
static void
@@ -345,8 +346,8 @@ nautilus_places_view_class_init (NautilusPlacesViewClass *klass)
object_class->get_property = nautilus_places_view_get_property;
object_class->set_property = nautilus_places_view_set_property;
- g_object_class_override_property (object_class, PROP_IS_LOADING, "is-loading");
- g_object_class_override_property (object_class, PROP_IS_SEARCHING, "is-searching");
+ g_object_class_override_property (object_class, PROP_LOADING, "loading");
+ g_object_class_override_property (object_class, PROP_SEARCHING, "searching");
g_object_class_override_property (object_class, PROP_LOCATION, "location");
g_object_class_override_property (object_class, PROP_SEARCH_QUERY, "search-query");
}