Re: Patch for GtkLayout (was: GnomeCanvas and zooming)



Hi Arjan,

On Wed, 17 Oct 2001, Arjan J. Molenaar wrote:
> The zooming problem wasn't a problem related to GnomeCanvas directly.
> It was a lack of updating in the gtk_layout_thaw() function. Here is a
> small patch:

        Ah; ok - we need to send the patch to gtk-devel; guys can you
process this fix suggestion ?

> ------8<----------------------------------
>
> --- gtklayout.c.orig  Wed Oct 17 15:27:06 2001
> +++ gtklayout.c       Wed Oct 17 15:28:03 2001
> @@ -516,7 +516,7 @@
>
>    if (layout->freeze_count)
>      if (!(--layout->freeze_count))
> -      gtk_widget_draw (GTK_WIDGET (layout), NULL);
> +      gtk_layout_adjustment_changed (NULL, layout);
>  }
>
>  /* Basic Object handling procedures
>
> ------------------------------>8------------

        Also; the gtk_layout_freeze/thaw is marked deprecated inside gtk+,
so quite possibly we need to absorb this code into the canvas itself, with
our own canvas freeze / thaw - if in fact this is neccessary; what do you
think ?

        Anyway - well caught.

        Regards,

                Michael.

-- 
 mmeeks gnu org  <><, Pseudo Engineer, itinerant idiot




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