Re: Gtk::window.present() doesn't always present
- From: "Elijah Newren" <newren gmail com>
- To: "Harm Hamberg" <h hamberg dynamicc-welding biz>
- Cc: metacity-devel-list gnome org, gtkmm-list gnome org
- Subject: Re: Gtk::window.present() doesn't always present
- Date: Sat, 15 Jul 2006 10:33:50 -0600
On 7/15/06, Harm Hamberg <h hamberg dynamicc-welding biz> wrote:
Great! But how can I get the timestamp from a
Gtk::Button::signal_clicked()? Should I override the on_frame_event and save
the last timestamp?
gtk+ keeps track of events it is processing. It has the notion of a
"current event" that it is processing (which may be NULL), and there
are methods to access this information. When you're in a
signal_clicked handler, gtk's current event is the button press event
that caused that handler to be called. Using gtk_get_current_event(),
you can get that event, and then just access its time member. I tried
looking in the gtkmm documentation to see if that function was wrapped
and had a different name, but didn't find anything.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]