Cairo context creation problem
"Jianshi Huang" <[email protected]> Thu, 24 Jan 2008 22:03:21 +0900
| Newsgroups | gmane.lisp.clg.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi The code I used below is a little bit different to the testcairo examples. In testcairo, cairo context is created within the callback of expose-event, while in my code, I want to initialize the context and set it to a global variable, so that I don't need to pass it around. But running the program, there were errors told me that The slot GTK:WINDOW is unbound in the drawing-area object. After an hour of debugging, I finally found that if I place gdk:cairo-create after gtk:widget-show-all, then it works. So I'm wondering if it's caused by the initialization sequences in clg. And do you have any suggestions for using cairo efficiently in clg (like being a graphics editor within a scrolled-window) Best, Jianshi ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/