Federico Mena Quintero wrote:
> 
> >  If I set (in glade) the X2 en Y2 of the GnomeCanvas to 200 (both)
> >  instead of the default 100 and put some text on the canvas at the
> >  top-left (0,0) coordinates it will only show up half and I can't
> >  move up with the scrollbar (only downwards).  am I doing something
> >  wrong? (If I leave the X2 and Y2 at 100 the text will show up at
> >  the right position)
> 
> Do you have some example code that shows this problem?

I've had problems with the scrolling region as well (not in Glade).

If the scrolling region is smaller than the canvas' allocated area,
the scrolling region is moved to the middle/bottom? of the canvas,
whereas I want it to stay in the top-left. I don't know if that was
intentional.


Another problem is that the canvas uses double-buffering to draw, but
leaves the window with a background color, so by default it still
flickers a lot (especially when scrolling). I have to do this whenever
I use a canvas:

/* Turn off the background of the canvas windows. This reduces flicker
   considerably when scrolling. (Why isn't it in GnomeCanvas?). */
static void
meeting_time_selector_on_canvas_realized (GtkWidget *widget,
                                          MeetingTimeSelector *mts)
{
        gdk_window_set_back_pixmap (GTK_LAYOUT (widget)->bin_window,
                                    NULL, FALSE);
}

Damon



+---------------------------------------------------------------------+
To unsubscribe from this list, send a message to [EMAIL PROTECTED]
with the line "unsubscribe glade-devel" in the body of the message.

Reply via email to