blob: 86c67e2e303455e713b802a049a53bf6a283a3e0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
|
#ifndef __MY_WIDGET
#define __MY_WIDGET
#include <gdk/gdkkeysyms.h>
#include <gtk/gtk.h>
#include "../../linux/shmem.h"
#define GTK_MB_SIMPLE 0
#define GTK_MB_MODAL 1
#define GTK_MB_FATAL 2
#define GTK_MB_ERROR 4
#define GTK_MB_WARNING 8
typedef struct
{
char dir[ 2048 ];
char filename[ 2048 ];
} gtkFileSelectorStruct;
typedef struct
{
int sx;
int sy;
int tsx;
int tsy;
int type;
char str[512];
} gtkMessageBoxStruct;
typedef struct
{
char name[128];
} gtkSkinStruct;
typedef struct
{
int window;
} gtkVisibleStruct;
typedef struct
{
int i;
} gtkOptionsStruct;
typedef struct
{
int message;
gtkFileSelectorStruct fs;
gtkMessageBoxStruct mb;
gtkSkinStruct sb;
gtkVisibleStruct vs;
gtkOptionsStruct op;
int popupmenu;
} gtkCommStruct;
extern gtkCommStruct * gtkShMem;
extern GtkWidget * SkinBrowser;
extern GtkWidget * PlayList;
extern GtkWidget * FileSelect;
extern GtkWidget * AboutBox;
extern GtkWidget * Options;
extern GtkWidget * PopUpMenu;
extern GtkWidget * MessageBox;
extern GtkWidget * WarningPixmap;
extern GtkWidget * ErrorPixmap;
extern GtkWidget * SkinList;
extern GtkWidget * gtkMessageBoxText;
extern int gtkVisibleSkinBrowser;
extern int gtkVisiblePlayList;
extern int gtkVisibleFileSelect;
extern int gtkVisibleMessageBox;
extern int gtkVisibleAboutBox;
extern int gtkVisibleOptions;
extern char * sbMPlayerDirInHome;
extern char * sbMPlayerPrefixDir;
extern void widgetsCreate( void );
extern void gtkInit( int argc,char* argv[], char *envp[] );
extern void gtkDone( void );
extern void gtkMessageBox( int type,gchar * str );
extern int gtkFillSkinList( gchar * dir );
extern void gtkClearList( GtkWidget * list );
extern void gtkSetDefaultToCList( GtkWidget * list,char * item );
extern int gtkFindCList( GtkWidget * list,char * item );
#endif
|