Mercurial > mplayer.hg
annotate gui/dialog/dialog.h @ 36062:d8c696db2948
Don't allow the message box to be user-resizable.
author | ib |
---|---|
date | Thu, 04 Apr 2013 18:27:52 +0000 |
parents | 2421356e2a03 |
children | 6c3dc8fec01f |
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 <gtk/gtk.h> | |
33529 | 23 #include <X11/Xlib.h> |
23077 | 24 |
36036 | 25 /// MessageBox types |
26 enum { | |
27 MSGBOX_WARNING, | |
28 MSGBOX_ERROR, | |
29 MSGBOX_FATAL | |
30 }; | |
23077 | 31 |
33529 | 32 typedef struct { |
33543
10f9498fada1
Use small icon for property KWM_WIN_ICON, if available.
ib
parents:
33542
diff
changeset
|
33 Pixmap small; |
10f9498fada1
Use small icon for property KWM_WIN_ICON, if available.
ib
parents:
33542
diff
changeset
|
34 Pixmap small_mask; |
33538 | 35 Pixmap normal; |
36 Pixmap normal_mask; | |
33542 | 37 int collection_size; |
33925 | 38 long *collection; |
33529 | 39 } guiIcon_t; |
40 | |
41 extern guiIcon_t guiIcon; | |
23077 | 42 |
33538 | 43 void gtkAddIcon(GtkWidget *window); |
44 void gtkEventHandling(void); | |
36033 | 45 void gtkInit(char *display_name); |
33538 | 46 void gtkMessageBox(int type, const gchar *str); |
36033 | 47 void gtkRaise(GtkWidget *window); |
35638
78d9cfd68b34
Cosmetic: Use parameter name 'window' for a GtkWindow.
ib
parents:
35629
diff
changeset
|
48 void gtkSetLayer(GtkWidget *window); |
36033 | 49 void gtkShow(int type, char *param); |
23077 | 50 |
35529 | 51 #endif /* MPLAYER_GUI_DIALOG_H */ |