Why don't you want to draw the text you need in your "expose" function?
You simply redefine the GtkWidgetClass "expose-event" and draw there.

On Mon, 2008-04-14 at 12:55 +0200, Francesco Sepic wrote:
> On Mon, Apr 14, 2008 at 12:31 PM, Alexander Semenov <[EMAIL PROTECTED]> wrote:
> > Hi.
> >
> >  What about drawing GdkPixbuf and then your text on GdkWindow?
> >
> 
> I'm drawing a scale bar on a map and I'd like to have different types
> of scale bar.
> The position of the text that i have to draw (for example "50 km")
> depends on specific scale bar.
> So i want to create different functions that return a GdkPixbuf with
> the text already rendered.
> 
> Thanks.

_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Reply via email to