summaryrefslogtreecommitdiffstats
path: root/Gui/mplayer/widgets.c
diff options
context:
space:
mode:
authorpontscho <pontscho@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-09-17 21:16:00 +0000
committerpontscho <pontscho@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-09-17 21:16:00 +0000
commitba57320b827840b97f758a576244cc730ad468f5 (patch)
tree577f3cfda6057ec155302313f685ccc9290b65dc /Gui/mplayer/widgets.c
parent41bbd1a7fdf7f0d6143c7cb5abdc522a53f5820c (diff)
downloadmpv-ba57320b827840b97f758a576244cc730ad468f5.tar.bz2
mpv-ba57320b827840b97f758a576244cc730ad468f5.tar.xz
add new features. and fix skin error loop.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@1908 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'Gui/mplayer/widgets.c')
-rw-r--r--Gui/mplayer/widgets.c17
1 files changed, 6 insertions, 11 deletions
diff --git a/Gui/mplayer/widgets.c b/Gui/mplayer/widgets.c
index 30ed8a31b9..6f91414d76 100644
--- a/Gui/mplayer/widgets.c
+++ b/Gui/mplayer/widgets.c
@@ -27,6 +27,9 @@
#include "pixmaps/file.xpm"
#include "pixmaps/logo.xpm"
#include "pixmaps/about.xpm"
+#include "pixmaps/stop.xpm"
+#include "pixmaps/error.xpm"
+#include "pixmaps/warning.xpm"
GtkWidget * SkinBrowser;
GtkWidget * PlayList;
@@ -57,7 +60,7 @@ void widgetsCreate( void )
SkinBrowser=create_SkinBrowser();
PlayList=create_PlayList();
FileSelect=create_FileSelect();
- MessageBox=create_MessageBox();
+ MessageBox=create_MessageBox(0);
Options=create_Options();
}
@@ -103,17 +106,9 @@ void gtkDone( void ){
kill( gtkPID,SIGKILL );
}
-void gtkMessageBox( gchar * str )
+void gtkMessageBox( int type,gchar * str )
{
- gtkShMem->mb.sx=420; gtkShMem->mb.sy=128;
- gtkShMem->mb.tsx=384; gtkShMem->mb.tsy=77;
- if ( strlen( str ) > 200 )
- {
- gtkShMem->mb.sx=512;
- gtkShMem->mb.sy=128;
- gtkShMem->mb.tsx=476;
- gtkShMem->mb.tsy=77;
- }
+ gtkShMem->mb.type=type;
strcpy( gtkShMem->mb.str,str );
gtkSendMessage( evMessageBox );
}