~niclasl/granite/fix-1034835

Viewing all changes in revision 667.

  • Committer: Tarmac
  • Author(s): Niclas Lockner
  • Date: 2013-12-23 20:20:32 UTC
  • mfrom: (645.1.11 granite-rewrite)
  • Revision ID: tarmac-20131223202032-1gdcgp1dlcaq18fb
Implemented a new DN API which will introduce better functionality in terms of tab dragging, tab moving and tab organization, but also bring ABI breaks to apps written against the old API.

Replaced the existing tab_added/tab_removed with signals that better match the functionality of Gtk.Notebook's page_added and page_removed. The signals new_tab_requested and close_tab_requested are now used to add and close tabs.

Tab objects are now always created outside DynamicNotebook, i.e. in the application that uses the notebook. 

Splitted the tab_moved signal into the signals tab_reordered and tab_moved.

Implemented a settable upper limit of how many tabs to save when the restore tabs feature is enabled. The Granite Demo is extended to demonstrate this feature.

Fixes lp:1066578 lp:1170414 lp:1181657 lp:1198456 lp:1198513 and lp:1226058

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: