Re: [gtk-list] Re: How to correctly show() a widget (Gtk--)
- From: RNG <r gasch chello nl>
- To: gtk-list redhat com
- Subject: Re: [gtk-list] Re: How to correctly show() a widget (Gtk--)
- Date: Mon, 11 Oct 1999 11:33:15 +0200
On Mon, 11 Oct 1999, Havoc Pennington wrote:
> OK, there are some conceptual issues you need to be clearer about.
Unfortunateley you are correct ...
> You are implementing a widget here; the show_impl() and hide_impl()
> have certain responsiblities. My book at
> http://developer.gnome.org/doc/GGAD might help you out - see chapter 3,
> and then chapters 9, 10, and the one about writing widgets.
Been reading it for 1/2 hour now ... thanks ...
> - it doesn't make any sense to have a Gtk_Window as a member of
> a drawing area widget; and the drawing area's hide method should
> affect the drawing area, not the window, in any case
I think this is at the root of my problem. I wanted a window with a drawing
area and a menu. Being lazy, I just let my widget inherit Gtk_DrawingArea
and added a Gtk_Window. In retrospect, inheriting from Gtk_Window (and just
adding a drawing area) would have been better although I really like the
convenience of being able to say myDrawArea->drawLine (....).
> - the default show_impl and hide_impl for drawing area should work fine,
> I would not override them
Agreed, since they involve a drawing area ...
> That should get you started...
Muchos Gracias ...
--_> R
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]