summaryrefslogtreecommitdiff
path: root/src/nautilus-view-icon-controller.c
Commit message (Collapse)AuthorAgeFilesLines
* view-icon-controller: stop trying to reveal nothingErnestas Kulik2017-03-311-0/+5
| | | | | | | Currently, the flow view tries to reveal the selection even if it is empty. That can result in a crash if the selection is empty. https://bugzilla.gnome.org/show_bug.cgi?id=780732
* icon-controller: Implement reveal_selectionCarlos Soriano2017-03-301-0/+18
| | | | | | It was missing in the new GtkFlowBox based view. https://bugzilla.gnome.org/show_bug.cgi?id=780380
* files-view: Remove directory parameter from add_files signalCarlos Soriano2017-03-301-2/+1
| | | | | It's not longer necessary. This patch removes it and also fixes a compiler warning.
* view-icon-controller: Use event box for click handlingCarlos Soriano2017-03-101-3/+7
| | | | | | | | | | | | Either we expand the GtkFlowBox making the icons scarce around, or we need to handle ourselves the mouse events with an event box on top of it. Ideally GtkFlowBox would expand but have a property to pack the children. This will be possible in gtk4 when GtkContainer is an interface and GtkFlowBox implements it, but being able to have an overlay on top that will handle these clicks outside of the actual area and also the rubber band selection.
* view-icon-controller: Handle get_selection_for_file_transferCarlos Soriano2017-03-101-8/+4
| | | | | | | | We were not handling it properly, making trash and other operations to fail. This functions should be removed anyway. Probably if we don't need tree view expanding in a future.
* nautilus-view-icon: Rework selection and loadingCarlos Soriano2017-03-101-17/+47
| | | | Better performance, code design and fixes some issues.
* view-icon: add new zoom levelCarlos Soriano2017-02-151-1/+7
| | | | | With the flow box we can finally add more zoom levels. Add a new larger one so the user can view larger content.
* views: add flow box based viewCarlos Soriano2017-02-151-0/+876
After all the rework on the window slots, views, and splitting the desktop, we are finally able to add a flow box based view for Nautilus. The GtkFlowBox is still not performance enough to be added as the default view, not even as an alternative in the user preferences. However, since the work on this is one of the biggest for Nautilus and gtk+, the decision was to merge a prototype in order to open the development, testing and iteration of the code in order to make it good enough for, in a not so far away future, have it as the main view. The work merged is not finished, and is an experiment and prototype in more things than just the GtkFlowBox, we want to create a single shared model with a complete MVC pattern between all the views. This will need quite a few iterations to get it right, but once is done right, I hope it's going to be good enough as an example to any application that wants multiple types of views with the new widgets of gtk+. This patch adds the GtkFlowBox view to be optionally used under a gsetting called use-experimental-views, turned off by default.