Add movie list window
[cinaest] / src / movie-list-window.vala
1 /* This file is part of Cinaest.
2  *
3  * Copyright (C) 2009 Philipp Zabel
4  *
5  * Cinaest is free software: you can redistribute it and/or modify
6  * it under the terms of the GNU General Public License as published by
7  * the Free Software Foundation, either version 3 of the License, or
8  * (at your option) any later version.
9  *
10  * Cinaest is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License
16  * along with Cinaest. If not, see <http://www.gnu.org/licenses/>.
17  */
18
19 using Gtk;
20 using Hildon;
21
22 public class MovieListWindow : StackableWindow {
23         private Hildon.Entry search_field;
24         private Toolbar search_bar;
25
26         construct {
27                 // Search bar
28                 search_field = new Hildon.Entry (SizeType.FINGER_HEIGHT);
29
30                 var search_field_item = new ToolItem ();
31                 search_field_item.set_expand (true);
32                 search_field_item.add (search_field);
33
34                 search_bar = new Toolbar ();
35                 search_bar.insert (search_field_item, 0);
36
37                 add_toolbar (search_bar);
38
39                 var vbox = new VBox (false, 0);
40
41                 add (vbox);
42
43                 show_all ();
44         }
45 }
46