THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY.

The following task has a new comment added:

FS#757 - Image/Drawing System Overhaul With Cairo Bias
User who did this - Uli Schlachter (psychon)

----------
Ok, I got a less ugly hack. This one drops "image" completely and replaces 
everything with oocairo's surface. I got this as split-up commits laying around, but I'll 
attach the complete diff.

Just because I could, I changed the API of the imagebox. Instead of "imgbox.image = foo", 
it's now "imgbox:draw(foo)". This should make it clearer that the imagebox isn't 
automatically updated when the image changes (it creates a private copy of the image).
Instead of adding the necessary modifications to awful & co, I reimplemented 
the old image code in lua. That should most likely be dropped and fixed before this 
is pushed anywhere.

The second patch is what is needed for oocairo. Please note that the first 
patch does this uglyness to CMakeList.txt, no idea how to properly fix that yet:

 target_link_libraries(${PROJECT_AWE_NAME}
    ${AWESOME_COMMON_REQUIRED_LIBRARIES}
    ${AWESOME_REQUIRED_LIBRARIES}
-    ${AWESOME_OPTIONAL_LIBRARIES})
+    ${AWESOME_OPTIONAL_LIBRARIES}
+    /home/psychon/projects/lua-oocairo/.libs/liblua-oocairo.a)

Diffstat:
CMakeLists.txt                 |    4 +-
awesome.c                      |   42 ++
awesomerc.lua.in               |    3 +
common/tokenize.gperf          |    4 +-
draw.c                         |   40 +--
draw.h                         |    3 +-
ewmh.c                         |    2 +-
globalconf.h                   |    6 +
lib/awful/widget/button.lua.in |    4 +-
lib/awful/widget/common.lua.in |   13 +-
lib/cairo.lua.in               |   81 ++++
luaa.c                         |    3 -
luaa.h                         |    1 +
objects/client.c               |   25 +-
objects/client.h               |    2 +-
objects/image.c                |  834 ----------------------------------------
objects/image.h                |   41 --
objects/wibox.c                |  128 +------
objects/wibox.h                |   12 +-
objects/widget.c               |    2 +-
objects/widgets/imagebox.c     |   52 ++-
objects/widgets/textbox.c      |   28 +-
22 files changed, 248 insertions(+), 1082 deletions(-)
----------

One or more files have been attached.

More information can be found at the following URL:
http://awesome.naquadah.org/bugs/index.php?do=details&task_id=757#comment2265

You are receiving this message because you have requested it from the Flyspray 
bugtracking system.  If you did not expect this message or don't want to 
receive mails in future, you can change your notification settings at the URL 
shown above.

--
To unsubscribe, send mail to awesome-devel-unsubscr...@naquadah.org.

Reply via email to