Mercurial > mplayer.hg
annotate gui/ui/widgets.h @ 33925:162828e38481
Replace data type CARD32 by long.
On the client side, properties of format 32 will be stored as long,
even if it has more than 32 bits on the platform.
This reverts r33610.
author | ib |
---|---|
date | Fri, 26 Aug 2011 09:46:42 +0000 |
parents | 998f94e62a61 |
children | 31a5320909f7 |
rev | line source |
---|---|
26458 | 1 /* |
2 * This file is part of MPlayer. | |
3 * | |
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. | |
8 * | |
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. | |
13 * | |
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. | |
17 */ | |
18 | |
26029 | 19 #ifndef MPLAYER_GUI_WIDGETS_H |
20 #define MPLAYER_GUI_WIDGETS_H | |
23077 | 21 |
22 #include <stdio.h> | |
23 #include <stdlib.h> | |
24 #include <gdk/gdkkeysyms.h> | |
25 #include <gtk/gtk.h> | |
33529 | 26 #include <X11/Xlib.h> |
33542 | 27 #include <X11/Xproto.h> |
23077 | 28 |
26382
b2f4abcf20ed
Make include paths consistent; do not use ../ in them.
diego
parents:
26365
diff
changeset
|
29 #include "config.h" |
b2f4abcf20ed
Make include paths consistent; do not use ../ in them.
diego
parents:
26365
diff
changeset
|
30 #include "osdep/shmem.h" |
33556 | 31 #include "actions.h" |
23077 | 32 #include "mplayer.h" |
33 | |
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 | |
39 | |
33538 | 40 extern GtkWidget *PlayList; |
41 extern GtkWidget *Options; | |
42 extern GtkWidget *PopUpMenu; | |
23077 | 43 |
33538 | 44 extern GtkWidget *WarningPixmap; |
45 extern GtkWidget *ErrorPixmap; | |
23077 | 46 |
33538 | 47 extern GtkWidget *SkinList; |
48 extern GtkWidget *gtkMessageBoxText; | |
23077 | 49 |
33538 | 50 extern int gtkPopupMenu; |
51 extern int gtkPopupMenuParam; | |
23077 | 52 |
33538 | 53 extern char *sbMPlayerDirInHome; |
54 extern char *sbMPlayerPrefixDir; | |
23077 | 55 |
33529 | 56 typedef struct { |
33543
10f9498fada1
Use small icon for property KWM_WIN_ICON, if available.
ib
parents:
33542
diff
changeset
|
57 Pixmap small; |
10f9498fada1
Use small icon for property KWM_WIN_ICON, if available.
ib
parents:
33542
diff
changeset
|
58 Pixmap small_mask; |
33538 | 59 Pixmap normal; |
60 Pixmap normal_mask; | |
33542 | 61 int collection_size; |
33925 | 62 long *collection; |
33529 | 63 } guiIcon_t; |
64 | |
65 extern guiIcon_t guiIcon; | |
23077 | 66 |
33538 | 67 void widgetsCreate(void); |
23077 | 68 |
33538 | 69 void gtkInit(void); |
70 void gtkAddIcon(GtkWidget *window); | |
23077 | 71 |
33538 | 72 int gtkFillSkinList(gchar *dir); |
73 void gtkClearList(GtkWidget *list); | |
74 void gtkSetDefaultToCList(GtkWidget *list, char *item); | |
75 int gtkFindCList(GtkWidget *list, char *item); | |
23077 | 76 |
33538 | 77 void gtkEventHandling(void); |
23077 | 78 |
33538 | 79 void gtkShow(int type, char *param); |
80 void gtkMessageBox(int type, const gchar *str); | |
81 void gtkSetLayer(GtkWidget *wdg); | |
82 void gtkActive(GtkWidget *wdg); | |
23077 | 83 |
26029 | 84 #endif /* MPLAYER_GUI_WIDGETS_H */ |