Re: How to emit predefined signals in gtkmm.
- From: Paul Davis <paul linuxaudiosystems com>
- To: German Diago Gomez <al059365 alumail uji es>
- Cc: gtkmm-list gnome org
- Subject: Re: How to emit predefined signals in gtkmm.
- Date: Sun, 05 Nov 2006 08:44:49 -0500
On Sun, 2006-11-05 at 12:17 +0100, German Diago Gomez wrote:
>
> Hello. My question is quite simple, but I haven't been able to find such
> thing in the gtkmm documentation.
> I'm using cairo and a Gtk::DrawingArea derived class to draw inside a
> window in Gtk.
> The problem is that I get data from three entries in a function, and
> after that, I want to update the drawing of the area when a button is clicked.
> To update the drawing, if I'm right, I must do it from the
> on_expose_event overriden function in the Gtk::DrawingArea derived
> class. Since I want to update immediatly after calling the slot
> connected to signal_clicked() in my button, I must emit a signal
> signal_expose_event() if I'm not wrong.
> I looked at the documentation and I realized that
> signal_expose_event() doesn't return a sigc::signal but a proxy object.
> How can I emit a signal so that on_expose_event is called after clicking
> the button from the slot called for the button?
call ::queue_draw() for the widget you want redrawn and a synthetic
expose event will be sent to it at the right time.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]