Mercurial > mplayer.hg
diff Gui/mplayer/widgets.c @ 1907:83291fafe66c
add new features. and fix skin error loop.
author | pontscho |
---|---|
date | Mon, 17 Sep 2001 21:16:00 +0000 |
parents | d21f8afc7680 |
children | 633a7f0d72a4 |
line wrap: on
line diff
--- a/Gui/mplayer/widgets.c Mon Sep 17 21:15:14 2001 +0000 +++ b/Gui/mplayer/widgets.c Mon Sep 17 21:16:00 2001 +0000 @@ -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 @@ SkinBrowser=create_SkinBrowser(); PlayList=create_PlayList(); FileSelect=create_FileSelect(); - MessageBox=create_MessageBox(); + MessageBox=create_MessageBox(0); Options=create_Options(); } @@ -103,17 +106,9 @@ 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 ); }