1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
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());
}
}
|