Changeset ae52cc5f32e69da5f255e4801ce04d2ad5c5afc9


Ignore:
Timestamp:
11/05/10 13:02:56 (3 years ago)
Author:
Matias De la Puente <mfpuente.ar@…>
Children:
fed76872db57be25180c04c6856972ef1e8ef8ff
Parents:
6faa94a7674cfdda3813ff4a36542859d1947e3d
git-committer:
Matias De la Puente <mfpuente.ar@…> (11/05/10 13:02:56)
Message:

Add bottom page

This page is used in the bottom panel

Location:
libi4uc
Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • libi4uc/Makefile.am

    rf6e03d7 rae52cc5  
    2323        i4ucaddprofiledialogviewiface.vala \ 
    2424        i4ucauthorslist.vala \ 
     25        i4ucbottompage.vala \ 
    2526        i4ucbottompanel.vala \ 
    2627        i4ucbuilder.vala \ 
  • libi4uc/i4ucbottompanel.vala

    r4bb5472 rae52cc5  
    2626        private Notebook _notebook = new Notebook (); 
    2727        private ArrayList<PageIface> _pages = new ArrayList<PageIface> (); 
    28         private Page _current_page; 
     28        private BottomPage _current_page; 
    2929         
    3030        public PageIface current_page { get { return _current_page; } } 
     
    3434                _notebook.tab_pos = PositionType.BOTTOM; 
    3535                _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); 
    3737                        this.page_changed (_current_page); 
    3838                }); 
    3939                _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); 
    4242                }); 
    4343                _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); 
    4646                        if (_notebook.get_n_pages () == 0) 
    4747                        { 
     
    5656        public void add_page (PageIface page) 
    5757        { 
    58                 _notebook.append_page (page as Page, (page as Page).tab_label); 
     58                _notebook.append_page (page as BottomPage, (page as BottomPage).tab_label); 
    5959        } 
    6060         
    6161        public void insert_page (PageIface page, int position) 
    6262        { 
    63                 _notebook.insert_page (page as Page, (page as Page).tab_label, position); 
     63                _notebook.insert_page (page as BottomPage, (page as BottomPage).tab_label, position); 
    6464        } 
    6565         
    6666        public void remove_page (PageIface page) 
    6767        { 
    68                 _notebook.remove_page (_notebook.page_num (page as Page)); 
     68                _notebook.remove_page (_notebook.page_num (page as BottomPage)); 
    6969        } 
    7070         
    7171        public void show_page (PageIface page) 
    7272        { 
    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 (); 
    7575        } 
    7676         
  • libi4uc/i4uclogpage.vala

    r1890a5e rae52cc5  
    2121using Gtk; 
    2222 
    23 public class I4uc.LogPage : Page, LogPageIface 
     23public class I4uc.LogPage : BottomPage, LogPageIface 
    2424{ 
    2525        private ListStore _log_store; 
Note: See TracChangeset for help on using the changeset viewer.