sugarlabs / sugar

Sugar GTK shell
GNU General Public License v3.0
263 stars 243 forks source link

Project view fixes #711

Closed samdroid-apps closed 8 years ago

samdroid-apps commented 8 years ago

commit fdbb93ca783f08cbc7653a087655f29f29f5cb8c

Empty new project entry after creating new project

Currently, there is no direct feedback that the creation has succeeded, so the user might create the project too many times.

commit 907ef0fa2aadf47b73e6231f8627081205ae9a5e

Fix projects list view add new bar hiding

Steps to reproduce:

  1. Go to the projects list view
  2. Go to the details view for a project
  3. Click the back button
  4. Notice that the "add new project" bar has disappeared

    commit bbe62f09c1304722ce66fc6dc380e7e25e4656ed

    Move AddNewBar logic for activation into the class

    Previously, it was copied throughout the users of the class code.

    commit c4341d864ac1f5e6635b4594905f1a01df0b3023

    Only activate add new bar with title typed in

    Currently, the add new bar will always activate if the user presses enter, even if there is no title typed in yet. This makes it easy to accidentally press enter twice and create 2 new projects.

    commit 8be8b2a63d28930cf756de1d5cd53bd766565c52

    Bind project list view to auto refresh

    The _main_view_active boolean was refactored into an enum to better accommodate how there is 3 views now (main, details and project).

    Multi-selection was disabled in the project view. It did not work properly before this patch, due to the show_main_view call.

    The show_main_view call from __selection_changed_cb was removed, as this resulted in the main view being re-shown every refresh. This call did not appear to serve a purpose - selection changed would only be called when the main view was focused (prior to adding the project view).