5
// mathijshenquet <${AuthorEmail}>
7
// Copyright (c) 2010 mathijshenquet
9
// This program is free software: you can redistribute it and/or modify
10
// it under the terms of the GNU General Public License as published by
11
// the Free Software Foundation, either version 3 of the License, or
12
// (at your option) any later version.
14
// This program is distributed in the hope that it will be useful,
15
// but WITHOUT ANY WARRANTY; without even the implied warranty of
16
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17
// GNU General Public License for more details.
19
// You should have received a copy of the GNU General Public License
20
// along with this program. If not, see <http://www.gnu.org/licenses/>.
23
namespace Marlin.View.Chrome
25
public class TopMenu : Gtk.Toolbar
27
public ToolButton go_back;
28
public ToolButton go_forward;
29
public ToolButton go_up;
30
public ToolButton refresh;
31
public ViewSwitcher view_switcher;
32
public CompactMenu compact_menu;
33
public CompactMenuButton compact_menu_button;
34
public LocationBar location_bar;
36
public TopMenu (/*Settings settings*/)
38
go_back = new ToolButton.from_stock(Stock.GO_BACK);
39
go_forward = new ToolButton.from_stock(Stock.GO_FORWARD);
40
go_up = new ToolButton.from_stock(Stock.GO_UP);
41
refresh = new ToolButton.from_stock(Stock.REFRESH);
42
location_bar = new LocationBar ();
43
compact_menu = new CompactMenu (/*settings*/);
44
compact_menu_button = new CompactMenuButton.from_stock(Stock.PROPERTIES, IconSize.MENU, "Menu", compact_menu);
45
view_switcher = new ViewSwitcher();
48
insert(go_forward, -1);
50
insert(location_bar, -1);
51
//insert(refresh, -1);
52
insert(view_switcher, -1);
53
insert(compact_menu_button, -1);