Changeset 6ceb9b5221dc4152dd38147e3c863ac3b8af1f3e
- Timestamp:
- 29/10/10 23:43:02 (3 years ago)
- Children:
- efa5c89b661fde3e18ba12ceb2ec83980d9ceb63
- Parents:
- 2fc76a3e73eaa0277b5429316ba365bb6629ee99
- git-committer:
- Matias De la Puente <mfpuente.ar@…> (29/10/10 23:43:02)
- File:
-
- 1 edited
-
gtkfrontend/mainwindowview.vala (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
gtkfrontend/mainwindowview.vala
rdfe49c7 r6ceb9b5 35 35 public PagesPanel bottom_panel { get { return _bottom_panel; } } 36 36 37 public bool show_side_panel_active 38 { 39 set { (_action_group.get_action ("ShowSidePanelAction") as ToggleAction).active = value; } 40 get { return (_action_group.get_action ("ShowSidePanelAction") as ToggleAction).active; } 41 } 42 43 public bool side_panel_visible 44 { 45 set { _side_panel.visible = value; } 46 get { return _side_panel.visible; } 47 } 48 49 public bool show_bottom_panel_active 50 { 51 set { (_action_group.get_action ("ShowBottomPanelAction") as ToggleAction).active = value; } 52 get { return (_action_group.get_action ("ShowBottomPanelAction") as ToggleAction).active; } 53 } 54 55 public bool bottom_panel_visible 56 { 57 set { _bottom_panel.visible = value; } 58 get { return _bottom_panel.visible; } 59 } 37 public bool show_side_panel_active { set; get; } 38 public bool side_panel_visible { set; get; } 39 public bool show_bottom_panel_active { set; get; } 40 public bool bottom_panel_visible { set; get; } 60 41 61 42 public MainWindowView () … … 105 86 vbox.pack_start (hpaned, true, true, 0); 106 87 add (vbox); 88 89 //Bind Properties 90 this.bind_property ("show-side-panel-active", _action_group.get_action ("ShowSidePanelAction") as ToggleAction, "active", BindingFlags.BIDIRECTIONAL); 91 this.bind_property ("side-panel-visible", _side_panel, "visible", BindingFlags.BIDIRECTIONAL); 92 this.bind_property ("show-bottom-panel-active", _action_group.get_action ("ShowBottomPanelAction") as ToggleAction, "active", BindingFlags.BIDIRECTIONAL); 93 this.bind_property ("bottom-panel-visible", _bottom_panel, "visible", BindingFlags.BIDIRECTIONAL); 107 94 } 108 95
Note: See TracChangeset
for help on using the changeset viewer.

