GtkLabel wrapping, GdkPixbuf pixels



Hi

I have two questions.

1) How can I make a GtkLabel wrap by character? Using
gtk_label_set_line_wrap() makes it wrap by word only.

2) How do I get a pixel from a a GdkPixbuf? I need to get the color from
a pixel in a .png file and use it to create a pango attribute using
pango_attr_foreground_new(guint16 red, guint16 green, guint16 blue).

Thanks in advance.

Trevor Spiteri





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