From ceee3b9ffbeaf49921b193a996b59f1817367006 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Thu, 19 Jan 2012 19:47:29 -0500 Subject: [PATCH] Adapt to gtk api change --- mutter-backdrop.patch | 14 ++++++++++++++ mutter.spec | 4 ++++ 2 files changed, 18 insertions(+) create mode 100644 mutter-backdrop.patch diff --git a/mutter-backdrop.patch b/mutter-backdrop.patch new file mode 100644 index 0000000..a8263c2 --- /dev/null +++ b/mutter-backdrop.patch @@ -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 */ + } diff --git a/mutter.spec b/mutter.spec index c98c242..265074b 100644 --- a/mutter.spec +++ b/mutter.spec @@ -8,6 +8,9 @@ License: GPLv2+ #VCS: git:git://git.gnome.org/mutter 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: pango-devel BuildRequires: startup-notification-devel @@ -59,6 +62,7 @@ utilities for testing Metacity/Mutter themes. %prep %setup -q +%patch0 -p1 %build (if ! test -x configure; then NOCONFIGURE=1 ./autogen.sh; fi;