summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoel Bosveld <joel@JOEL-UBUNTU.(none)>2007-12-17 22:23:17 +0900
committerJoel Bosveld <joel@JOEL-UBUNTU.(none)>2007-12-17 22:23:17 +0900
commit2be3fd62afe24d951220354d0ba933ec5f6cc303 (patch)
tree433f5376c5a10b53159bb676e1e3fe6129af324c
parent47a8b08d48752b018bda8954e0999fe8c27eb455 (diff)
downloadcubedbus-2be3fd62afe24d951220354d0ba933ec5f6cc303.tar.gz
cubedbus-2be3fd62afe24d951220354d0ba933ec5f6cc303.tar.bz2
Added script to draw model (really it is pointless, but I added it
anyways)
-rw-r--r--cubedbusModel.c.in1
-rwxr-xr-xscripts/model.sh3
2 files changed, 4 insertions, 0 deletions
diff --git a/cubedbusModel.c.in b/cubedbusModel.c.in
index ff865d8..0b28b57 100644
--- a/cubedbusModel.c.in
+++ b/cubedbusModel.c.in
@@ -195,6 +195,7 @@ cubedbusAddModelObject (CubedbusObject *obj, CompOption *option, int nOption)
mtllib[nMtllib]=strsep(&strline,delim);
if(mtllib[nMtllib] == NULL) break;
if(!strcmp(mtllib[nMtllib],"")) continue; /* if blank override next time */
+ compLogMessage(NULL, "cubedbus", CompLogLevelWarn, "basename: %s", basename (mtllib[nMtllib]) );
nMtllib++;
}
}
diff --git a/scripts/model.sh b/scripts/model.sh
new file mode 100755
index 0000000..67df481
--- /dev/null
+++ b/scripts/model.sh
@@ -0,0 +1,3 @@
+dbus-send --type=method_call --dest=org.freedesktop.compiz /org/freedesktop/compiz/cubedbus/allscreens/add org.freedesktop.compiz.activate string:'root' int32:`xwininfo -root | grep id: | awk '{ print $4 }'` string:'type' int32:5 string:'name' string:'root.model' string:'file' string:$1
+
+#Run this in terminal - accepts as argument 1 .obj file