Re: simple example of gtk-scrolled-window not working



David Morse wrote:
[...]
The source is attached,

hehe, no its not.

you can quickly find the changed lines because
the originals are commented with the c++ '//' comments.  Basically I
replaced gtk_window_new() with gtk_scrolled_window_new(), and also
gtk_container_add() with gtk_scrolled_window_add_with_viewport().

GtkScrolledWindow is not a GtkWindow derivative or replacement
(although the name might sound misleading).

A GtkWindow *must* be present as a toplevel, you can add anything
to the GtkWindow as it is a GtkBin (and GtkContainer).

So put your GtkScrolledWindow inside the GtkWindow and all should
work fine.

Cheers,
                      -Tristan

Note that you can use this page to easily see what object
derives from what:

http://developer.gnome.org/doc/API/2.0/gtk/ch01.html
(I usualy browse the docs from here).



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