Changeset ae52cc5f32e69da5f255e4801ce04d2ad5c5afc9
- Timestamp:
- 11/05/10 13:02:56 (3 years ago)
- Children:
- fed76872db57be25180c04c6856972ef1e8ef8ff
- Parents:
- 6faa94a7674cfdda3813ff4a36542859d1947e3d
- git-committer:
- Matias De la Puente <mfpuente.ar@…> (11/05/10 13:02:56)
- Location:
- libi4uc
- Files:
-
- 1 added
- 3 edited
-
Makefile.am (modified) (1 diff)
-
i4ucbottompage.vala (added)
-
i4ucbottompanel.vala (modified) (3 diffs)
-
i4uclogpage.vala (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
libi4uc/Makefile.am
rf6e03d7 rae52cc5 23 23 i4ucaddprofiledialogviewiface.vala \ 24 24 i4ucauthorslist.vala \ 25 i4ucbottompage.vala \ 25 26 i4ucbottompanel.vala \ 26 27 i4ucbuilder.vala \ -
libi4uc/i4ucbottompanel.vala
r4bb5472 rae52cc5 26 26 private Notebook _notebook = new Notebook (); 27 27 private ArrayList<PageIface> _pages = new ArrayList<PageIface> (); 28 private Page _current_page;28 private BottomPage _current_page; 29 29 30 30 public PageIface current_page { get { return _current_page; } } … … 34 34 _notebook.tab_pos = PositionType.BOTTOM; 35 35 _notebook.switch_page.connect ((panel, page, page_num) => { 36 _current_page = (_notebook.get_nth_page ((int)page_num) as Page);36 _current_page = (_notebook.get_nth_page ((int)page_num) as BottomPage); 37 37 this.page_changed (_current_page); 38 38 }); 39 39 _notebook.page_added.connect ((panel, page, page_num) => { 40 _pages.add (page as Page);41 this.page_added (page as Page);40 _pages.add (page as BottomPage); 41 this.page_added (page as BottomPage); 42 42 }); 43 43 _notebook.page_removed.connect ((panel, page, page_num) => { 44 _pages.remove (page as Page);45 this.page_removed (page as Page);44 _pages.remove (page as BottomPage); 45 this.page_removed (page as BottomPage); 46 46 if (_notebook.get_n_pages () == 0) 47 47 { … … 56 56 public void add_page (PageIface page) 57 57 { 58 _notebook.append_page (page as Page, (page asPage).tab_label);58 _notebook.append_page (page as BottomPage, (page as BottomPage).tab_label); 59 59 } 60 60 61 61 public void insert_page (PageIface page, int position) 62 62 { 63 _notebook.insert_page (page as Page, (page asPage).tab_label, position);63 _notebook.insert_page (page as BottomPage, (page as BottomPage).tab_label, position); 64 64 } 65 65 66 66 public void remove_page (PageIface page) 67 67 { 68 _notebook.remove_page (_notebook.page_num (page as Page));68 _notebook.remove_page (_notebook.page_num (page as BottomPage)); 69 69 } 70 70 71 71 public void show_page (PageIface page) 72 72 { 73 _notebook.set_current_page (_notebook.page_num (page as Page));74 (page as Page).grab_focus ();73 _notebook.set_current_page (_notebook.page_num (page as BottomPage)); 74 (page as BottomPage).grab_focus (); 75 75 } 76 76 -
libi4uc/i4uclogpage.vala
r1890a5e rae52cc5 21 21 using Gtk; 22 22 23 public class I4uc.LogPage : Page, LogPageIface23 public class I4uc.LogPage : BottomPage, LogPageIface 24 24 { 25 25 private ListStore _log_store;
Note: See TracChangeset
for help on using the changeset viewer.

