2001-08-25 21:04:29 +00:00
|
|
|
|
|
|
|
#ifndef __MY_WIDGET
|
|
|
|
#define __MY_WIDGET
|
|
|
|
|
2002-02-23 15:12:55 +00:00
|
|
|
#include <stdio.h>
|
|
|
|
#include <stdlib.h>
|
2001-08-25 21:04:29 +00:00
|
|
|
#include <gdk/gdkkeysyms.h>
|
|
|
|
#include <gtk/gtk.h>
|
|
|
|
|
2001-11-21 17:43:57 +00:00
|
|
|
#include "../../config.h"
|
2001-08-26 19:54:37 +00:00
|
|
|
#include "../../linux/shmem.h"
|
2001-11-21 17:43:57 +00:00
|
|
|
#include "play.h"
|
2002-02-23 15:12:55 +00:00
|
|
|
#include "mplayer.h"
|
|
|
|
#include "../interface.h"
|
2002-07-05 23:47:00 +00:00
|
|
|
#include "../wm/ws.h"
|
2001-08-25 21:04:29 +00:00
|
|
|
|
2001-09-17 21:16:00 +00:00
|
|
|
#define GTK_MB_SIMPLE 0
|
|
|
|
#define GTK_MB_MODAL 1
|
|
|
|
#define GTK_MB_FATAL 2
|
|
|
|
#define GTK_MB_ERROR 4
|
|
|
|
#define GTK_MB_WARNING 8
|
|
|
|
|
2001-08-25 21:04:29 +00:00
|
|
|
extern GtkWidget * PlayList;
|
|
|
|
extern GtkWidget * Options;
|
2001-11-14 16:05:33 +00:00
|
|
|
extern GtkWidget * PopUpMenu;
|
2001-08-25 21:04:29 +00:00
|
|
|
|
2001-09-20 10:27:24 +00:00
|
|
|
extern GtkWidget * WarningPixmap;
|
|
|
|
extern GtkWidget * ErrorPixmap;
|
|
|
|
|
2001-08-25 21:04:29 +00:00
|
|
|
extern GtkWidget * SkinList;
|
|
|
|
extern GtkWidget * gtkMessageBoxText;
|
|
|
|
|
2002-02-23 15:12:55 +00:00
|
|
|
extern int gtkPopupMenu;
|
|
|
|
extern int gtkPopupMenuParam;
|
2001-08-25 21:04:29 +00:00
|
|
|
|
|
|
|
extern char * sbMPlayerDirInHome;
|
|
|
|
extern char * sbMPlayerPrefixDir;
|
|
|
|
|
2002-07-05 23:47:00 +00:00
|
|
|
extern GdkPixmap * gtkIcon;
|
|
|
|
extern GdkBitmap * gtkIconMask;
|
|
|
|
extern Pixmap guiIcon;
|
|
|
|
extern Pixmap guiIconMask;
|
|
|
|
|
2001-08-25 21:04:29 +00:00
|
|
|
extern void widgetsCreate( void );
|
|
|
|
|
2002-05-28 11:55:17 +00:00
|
|
|
extern void gtkInit( void );
|
2001-08-25 21:04:29 +00:00
|
|
|
extern void gtkDone( void );
|
2002-07-05 23:47:00 +00:00
|
|
|
extern void gtkAddIcon( GtkWidget * window );
|
2002-02-23 15:12:55 +00:00
|
|
|
|
2001-08-25 21:04:29 +00:00
|
|
|
extern int gtkFillSkinList( gchar * dir );
|
|
|
|
extern void gtkClearList( GtkWidget * list );
|
|
|
|
extern void gtkSetDefaultToCList( GtkWidget * list,char * item );
|
|
|
|
extern int gtkFindCList( GtkWidget * list,char * item );
|
|
|
|
|
2002-02-23 15:12:55 +00:00
|
|
|
extern void gtkEventHandling( void );
|
|
|
|
|
|
|
|
extern void gtkShow( int type,char * param );
|
|
|
|
extern void gtkMessageBox( int type,gchar * str );
|
2002-05-20 13:56:16 +00:00
|
|
|
extern void gtkSetLayer( GtkWidget * wdg );
|
|
|
|
extern void gtkActive( GtkWidget * wdg );
|
2002-02-23 15:12:55 +00:00
|
|
|
|
2001-09-20 10:27:24 +00:00
|
|
|
#endif
|