2 * This file is part of MPlayer.
4 * MPlayer is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * (at your option) any later version.
9 * MPlayer is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License along
15 * with MPlayer; if not, write to the Free Software Foundation, Inc.,
16 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
19 #ifndef MPLAYER_GUI_WIDGETS_H
20 #define MPLAYER_GUI_WIDGETS_H
24 #include <gdk/gdkkeysyms.h>
28 #include "osdep/shmem.h"
31 #include "gui/interface.h"
32 #include "gui/wm/ws.h"
34 #define GTK_MB_SIMPLE 0
35 #define GTK_MB_MODAL 1
36 #define GTK_MB_FATAL 2
37 #define GTK_MB_ERROR 4
38 #define GTK_MB_WARNING 8
40 extern GtkWidget
* PlayList
;
41 extern GtkWidget
* Options
;
42 extern GtkWidget
* PopUpMenu
;
44 extern GtkWidget
* WarningPixmap
;
45 extern GtkWidget
* ErrorPixmap
;
47 extern GtkWidget
* SkinList
;
48 extern GtkWidget
* gtkMessageBoxText
;
50 extern int gtkPopupMenu
;
51 extern int gtkPopupMenuParam
;
53 extern char * sbMPlayerDirInHome
;
54 extern char * sbMPlayerPrefixDir
;
55 extern char * sbMPlayerDirInHome_obsolete
;
56 extern char * sbMPlayerPrefixDir_obsolete
;
58 extern GdkPixmap
* gtkIcon
;
59 extern GdkBitmap
* gtkIconMask
;
60 extern Pixmap guiIcon
;
61 extern Pixmap guiIconMask
;
63 void widgetsCreate( void );
66 void gtkAddIcon( GtkWidget
* window
);
68 int gtkFillSkinList( gchar
* dir
);
69 void gtkClearList( GtkWidget
* list
);
70 void gtkSetDefaultToCList( GtkWidget
* list
, char * item
);
71 int gtkFindCList( GtkWidget
* list
, char * item
);
73 void gtkEventHandling( void );
75 void gtkShow( int type
, char * param
);
76 void gtkMessageBox( int type
, const gchar
* str
);
77 void gtkSetLayer( GtkWidget
* wdg
);
78 void gtkActive( GtkWidget
* wdg
);
80 #endif /* MPLAYER_GUI_WIDGETS_H */