Re: Scale Gtk::Image
- From: Murray Cumming <murrayc murrayc com>
- To: Daniel Elstner <daniel kitta googlemail com>
- Cc: gtkmm-list gnome org
- Subject: Re: Scale Gtk::Image
- Date: Fri, 26 Jun 2009 22:24:20 +0200
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 murrayc com
www.murrayc.com
www.openismus.com
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]