Re: Gtk / Cairo Question

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

 





On Thu, Jul 12, 2012 at 9:12 PM, Thomas Dineen <tdineen@xxxxxxxxxxxxx> wrote:

   The code shown is cut from a GTK Scrolled window example and is based on
gtk_dialog_new which from my experiments dose NOT allow Cairo drawing.

all drawing in GTK is done with Cairo.

you generally create a DrawingArea (or occasionally an EventBox) and draw into that, but ONLY from the expose/draw handler. pack the drawing area appropriately. the right things will happen.

the actual task you want to accomplish has many potential complications that i don't have the time to go into. your idea about scrolling is not necessarily the right one, but that depends a lot on many other aspects of the problem and data.

--p

_______________________________________________
gtk-list mailing list
gtk-list@xxxxxxxxx
https://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