uncomment splash code on gtk loadingwindow; still doesn't work
This commit is contained in:
@@ -12,7 +12,7 @@ static INIT Module_Init;
|
|||||||
static SHUTDOWN Module_Shutdown;
|
static SHUTDOWN Module_Shutdown;
|
||||||
static SETTEXT Module_SetText;
|
static SETTEXT Module_SetText;
|
||||||
//static SETICON Module_SetIcon;
|
//static SETICON Module_SetIcon;
|
||||||
//static SETSPLASH Module_SetSplash;
|
static SETSPLASH Module_SetSplash;
|
||||||
static SETPROGRESS Module_SetProgress;
|
static SETPROGRESS Module_SetProgress;
|
||||||
static SETINDETERMINATE Module_SetIndeterminate;
|
static SETINDETERMINATE Module_SetIndeterminate;
|
||||||
|
|
||||||
@@ -49,11 +49,11 @@ RString LoadingWindow_Gtk::Init()
|
|||||||
Module_SetIcon = (SETICON) dlsym(Handle, "SetIcon");
|
Module_SetIcon = (SETICON) dlsym(Handle, "SetIcon");
|
||||||
if( !Module_SetIcon )
|
if( !Module_SetIcon )
|
||||||
return ModuleError("SetIcon");
|
return ModuleError("SetIcon");
|
||||||
|
*/
|
||||||
|
|
||||||
Module_SetSplash = (SETSPLASH) dlsym(Handle, "SetSplash");
|
Module_SetSplash = (SETSPLASH) dlsym(Handle, "SetSplash");
|
||||||
if( !Module_SetSplash )
|
if( !Module_SetSplash )
|
||||||
return ModuleError("SetSplash");
|
return ModuleError("SetSplash");
|
||||||
*/
|
|
||||||
|
|
||||||
Module_SetProgress = (SETPROGRESS) dlsym(Handle, "SetProgress");
|
Module_SetProgress = (SETPROGRESS) dlsym(Handle, "SetProgress");
|
||||||
if( !Module_SetProgress )
|
if( !Module_SetProgress )
|
||||||
@@ -92,7 +92,7 @@ void LoadingWindow_Gtk::SetIcon( const RageSurface *pIcon )
|
|||||||
|
|
||||||
void LoadingWindow_Gtk::SetSplash( const RString str )
|
void LoadingWindow_Gtk::SetSplash( const RString str )
|
||||||
{
|
{
|
||||||
//Module_SetSplash( str );
|
Module_SetSplash( str );
|
||||||
}
|
}
|
||||||
|
|
||||||
void LoadingWindow_Gtk::SetProgress( const int progress )
|
void LoadingWindow_Gtk::SetProgress( const int progress )
|
||||||
|
|||||||
@@ -60,7 +60,7 @@ extern "C" void SetText( const char *s )
|
|||||||
gtk_widget_show(label);
|
gtk_widget_show(label);
|
||||||
gtk_main_iteration_do(FALSE);
|
gtk_main_iteration_do(FALSE);
|
||||||
}
|
}
|
||||||
|
/*
|
||||||
extern "C" void SetIcon( const RageSurface *pSrcImg )
|
extern "C" void SetIcon( const RageSurface *pSrcImg )
|
||||||
{
|
{
|
||||||
RageSurface *pImg;
|
RageSurface *pImg;
|
||||||
@@ -87,14 +87,14 @@ extern "C" void SetIcon( const RageSurface *pSrcImg )
|
|||||||
gtk_window_set_icon( GTK_WINDOW(window), pIcon );
|
gtk_window_set_icon( GTK_WINDOW(window), pIcon );
|
||||||
gtk_main_iteration_do(FALSE);
|
gtk_main_iteration_do(FALSE);
|
||||||
}
|
}
|
||||||
/*
|
*/
|
||||||
extern "C" void SetSplash( const char *s )
|
extern "C" void SetSplash( const char *s )
|
||||||
{
|
{
|
||||||
splash = gtk_image_new_from_file(s);
|
splash = gtk_image_new_from_file(s);
|
||||||
gtk_widget_show(splash);
|
gtk_widget_show(splash);
|
||||||
gtk_main_iteration_do(FALSE);
|
gtk_main_iteration_do(FALSE);
|
||||||
}
|
}
|
||||||
*/
|
|
||||||
extern "C" void SetProgress( int progress, int totalWork )
|
extern "C" void SetProgress( int progress, int totalWork )
|
||||||
{
|
{
|
||||||
gdouble fraction = ( totalWork > 0 ? progress / (gdouble)totalWork : 0 );
|
gdouble fraction = ( totalWork > 0 ? progress / (gdouble)totalWork : 0 );
|
||||||
|
|||||||
@@ -6,8 +6,8 @@ struct RageSurface;
|
|||||||
typedef const char *(*INIT)(int *argc, char ***argv);
|
typedef const char *(*INIT)(int *argc, char ***argv);
|
||||||
typedef void (*SHUTDOWN)();
|
typedef void (*SHUTDOWN)();
|
||||||
typedef void (*SETTEXT)( const char *s );
|
typedef void (*SETTEXT)( const char *s );
|
||||||
typedef void (*SETICON)( const RageSurface *pSrcImg );
|
//typedef void (*SETICON)( const RageSurface *pSrcImg );
|
||||||
//typedef void (*SETSPLASH)( const char *s );
|
typedef void (*SETSPLASH)( const char *s );
|
||||||
typedef void (*SETPROGRESS)( int progress, int totalWork );
|
typedef void (*SETPROGRESS)( int progress, int totalWork );
|
||||||
typedef void (*SETINDETERMINATE)( bool indeterminate );
|
typedef void (*SETINDETERMINATE)( bool indeterminate );
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user