~niels-avonds/granite/timepicker

« back to all changes in this revision

Viewing changes to demo/main.vala

  • Committer: xapantu
  • Date: 2012-03-11 17:33:51 UTC
  • mfrom: (182.2.6 trunk)
  • Revision ID: xapantu@gmail.com-20120311173351-7pia9fewxuhvmwaq
Merge the DynamicNotebook, we'll break the APIs if it is really needed later, but we need to test it further to improve the APIs (so, it is a never ending loop, that's why I'm merging it). So, this is unstable, fo to the 0.1 branch for a stable branch ;)

Show diffs side-by-side

added added

removed removed

Lines of Context:
205
205
        contractor_tab.add(text_view);
206
206
        contractor_tab.add(new ContractorView("file:///home/user/file.txt", "text/plain"));
207
207
 
 
208
 
 
209
        /* DynamicNotebook */
 
210
        var dynamic_notebook = new DynamicNotebook ();
 
211
        notebook.append_page (dynamic_notebook, new Gtk.Label ("Dynamic Notebook"));
 
212
        dynamic_notebook.append_page (new Gtk.Label ("Page 1"), "Page 1");
 
213
        dynamic_notebook.append_page (new Gtk.Label ("Page 2"), "Page 2");
 
214
        dynamic_notebook.append_page (new Gtk.Label ("Page 3"), "Page 3");
 
215
 
208
216
        /* window properties */
209
217
        win.show_all();
210
218
        win.resize(800, 600);