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