Patch for GtkLayout (was: GnomeCanvas and zooming)
- From: "Arjan J. Molenaar" <A J Molenaar xirion nl>
- To: "'Michael Meeks'" <michael ximian com>
- Cc: "'gnome-2-0-list gnome org'" <gnome-2-0-list gnome org>
- Subject: Patch for GtkLayout (was: GnomeCanvas and zooming)
- Date: Wed, 17 Oct 2001 15:50:57 +0200
Hi,
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:
------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------------
Regards,
Arjan
> From: Arjan J. Molenaar [mailto:A J Molenaar xirion nl]
> > From: Michael Meeks [mailto:michael ximian com]
> > On Tue, 16 Oct 2001, Arjan J. Molenaar wrote:
> > > I am coding on a library (DiaCanvas2) that uses the GnomeCanvas. I
> > > have no idea who is responsible for this library so I
> send this mail
> > > to this list...
> >
> > Wow - it'd be great if the new Dia canvas could be more
> > substantialy based on the GnomeCanvas - good news.
>
> I hope so, so far only the name is related to DIA, not the canvas ;-(.
>
> > > It looks like GnomeCanvas has some diffculty with the
> > zoom-in/zoom-out
> > > functionality. It does not refresh it's window properly.
> I wonder if
> > > somebody is working on this right now (or maybe already
> has a patch
> > > ;-), otherwise I am willing to look into this...
> >
> > Um; are you sure you have the latest CVS version ?
>
> Yep.
>
> > I fixed a few
> > bugs wrt. panning like this a little while back.
> >
> > Either way - no-one is working on it particularly at
> > the moment,
> > so the field is clear for your fixes :-)
>
> I'll give it my best shot.
>
> Thanks,
>
> Arjan
> _______________________________________________
> gnome-2-0-list mailing list
> gnome-2-0-list gnome org
> http://mail.gnome.org/mailman/listinfo/gnome-2-0-list
>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]