diff options
author | Félix Piédallu | 2017-08-18 12:34:35 +0200 |
---|---|---|
committer | Félix Piédallu | 2017-08-18 12:34:35 +0200 |
commit | c3423f8518aa1aeafe2557e2d2c85021e030592d (patch) | |
tree | befc50c935916d39d18c6ed9ea732dfb5151a803 /livewallpaper.patch | |
parent | 22448af8f265b85e2ab3965b62b04866a11725c2 (diff) | |
download | aur-c3423f8518aa1aeafe2557e2d2c85021e030592d.tar.gz |
refactoring pkgbuild ; use patch file ; fix ref()
Diffstat (limited to 'livewallpaper.patch')
-rw-r--r-- | livewallpaper.patch | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/livewallpaper.patch b/livewallpaper.patch new file mode 100644 index 000000000000..436b319d7fe0 --- /dev/null +++ b/livewallpaper.patch @@ -0,0 +1,53 @@ +diff --git a/livewallpaper-0.5.0/CMakeLists.txt b/livewallpaper-0.5.0/CMakeLists.txt +--- a/livewallpaper-0.5.0/CMakeLists.txt ++++ b/livewallpaper-0.5.0/CMakeLists.txt +@@ -66,10 +66,8 @@ add_subdirectory(cmake) + add_subdirectory(ui) + add_subdirectory(po) + add_subdirectory(plugins) +-add_subdirectory(doc) + add_subdirectory(tools) + +-add_subdirectory(debian) + + livewallpaper_plugin_post_install() + +diff --git a/livewallpaper-0.5.0/plugins/circles/circles.py b/livewallpaper-0.5.0/plugins/circles/circles.py +--- a/livewallpaper-0.5.0/plugins/circles/circles.py ++++ b/livewallpaper-0.5.0/plugins/circles/circles.py +@@ -1,3 +1,4 @@ ++#!/usr/bin/python3 + # + # + # Livewallpaper +diff --git a/livewallpaper-0.5.0/plugins/photoslide/photoslide.py b/livewallpaper-0.5.0/plugins/photoslide/photoslide.py +--- a/livewallpaper-0.5.0/plugins/photoslide/photoslide.py ++++ b/livewallpaper-0.5.0/plugins/photoslide/photoslide.py +@@ -1,3 +1,4 @@ ++#!/usr/bin/python3 + # + # + # Livewallpaper Photoslide Plugins +@@ -205,8 +206,8 @@ class PhotoslidePlugin(GObject.Object, LW.Wallpaper): + if pixbuf: + width = pixbuf.get_width() + height = pixbuf.get_height() +- img = Image.fromstring("RGBA", (width, height), pixbuf.get_pixels()) +- imgarr = array.array("B", img.convert("RGBA").tostring("raw", "BGRA")) ++ img = Image.frombytes("RGBA", (width, height), pixbuf.get_pixels()) ++ imgarr = array.array("B", img.convert("RGBA").tobytes("raw", "BGRA")) + imgsurface = cairo.ImageSurface.create_for_data(imgarr, cairo.FORMAT_ARGB32, width, height, width * 4) + cr.set_source_surface(imgsurface, (self.img_width - width) / 2, (self.img_height - height) / 2) + cr.paint() +diff --git a/livewallpaper-0.5.0/ui/config/files-selector.vala b/livewallpaper-0.5.0/ui/config/files-selector.vala +--- a/livewallpaper-0.5.0/ui/config/files-selector.vala ++++ b/livewallpaper-0.5.0/ui/config/files-selector.vala +@@ -55,7 +55,7 @@ public class FilesSelector : Box { + if (ts.count_selected_rows () > 0) { + TreeIter it; + ts.get_selected (null, out it); +- model.remove (it); ++ model.remove(ref it); + value_changed (this.get_values()); + } + } |