diff options
author | Georges Basile Stavracas Neto <georges.stavracas@gmail.com> | 2016-03-02 00:55:42 -0300 |
---|---|---|
committer | Georges Basile Stavracas Neto <georges.stavracas@gmail.com> | 2016-11-27 16:34:06 +0100 |
commit | 2686ff876bc8b1d66923a54d19847bf0dc7f6e71 (patch) | |
tree | 35bcc28491de363565ab25d847e3d01d41618f38 /src/nautilus-view.c | |
parent | 3759585272c578a3d324238deb1eb9362465796e (diff) | |
download | nautilus-2686ff876bc8b1d66923a54d19847bf0dc7f6e71.tar.gz |
view: add NautilusView::selection property
Currently we don't have any way to track selection
changes, although NautilusView exposes selection. This
is an inconsistency in code, and should be avoided.
Fix that by adding a NautilusView::selection property
and deprecating the NautilusFilesView::selection-changed
signal.
Diffstat (limited to 'src/nautilus-view.c')
-rw-r--r-- | src/nautilus-view.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/nautilus-view.c b/src/nautilus-view.c index 7b3a3c973..d14682d6c 100644 --- a/src/nautilus-view.c +++ b/src/nautilus-view.c @@ -72,6 +72,17 @@ nautilus_view_default_init (NautilusViewInterface *iface) "The search query being performed on the view", NAUTILUS_TYPE_QUERY, G_PARAM_READWRITE)); + + /** + * NautilusView::selection: + * + * The current selection of the view. + */ + g_object_interface_install_property (iface, + g_param_spec_pointer ("selection", + "Selection of the view", + "The selection of the view", + G_PARAM_READWRITE)); } /** |