updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / stepmania-svn / stepmania-svn-window-icons.patch
blob6ad44d5d56a2c5afd56eac9284867e4bdbfce0b1
1 --- stepmania-cvs-orig/src/archutils/Unix/X11Helper.cpp 2006-12-18 19:42:26.000000000 -0600
2 +++ stepmania-cvs/src/archutils/Unix/X11Helper.cpp 2007-02-13 00:10:24.000000000 -0600
3 @@ -1,3 +1,6 @@
4 +#include <X11/xpm.h>
5 +#include "stepmania.xpm"
7 #include "global.h"
8 #include "X11Helper.h"
9 #include "RageLog.h"
10 @@ -73,6 +76,16 @@
11 XFreeCursor( Dpy, pBlankPointer );
14 + Pixmap step_win_icon, step_win_mask;
15 + XpmCreatePixmapFromData(Dpy, win, stepmania_icon, &step_win_icon, &step_win_mask, NULL);
16 + XWMHints* win_hints;
17 + win_hints = XAllocWMHints();
18 + win_hints->flags = IconPixmapHint | IconMaskHint;
19 + win_hints->icon_pixmap = step_win_icon;
20 + win_hints->icon_mask = step_win_mask;
21 + XSetWMHints(Dpy, win, win_hints);
22 + XFree(win_hints);
24 return true;
28 --- stepmania-cvs-orig/autoconf/m4/opengl.m4 2006-06-27 19:56:00.000000000 -0500
29 +++ stepmania-cvs/autoconf/m4/opengl.m4 2007-02-13 00:14:47.000000000 -0600
30 @@ -51,6 +51,7 @@
31 no_x = yes
32 else
33 XLIBS="$XLIBS -lXrandr"
34 + AC_CHECK_LIB(Xpm, XpmCreatePixmapFromData, XLIBS="$XLIBS -lXpm")
37 AM_CONDITIONAL(HAVE_X11, test "$no_x" != "yes")
39 --- stepmania-cvs-orig/src/arch/LoadingWindow/LoadingWindow_GtkModule.cpp 2004-09-13 18:39:33.000000000 -0500
40 +++ stepmania-cvs/src/arch/LoadingWindow/LoadingWindow_GtkModule.cpp 2007-03-26 06:13:47.000000000 -0500
41 @@ -3,6 +3,7 @@
43 #include <gtk/gtk.h>
44 #include "loading.xpm"
45 +#include "stepmania.xpm"
47 static GtkWidget *label;
48 static GtkWidget *window;
49 @@ -12,6 +13,7 @@
50 GdkPixmap *loadmap;
51 GtkWidget *vbox;
52 GtkWidget *loadimage;
53 + GdkPixbuf *load_win_icon;
55 gtk_disable_setlocale();
56 if( !gtk_init_check(argc,argv) )
57 @@ -22,6 +24,9 @@
58 gtk_widget_realize(window);
59 loadmap = gdk_pixmap_create_from_xpm_d(window->window,NULL,NULL,loading);
60 loadimage = gtk_image_new_from_pixmap(loadmap,NULL);
61 + load_win_icon = gdk_pixbuf_new_from_xpm_data((const char**)stepmania_icon);
62 + gtk_window_set_icon(GTK_WINDOW(window), load_win_icon);
63 + g_object_unref (load_win_icon);
64 label = gtk_label_new(NULL);
65 gtk_label_set_justify(GTK_LABEL(label),GTK_JUSTIFY_CENTER);
66 vbox = gtk_vbox_new(FALSE,5);