[maemo-developers] [maemo-developers] Re: gtkmm and scratchbox: Gtk::DrawingArea problem

From: Murray Cumming murrayc at murrayc.com
Date: Sun Sep 10 17:35:02 EEST 2006
On Sat, 2006-09-09 at 22:29 +0300, Jarkko Palviainen wrote:
> On Sat, 09 Sep 2006 22:10:58 +0300, Murray Cumming <murrayc at murrayc.com>  
> wrote:
> 
> > On Sat, 2006-09-02 at 13:14 +0300, Jarkko Palviainen wrote:
> >> Hi,
> >> I'm trying to build simple drawing app for Nokia 770 IT2006 but here's  
> >> the
> >> problem:
> >> When compiling and running some example, like this
> >> http://www.gtkmm.org/gtkmm2/docs/tutorial/html/ch14s03.html#id2524813
> >> it goes well but just doesn't draw anything on Xephyr emulator, just  
> >> blank
> >> window. Compiling and running in normal Debian Sarge is fine, I can see
> >> those lines drawn. The problem seems to be related to on_expose_event()
> >> which is not called as I tested by debug printing in it. I can't use  
> >> cairo
> >> as I have to use glimm 2.8.9.
> >
> > Yes, the version of gtkmm that is in the maemo repository uses some
> > special optimizations. The most obvious change is that there are no
> > default signal handlers, so you must connect a signal handler instead of
> > just overriding the default one.
> >
> 
> Yep it seems to be something like that. I solved the problem using  
> different libraries pointed out in  
> http://home.comcast.net/~3rdshift/articles/Nokia770/Maemo.html (direct  
> link:  
> http://home.comcast.net/~3rdshift/articles/Nokia770/Nokia770-IT2006/deb/deb-index.html).  
> Now they work the usual way.

Really, it would be far more sensible to rewrite the code for the
slightly different API that is available in the maemo version of gtkmm,
as I described. The maemo version of gtkmm offers considerable code size
and runtime memory savings, at the cost of this small inconvenience.

[snip]

-- 
Murray Cumming
murrayc at murrayc.com
www.murrayc.com
www.openismus.com


More information about the maemo-developers mailing list