1 /*****************************************************************************
2 * gtk_common.h: private Gtk+ interface description
3 *****************************************************************************
4 * Copyright (C) 1999, 2000 VideoLAN
5 * $Id: gtk_common.h,v 1.12 2002/07/20 18:01:42 sam Exp $
7 * Authors: Samuel Hocevar <sam@zoy.org>
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.
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, write to the Free Software
21 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA.
22 *****************************************************************************/
24 /*****************************************************************************
26 *****************************************************************************/
27 #define DROP_ACCEPT_TEXT_URI_LIST 0
28 #define DROP_ACCEPT_TEXT_PLAIN 1
29 #define DROP_ACCEPT_STRING 2
33 /*****************************************************************************
34 * intf_sys_t: description and status of Gtk+ interface
35 *****************************************************************************/
40 vlc_bool_t b_popup_changed; /* display menu ? */
41 vlc_bool_t b_window_changed; /* window display toggled ? */
42 vlc_bool_t b_playlist_changed; /* playlist display toggled ? */
43 vlc_bool_t b_slider_free; /* slider status */
46 vlc_bool_t b_program_update; /* do we need to update programs
48 vlc_bool_t b_title_update; /* do we need to update title menus */
49 vlc_bool_t b_chapter_update; /* do we need to update
51 vlc_bool_t b_audio_update; /* do we need to update audio menus */
52 vlc_bool_t b_spu_update; /* do we need to update spu menus */
54 /* windows and widgets */
55 GtkWidget * p_window; /* main window */
56 GtkWidget * p_popup; /* popup menu */
57 GtkWidget * p_playwin; /* playlist */
58 GtkWidget * p_modules; /* module manager */
59 GtkWidget * p_about; /* about window */
60 GtkWidget * p_open; /* multiopen window */
61 GtkWidget * p_jump; /* jump window */
63 GtkTooltips * p_tooltips; /* tooltips */
65 /* The input thread */
66 input_thread_t * p_input;
69 GtkFrame * p_slider_frame;
70 GtkAdjustment * p_adj; /* slider adjustment object */
71 float f_adj_oldvalue; /* previous value */
73 /* The messages window */
74 GtkWidget * p_messages; /* messages window */
75 GtkText * p_messages_text; /* messages frame */
76 msg_subscription_t* p_sub; /* message bank subscription */
78 /* Playlist management */
79 int i_playing; /* playlist selected item */
81 /* The window labels for DVD mode */
82 GtkLabel * p_label_title;
83 GtkLabel * p_label_chapter;
84 gint i_part; /* current chapter */
86 /* XXX: Ugly kludge, see gtk.c */
87 void ( *pf_callback[MAX_ATEXIT] ) ( void );
90 /*****************************************************************************
92 *****************************************************************************/
93 gint GtkModeManage ( intf_thread_t * p_intf );
94 void GtkDisplayDate ( GtkAdjustment *p_adj );
96 /*****************************************************************************
98 ****************************************************************************/
99 #define GtkGetIntf( widget ) __GtkGetIntf( GTK_WIDGET( widget ) )
100 void * __GtkGetIntf( GtkWidget * );