Mercurial > mplayer.hg
annotate gui/dialog/dialog.h @ 35811:2ce01f3d3b37
Switch from OpenGL.h to gl.h
The former seems to miss some needed defines
from OSX 10.8 on, and gl.h seems to work
without issues at the very least down to 10.5
author | reimar |
---|---|
date | Sun, 27 Jan 2013 15:33:31 +0000 |
parents | 78d9cfd68b34 |
children | 1d11ed014a53 |
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 | |
35529 | 19 #ifndef MPLAYER_GUI_DIALOG_H |
20 #define MPLAYER_GUI_DIALOG_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 "osdep/shmem.h" |
35529 | 30 #include "gui/ui/actions.h" |
23077 | 31 #include "mplayer.h" |
32 | |
33 #define GTK_MB_SIMPLE 0 | |
34 #define GTK_MB_MODAL 1 | |
35 #define GTK_MB_FATAL 2 | |
36 #define GTK_MB_ERROR 4 | |
37 #define GTK_MB_WARNING 8 | |
38 | |
33538 | 39 extern GtkWidget *PlayList; |
40 extern GtkWidget *Options; | |
23077 | 41 |
33538 | 42 extern GtkWidget *WarningPixmap; |
43 extern GtkWidget *ErrorPixmap; | |
23077 | 44 |
33538 | 45 extern GtkWidget *SkinList; |
46 extern GtkWidget *gtkMessageBoxText; | |
23077 | 47 |
33538 | 48 extern int gtkPopupMenu; |
49 extern int gtkPopupMenuParam; | |
23077 | 50 |
33538 | 51 extern char *sbMPlayerDirInHome; |
52 extern char *sbMPlayerPrefixDir; | |
23077 | 53 |
33529 | 54 typedef struct { |
33543
10f9498fada1
Use small icon for property KWM_WIN_ICON, if available.
ib
parents:
33542
diff
changeset
|
55 Pixmap small; |
10f9498fada1
Use small icon for property KWM_WIN_ICON, if available.
ib
parents:
33542
diff
changeset
|
56 Pixmap small_mask; |
33538 | 57 Pixmap normal; |
58 Pixmap normal_mask; | |
33542 | 59 int collection_size; |
33925 | 60 long *collection; |
33529 | 61 } guiIcon_t; |
62 | |
63 extern guiIcon_t guiIcon; | |
23077 | 64 |
33538 | 65 void widgetsCreate(void); |
23077 | 66 |
35629 | 67 void gtkInit(char *display_name); |
33538 | 68 void gtkAddIcon(GtkWidget *window); |
23077 | 69 |
33538 | 70 int gtkFillSkinList(gchar *dir); |
71 void gtkClearList(GtkWidget *list); | |
72 void gtkSetDefaultToCList(GtkWidget *list, char *item); | |
73 int gtkFindCList(GtkWidget *list, char *item); | |
23077 | 74 |
33538 | 75 void gtkEventHandling(void); |
23077 | 76 |
33538 | 77 void gtkShow(int type, char *param); |
78 void gtkMessageBox(int type, const gchar *str); | |
35638
78d9cfd68b34
Cosmetic: Use parameter name 'window' for a GtkWindow.
ib
parents:
35629
diff
changeset
|
79 void gtkSetLayer(GtkWidget *window); |
78d9cfd68b34
Cosmetic: Use parameter name 'window' for a GtkWindow.
ib
parents:
35629
diff
changeset
|
80 void gtkActive(GtkWidget *window); |
23077 | 81 |
35529 | 82 #endif /* MPLAYER_GUI_DIALOG_H */ |