Adapt to gtk api change

This commit is contained in:
Matthias Clasen 2012-01-19 19:47:29 -05:00
parent d0e9fdccd8
commit ceee3b9ffb
2 changed files with 18 additions and 0 deletions

14
mutter-backdrop.patch Normal file
View File

@ -0,0 +1,14 @@
diff -up mutter-3.3.3/src/ui/theme.c.backdrop mutter-3.3.3/src/ui/theme.c
--- mutter-3.3.3/src/ui/theme.c.backdrop 2012-01-19 19:45:38.383441711 -0500
+++ mutter-3.3.3/src/ui/theme.c 2012-01-19 19:46:33.558445340 -0500
@@ -6403,8 +6403,8 @@ meta_gtk_state_from_string (const char *
return GTK_STATE_FLAG_INCONSISTENT;
else if (g_ascii_strcasecmp ("focused", str) == 0)
return GTK_STATE_FLAG_FOCUSED;
- else if (g_ascii_strcasecmp ("window-unfocused", str) == 0)
- return GTK_STATE_FLAG_WINDOW_UNFOCUSED;
+ else if (g_ascii_strcasecmp ("backdrop", str) == 0)
+ return GTK_STATE_FLAG_BACKDROP;
else
return -1; /* hack */
}

View File

@ -8,6 +8,9 @@ License: GPLv2+
#VCS: git:git://git.gnome.org/mutter #VCS: git:git://git.gnome.org/mutter
Source0: http://download.gnome.org/sources/%{name}/3.3/%{name}-%{version}.tar.xz Source0: http://download.gnome.org/sources/%{name}/3.3/%{name}-%{version}.tar.xz
# upstream fix
Patch0: mutter-backdrop.patch
BuildRequires: clutter-devel >= 1.7.5 BuildRequires: clutter-devel >= 1.7.5
BuildRequires: pango-devel BuildRequires: pango-devel
BuildRequires: startup-notification-devel BuildRequires: startup-notification-devel
@ -59,6 +62,7 @@ utilities for testing Metacity/Mutter themes.
%prep %prep
%setup -q %setup -q
%patch0 -p1
%build %build
(if ! test -x configure; then NOCONFIGURE=1 ./autogen.sh; fi; (if ! test -x configure; then NOCONFIGURE=1 ./autogen.sh; fi;