fix build

This commit is contained in:
Matthias Clasen 2011-02-11 14:30:40 -05:00
parent e6698dd56a
commit 825282620f
2 changed files with 16 additions and 0 deletions

12
gnome-shell-gtk3.patch Normal file
View File

@ -0,0 +1,12 @@
diff -up gnome-shell-2.91.6/src/shell-doc-system.c.gtk3 gnome-shell-2.91.6/src/shell-doc-system.c
--- gnome-shell-2.91.6/src/shell-doc-system.c.gtk3 2011-02-11 14:28:01.940113427 -0500
+++ gnome-shell-2.91.6/src/shell-doc-system.c 2011-02-11 14:27:38.853402050 -0500
@@ -254,7 +254,7 @@ shell_doc_system_open (ShellDocSystem *s
else
{
char *app_name;
-#if GTK_MINOR_VERSION >= 18
+#if GTK_MAJOR_VERSION >= 3 || GTK_MINOR_VERSION >= 18
const char *app_exec;
#else
char *app_exec;

View File

@ -59,6 +59,9 @@ Requires: mutter >= %{mutter_version}
#Requires: xorg-x11-server-Xephyr #Requires: xorg-x11-server-Xephyr
#Requires: xorg-x11-xauth #Requires: xorg-x11-xauth
# upstream fix
Patch0: gnome-shell-gtk3.patch
%description %description
GNOME Shell provides core user interface functions for the GNOME 3 desktop, GNOME Shell provides core user interface functions for the GNOME 3 desktop,
like switching to windows and launching applications. GNOME Shell takes like switching to windows and launching applications. GNOME Shell takes
@ -68,6 +71,7 @@ easy to use experience.
%prep %prep
%setup -q %setup -q
%patch0 -p1 -b .gtk3
%build %build
(if ! test -x configure; then NOCONFIGURE=1 ./autogen.sh; fi; (if ! test -x configure; then NOCONFIGURE=1 ./autogen.sh; fi;