[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: Simulating a button press
- From: Havoc Pennington <rhp zirx pair com>
- To: gtk-app-devel-list redhat com
- Subject: Re: Simulating a button press
- Date: Mon, 7 Jun 1999 17:30:31 -0400 (EDT)
On 7 Jun 1999, Colin Marquardt wrote:
>
> IŽd say it could be done with gtk_signal_emit_by_name().
>
Be careful - this is allowed for "clicked," but not for "pressed."
"clicked" is a GTK_RUN_ACTION signal, which means you don't have to do any
special setup or shutdown when you emit it.
"pressed," however, is not; you need to use the gtk_button_pressed()
function to emit it. gtk_button_pressed() doesn't actually do any setup or
shutdown; but technically speaking, it could.
There's also a gtk_button_clicked() to emit the "clicked" signal; but this
is just for convenience, rather than an API you must use.
Havoc
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]