]> git.sesse.net Git - vlc/blob - plugins/gtk/intf_gtk.h
-Fixed most of the bugs in gnome interface menus
[vlc] / plugins / gtk / intf_gtk.h
1 /*****************************************************************************
2  * intf_gtk.h: private Gtk+ interface description
3  *****************************************************************************
4  * Copyright (C) 1999, 2000 VideoLAN
5  * $Id: intf_gtk.h,v 1.1 2001/03/15 01:42:20 sam Exp $
6  *
7  * Authors: Samuel Hocevar <sam@zoy.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., 59 Temple Place - Suite 330, Boston, MA  02111, USA.
22  *****************************************************************************/
23
24 /*****************************************************************************
25  * drag'n'drop stuff
26  *****************************************************************************/
27 #define DROP_ACCEPT_TEXT_URI_LIST  0
28 #define DROP_ACCEPT_TEXT_PLAIN     1
29
30 /*****************************************************************************
31  * useful inline function
32  ****************************************************************************/
33 static __inline__ intf_thread_t * GetIntf( GtkWidget *item, char * psz_parent )
34 {
35     return( gtk_object_get_data( GTK_OBJECT( lookup_widget(item, psz_parent) ),
36                                                      "p_intf" ) );
37 }
38
39 /*****************************************************************************
40  * intf_sys_t: description and status of Gtk+ interface
41  *****************************************************************************/
42 typedef struct intf_sys_s
43 {
44     /* special actions */
45     boolean_t           b_popup_changed;                   /* display menu ? */
46     boolean_t           b_window_changed;        /* window display toggled ? */
47     boolean_t           b_playlist_changed;    /* playlist display toggled ? */
48     boolean_t           b_menus_update;              /* menus have changed ? */
49     boolean_t           b_slider_free;                      /* slider status */
50
51     int                 i_list_timeout;
52
53     /* Playlist selected item */
54     int                 i_playing;
55
56     /* windows and widgets */
57     GtkWidget *         p_window;                             /* main window */
58     GtkWidget *         p_popup;                               /* popup menu */
59     GtkWidget *         p_playlist;                              /* playlist */
60     GtkWidget *         p_modules;                         /* module manager */
61     GtkWidget *         p_about;                             /* about window */
62     GtkWidget *         p_fileopen;                      /* file open window */
63     GtkWidget *         p_disc;                     /* disc selection window */
64     GtkWidget *         p_network;                  /* network stream window */
65
66     /* The slider */
67     GtkAdjustment *     p_adj;                   /* slider adjustment object */
68     float               f_adj_oldvalue;                    /* previous value */
69
70     /* The window labels */
71     GtkLabel *          p_label_date;
72     GtkLabel *          p_label_status;
73
74     /* XXX: Ugly kludge, see intf_gnome.c */
75     void             ( *pf_gtk_callback ) ( void );
76     void             ( *pf_gdk_callback ) ( void );
77
78 } intf_sys_t;
79