Re: gdk_draw_string deprecated?

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

 



Hi,

Andrej Prsa <andrej.prsa@xxxxxxxxxxxxxx> writes:

> > > Could anyone tell me what to use if gdk_draw_string and 
> > > gdk_draw_text are deprecated? I want to put labels to my 
> > > graph on a drawable?
> > 
> > PangoLayout, I think. There is some information here:
> > http://developer.gnome.org/dotplan/porting/ar01s10.html
> 
> Thanks; I'm trying to make a transition and the following bugs me already:
> 
> 	PangoContext *context = pango_context_new ();

You should ask the widget you want to draw on to generate the
PangoLayout for you. No need to fiddle with PangoContext here.
Try to use gtk_widget_create_pango_layout() instead.
 

Sven
_______________________________________________

gtk-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gtk-list

[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux