]> git.sesse.net Git - vlc/blob - modules/gui/hildon/maemo.h
macosx: disable extensions submenu when they are no items to display
[vlc] / modules / gui / hildon / maemo.h
1 /*****************************************************************************
2  * maemo.h: private Maemo Interface Description
3  *****************************************************************************
4  * Copyright (C) 2008 the VideoLAN team
5  * $Id$
6  *
7  * Authors: Antoine Lejeune <phytos@videolan.org>
8  *
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 2 of the License, or
12  * (at your option) any later version.
13  *
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.
18  *
19  * You should have received a copy of the GNU General Public License
20  * along with this program; if not, write to the Free Software
21  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
22  *****************************************************************************/
23
24 #ifdef HAVE_CONFIG_H
25 # include "config.h"
26 #endif
27
28 #include <hildon/hildon-program.h>
29 #include <hildon/hildon-seekbar.h>
30 #include <hildon/hildon-banner.h>
31
32 #include <vlc_interface.h>
33 #include <vlc_playlist.h>
34 #include <vlc_input.h>
35 #include <vlc_vout.h>
36
37 struct intf_sys_t
38 {
39     vlc_thread_t thread;
40
41     playlist_t *p_playlist;
42     input_thread_t *p_input;
43     vlc_sem_t ready;
44
45     HildonWindow  *p_main_window;
46     HildonSeekbar *p_seekbar;
47     GtkWidget     *p_play_button;
48
49     GtkListStore  *p_playlist_store;
50     GtkWidget     *p_playlist_window;
51
52     int i_event;
53     vlc_spinlock_t event_lock;
54
55     GtkWidget *p_video_window;
56     uint32_t xid; /* X11 windows ID */
57     bool b_fullscreen;
58
59     GtkWidget *p_control_window;
60
61     GtkMenuItem *menu_input;
62     GtkMenuItem *menu_audio;
63     GtkMenuItem *menu_video;
64 };
65
66 GtkWidget *create_menu( intf_thread_t *p_intf );