« Return to Thread: Scale Gtk::Image

Re: Scale Gtk::Image

by Murray Cumming :: Rate this Message:

Reply to Author | View in Thread

On Fri, 2009-06-26 at 21:50 +0200, Daniel Elstner wrote:

> So, yes, Murray's approach is fine in that regard. The code also
> avoids
> rescaling the image if the widget size hasn't changed, so there is no
> performance difference either.
>
> I called it "bold" purely on my gut feeling that changing the logical
> state of a widget while it is being drawn is asking for trouble.  The
> expose event handler is supposed to draw a representation of the
> current
> logical widget content, and not change the content.

Maybe that optimization was to prevent an infinite loop. I forget. But
I'll fix it to work as you suggest.

--
murrayc@...
www.murrayc.com
www.openismus.com

_______________________________________________
gtkmm-list mailing list
gtkmm-list@...
http://mail.gnome.org/mailman/listinfo/gtkmm-list

 « Return to Thread: Scale Gtk::Image