Load Data/splash.png on Linux like OSX and Windows do. Patch from howl (http://www.stepmania.com/forums/showthread.php?p=157340#post157340)

This commit is contained in:
Colby Klein
2009-11-10 01:37:46 +00:00
parent 8a33455fde
commit 54ccc2e5a7
2 changed files with 2 additions and 4300 deletions
@@ -2,14 +2,13 @@
#include "LoadingWindow_GtkModule.h"
#include <gtk/gtk.h>
#include "loading.xpm"
static GtkWidget *label;
static GtkWidget *window;
extern "C" const char *Init( int *argc, char ***argv )
{
GdkPixmap *loadmap;
const gchar *splash_image_path = "Data/splash.png";
GtkWidget *vbox;
GtkWidget *loadimage;
@@ -20,8 +19,7 @@ extern "C" const char *Init( int *argc, char ***argv )
window = gtk_window_new(GTK_WINDOW_TOPLEVEL);
gtk_window_set_position( GTK_WINDOW(window), GTK_WIN_POS_CENTER );
gtk_widget_realize(window);
loadmap = gdk_pixmap_create_from_xpm_d(window->window,NULL,NULL,loading);
loadimage = gtk_image_new_from_pixmap(loadmap,NULL);
loadimage = gtk_image_new_from_file(splash_image_path);
label = gtk_label_new(NULL);
gtk_label_set_justify(GTK_LABEL(label),GTK_JUSTIFY_CENTER);
vbox = gtk_vbox_new(FALSE,5);
File diff suppressed because it is too large Load Diff