|
|
| Author |
Message |
|
|
killocan Familiar Face
Joined: 23 Jan 2008 Posts: 18 Location: Brasil
|
Posted: Fri Feb 15, 2008 6:14 pm Post subject: Simulating button click |
|
|
| Hey! i'm trying to simulate a button click on my application, but i got a problem :) i use gtk_button_clicked method to send a "clicked" "signal", but although i receive the event, my button doesn't "click". When i say "click" i mean "click animation" you know?! the GUI effect. I wanna to "looks like" i click on the button with mouse for example. Thanks :) |
|
| Back to top |
|
 |
kharrison Familiar Face
Joined: 03 Oct 2007 Posts: 25 Location: Virginia (Northern)
|
Posted: Sun Feb 17, 2008 3:46 am Post subject: |
|
|
I got tired of trying to solve some of my own Gtk problems, saw yours and thought it was more interesting... LOL
Use this to simulate a button click:
GtkButton *button = gtk_button_new_with_label("Test Button");
gtk_signal_emit_by_name( GTK_OBJECT( button ), "activate" );
Kirk |
|
| Back to top |
|
 |
killocan Familiar Face
Joined: 23 Jan 2008 Posts: 18 Location: Brasil
|
Posted: Mon Feb 18, 2008 2:44 pm Post subject: :) |
|
|
| It's works! thanks a lot! |
|
| Back to top |
|
 |
|