1
From 50ba20346c5a28dac5522c4a2da54c62a46efb3e Mon Sep 17 00:00:00 2001
2
From: Sam Spilsbury <sam.spilsbury@canonical.com>
3
Date: Mon, 28 Feb 2011 17:42:27 +0800
4
Subject: [PATCH 2/3] Fix the loading and installation of images - core images should
5
be under the core plugin, freedesktop.png moved to cube
6
and load images based on the actual install dirs
10
images/CMakeLists.txt | 3 +--
11
src/CMakeLists.txt | 2 +-
12
src/screen.cpp | 13 +++++++++----
13
4 files changed, 12 insertions(+), 8 deletions(-)
15
Index: compiz-0.9.4/CMakeLists.txt
16
===================================================================
17
--- compiz-0.9.4.orig/CMakeLists.txt 2011-03-01 02:16:07.319362600 +0800
18
+++ compiz-0.9.4/CMakeLists.txt 2011-03-01 02:16:07.479362839 +0800
20
endif (COMPIZ_PACKAGING_ENABLED)
22
set (compiz_plugindir ${libdir}/compiz)
23
-set (compiz_imagedir ${datadir}/compiz/images)
24
+set (compiz_sharedir ${datadir}/compiz/)
25
set (compiz_metadatadir ${datadir}/compiz)
26
set (COMPIZ_I18N_DIR ${CMAKE_SOURCE_DIR}/po)
28
Index: compiz-0.9.4/images/CMakeLists.txt
29
===================================================================
30
--- compiz-0.9.4.orig/images/CMakeLists.txt 2011-02-24 17:27:13.000000000 +0800
31
+++ compiz-0.9.4/images/CMakeLists.txt 2011-03-01 02:16:07.479362839 +0800
41
- DESTINATION ${COMPIZ_DESTDIR}${compiz_imagedir}
42
+ DESTINATION ${COMPIZ_DESTDIR}${compiz_sharedir}
44
Index: compiz-0.9.4/src/CMakeLists.txt
45
===================================================================
46
--- compiz-0.9.4.orig/src/CMakeLists.txt 2011-02-24 17:27:13.000000000 +0800
47
+++ compiz-0.9.4/src/CMakeLists.txt 2011-03-01 02:16:07.479362839 +0800
51
-DPLUGINDIR=\\\"${compiz_plugindir}\\\"
52
- -DIMAGEDIR=\\\"${compiz_imagedir}\\\"
53
+ -DSHAREDIR=\\\"${compiz_sharedir}\\\"
54
-DMETADATADIR=\\\"${compiz_metadatadir}\\\"
57
Index: compiz-0.9.4/src/screen.cpp
58
===================================================================
59
--- compiz-0.9.4.orig/src/screen.cpp 2011-02-24 17:27:13.000000000 +0800
60
+++ compiz-0.9.4/src/screen.cpp 2011-03-01 02:16:07.479362839 +0800
65
-#define HOME_IMAGEDIR ".compiz-1/images"
66
+#define IMAGEDIR "images"
67
+#define HOMECOMPIZDIR ".compiz-1"
70
CompScreen::readImageFromFile (CompString &name,
71
@@ -1081,10 +1082,12 @@
75
- path += HOME_IMAGEDIR;
76
+ path += HOMECOMPIZDIR;
84
status = fileToImage (path, size, stride, data);
85
@@ -1093,10 +1096,12 @@
97
status = fileToImage (path, size, stride, data);
100
CompScreen::updateDefaultIcon ()
102
CompString file = priv->optionGetDefaultIcon ();
103
- CompString pname = "";
104
+ CompString pname = "core/";