Re: Equivalent to low-level text draws



> > > BTW, why is Cairo even mentioned in
> > > http://gtkmm.org/docs/gtkmm-2.4/docs/tutorial/html/ch15.html if it was
> > > apparently added in gtk 2.9?
> >
> > very confusingly, gtkmm-2.4 is an *API* version, not a release version.
> > it defines a stable, source and binary compatible API that has been
> > maintained from GTK+ 2.something until the present. I don't consider
> > this nomenclature ideal, but its what we have.
> 
> >From the gtkmm-2.4 docs
> ---------
> Cairo::RefPtr<Cairo::Context> Gdk::Drawable::create_cairo_context  	(
> 	  	 )
> 
> Creates a Cairo context for drawing to drawable .
> 
> Returns:
>     A newly created Cairo context.
> 
> Since gtkmm 2.10:
> ---------
> 
> I can understand if gtkmm-2.4 corresponds to gtk+ 2.9, but having
> gtkmm-2.4 correspond to gtkmm 2.10 makes no sense whatsoever.

I am not going to defend the naming convention, because i think its
silly too. However, I as explaining to you what it was.

	gtkmm-2.4  : API version
	gtkmm 2.10 : release version

the difference is small, subtle and IMHO silly. but that *is* the
difference. Is it clear now?

> I tried the clock example from
> http://gtkmm.org/docs/gtkmm-2.4/docs/tutorial/html/ch15s07.html , but
> that gave the error of
> 
> $ g++ *.cc `pkg-config gtkmm-2.4 --cflags --libs` `pkg-config
> cairomm-1.0 --cflags --libs`
> clock.cc: In member function 'virtual bool
> Clock::on_expose_event(GdkEventExpose*)':
> clock.cc:26: error: 'class Gdk::Window' has no member named
> 'create_cairo_context'
> 
> I have
> ii  libgtkmm-2.4-1c2a 2.10.8-0ubuntu1 C++ wrappers for GTK+ 2.4
> (shared libraries)
> ii  libgtkmm-2.4-dev  2.10.8-0ubuntu1 C++ wrappers for GTK+ 2.4
> (development files

I suspect that your gtkmm 2.10.8 package was built incorrectly, or your
build environment is messed up. the missing function should be present.

--p






[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]