~am-monkeyd/strip/sweat_bubble

« back to all changes in this revision

Viewing changes to StripWindow.vala

  • Committer: kekun.plazas at laposte
  • Date: 2011-06-04 18:19:31 UTC
  • Revision ID: kekun.plazas@laposte.net-20110604181931-as8uwhe90990cm4n
Basic menu added

Show diffs side-by-side

added added

removed removed

Lines of Context:
5
5
//  it under the terms of the GNU General Public License as published by
6
6
//  the Free Software Foundation, either version 3 of the License, or
7
7
//  (at your option) any later version.
8
 
// 
 
8
//  
9
9
//  This program is distributed in the hope that it will be useful,
10
10
//  but WITHOUT ANY WARRANTY; without even the implied warranty of
11
11
//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
55
55
                
56
56
                public StripWindow ()
57
57
                {
58
 
                  book  = new ComicBook();
 
58
                        book = new ComicBook();
59
59
                        
60
60
                        set_size_request(600, 400);
61
61
                        
100
100
                        
101
101
                        // Menu
102
102
                        menu.show_all();
103
 
                        var menuitem = new MenuItem();
104
 
                        menuitem.show_all();
 
103
                        var open_menuitem = new MenuItem.with_label("Open");
 
104
                        var informations_menuitem = new MenuItem.with_label("Informations");
 
105
                        
 
106
                        var fullscreen_menuitem = new MenuItem.with_label("Fullscreen");
 
107
                        var rotate_menuitem = new MenuItem.with_label("Rotate");
 
108
                        var clockwise_menuitem = new MenuItem.with_label("Clockwise");
 
109
                        
 
110
                        var about_menuitem = new MenuItem.with_label("About");
 
111
                        
 
112
                        menu.append(open_menuitem);
 
113
                        menu.append(informations_menuitem);
 
114
                        menu.append(new MenuItem());
 
115
                        menu.append(fullscreen_menuitem);
 
116
                        menu.append(rotate_menuitem);
 
117
                        menu.append(clockwise_menuitem);
 
118
                        menu.append(new MenuItem());
 
119
                        menu.append(about_menuitem);
105
120
                        
106
121
                        // AppMenu
107
122
                        appMenu = new AppMenu.from_stock ("gtk-properties", IconSize.BUTTON, "Menu", menu);
148
163
                        key_press_event.connect(on_key_press_event);
149
164
                        check_resize.connect (on_resize_event);
150
165
                        book.progress_notification.connect(on_book_progress_notification);
 
166
                        
 
167
                        // Menu item connections
 
168
                        open_menuitem.activate.connect(open);
151
169
                }
152
170
                
153
171
                public void on_layout_left_page_pressed()