Re: Glade signals
| From: | Guilherme Ramos | Date: | Mon, 07 Jan 2002 08:41:37 +0000 |
| Subject: | Re: Glade signals | ||
| References: | 1 2 | Groups: | php.gtk.general |
| Request: | Send a blank email to php-gtk-general+get-968@lists.php.net to get a copy of this message | ||
Is it possible to have different buttons using the same signal, to do
different things in Glade?
Let me explain..
I have 4 dialog windows... in each one there is a CLOSE button.
All the 4 buttons have the same signal, 'on_button_clicked'.
I go to my php, and create a function with this name, that..
$dialog_name -> hide();
This only works if before that I do something like..
$dialog_name = $gx -> get_widget('dialog1');
So.. my problem is that I want to use the same on_button_clicked function,
and not be forced to define a variable with get_widget for each and every
widget I want to use..
Can't I make it on the fly?
Function on_button_clicked($widget_name) {
$wid = $gx -> get_widget($widget_name);
$wid -> hide();
}
How can I send that variable, $widget_name, from within the Glade GUI
(without need to code the variables)?
Without glade this is possible!