diff --git a/srcpkgs/cinnamon/patches/cinnamon-settings-gtk.shadow.IN.patch b/srcpkgs/cinnamon/patches/cinnamon-settings-gtk.shadow.IN.patch deleted file mode 100644 index 2b17acd5291..00000000000 --- a/srcpkgs/cinnamon/patches/cinnamon-settings-gtk.shadow.IN.patch +++ /dev/null @@ -1,22 +0,0 @@ -A workaround for this error: - -Traceback (most recent call last): - File "/usr/lib/cinnamon-settings/cinnamon-settings.py", line 1838, in side_view_nav - sidePage.build() - File "/usr/lib/cinnamon-settings/cinnamon-settings.py", line 744, in build - scrolledWindow.set_shadow_type(Gtk.ShadowType.IN) -AttributeError: type object 'GtkShadowType' has no attribute 'IN' - -Disable the shadow type for now. - ---- files/usr/lib/cinnamon-settings/cinnamon-settings.py.orig 2012-09-22 16:47:36.560928739 +0200 -+++ files/usr/lib/cinnamon-settings/cinnamon-settings.py 2012-09-22 16:47:47.218674599 +0200 -@@ -741,7 +741,7 @@ class ThemeViewSidePage (SidePage): - iconView.select_path(self.model.get_path(self.active_theme_iter)) - iconView.connect("selection_changed", self.apply_theme ) - scrolledWindow.add(iconView) -- scrolledWindow.set_shadow_type(Gtk.ShadowType.IN) -+ scrolledWindow.set_shadow_type(Gtk.ShadowType.NONE) - link = Gtk.LinkButton("http://cinnamon-spices.linuxmint.com/themes") - link.set_label(_("Get new themes")) - cinnamon_theme_vbox.pack_start(link, False, False, 2) diff --git a/srcpkgs/cinnamon/template b/srcpkgs/cinnamon/template index c3af99e4eec..f15807e0b31 100644 --- a/srcpkgs/cinnamon/template +++ b/srcpkgs/cinnamon/template @@ -1,7 +1,7 @@ # Template file for 'cinnamon' pkgname=cinnamon version=1.6.0 -revision=4 +revision=5 wrksrc="linuxmint-Cinnamon-bd02368" build_style=gnu-configure configure_args="--disable-schemas-compile --enable-compile-warnings=yes @@ -33,8 +33,16 @@ long_desc=" pycompile_dirs="usr/lib/cinnamon-settings usr/lib/cinnamon-menu-editor" pre_configure() { + _cur="/usr/lib/gnome-session/gnome-session-check-accelerated" + _new="/usr/libexec/gnome-session-check-accelerated" + # Fix path to gnome-session-check-accelerated - sed -i -e "s|/usr/lib/gnome-session/gnome-session-check-accelerated|/usr/libexec/gnome-session-check-accelerated|g" \ + sed -i -e "s|${_cur}|${_new}|g" \ files/usr/share/gnome-session/sessions/cinnamon.session ./autogen.sh + + # Workaround for 'Unknown attribute IN (Gtk.ShadowType)' in + # cinnamon-settings. + sed -i -e "s|Gtk.ShadowType.IN|Gtk.ShadowType.NONE|g" \ + files/usr/lib/cinnamon-settings/cinnamon-settings.py }