Re: Implementing a LED-like widget

2005-08-26 Thread Rob Benton
Marcus Lundblad wrote: --- desk_indicator.hh: #include #include #ifndef DESK_INDICATOR #define DESK_INDICATOR class desk_indicator : public Gtk::Frame { public: desk_indicator(); ~desk_indicator(); void set_active(bool active =

Re: Implementing a LED-like widget

2005-08-24 Thread Matthias Langer
Marcus Lundblad wrote: On Tue, 23 Aug 2005, Antonio Coralles wrote: Marcus Lundblad wrote: I'm trying to implement a widget simulating a LED. What I have is a widget derived from Gtk::Frame (with style SHADOW_IN). This frame holds a Gtk::DrawingArea (display in the follwing code..) I have

Re: Implementing a LED-like widget

2005-08-24 Thread Marcus Lundblad
On Tue, 23 Aug 2005, Antonio Coralles wrote: Marcus Lundblad wrote: I'm trying to implement a widget simulating a LED. What I have is a widget derived from Gtk::Frame (with style SHADOW_IN). This frame holds a Gtk::DrawingArea (display in the follwing code..) I have the following code inten

Re: Implementing a LED-like widget

2005-08-23 Thread Kresimir Sojat
> I'm trying to implement a widget simulating a LED. > What I have is a widget derived from Gtk::Frame (with style SHADOW_IN). > This frame holds a Gtk::DrawingArea (display in the follwing code..) > > I have the following code intended to turn the inside of the widget yellow > (as an example). >

Re: Implementing a LED-like widget

2005-08-22 Thread Antonio Coralles
Marcus Lundblad wrote: I'm trying to implement a widget simulating a LED. What I have is a widget derived from Gtk::Frame (with style SHADOW_IN). This frame holds a Gtk::DrawingArea (display in the follwing code..) I have the following code intended to turn the inside of the widget yellow (as

Re: Implementing a LED-like widget

2005-08-22 Thread Nickolai Dobrynin
Oops, forgot to CC to everyone. *** Marcus, Can you possibly post more code? In particular, where does the second code fragment reside? Is it called from on_realize() or on_expose_event()? Drawing should normally be done in