notebook again
| From: | Christian Machmeier | Date: | Thu, 11 Sep 2003 12:47:00 +0000 |
| Subject: | notebook again | ||
| Groups: | php.gtk.general | ||
| Request: | Send a blank email to php-gtk-general+get-3873@lists.php.net to get a copy of this message | ||
Hy NG!
The problem is that the function call now gets executed every time i
click a tab and also as often as I have tabs (so four times). I tried to
use
$employeesLabel = $glade->get_widget('employees');
$employeesLabel->connect('button-press-event', 'loadEmployees');
and
$employeesLabel = $glade->get_widget('employees');
$employeesLabel->set_events(GDK_BUTTON_PRESS_MASK);
$employeesLabel->connect('event', 'loadEmployees');
The first doesn't execute the function "loadEmployees".
The second throws
(scs.php:1768): Gtk-CRITICAL **: file gtkwidget.c: line 3833
(gtk_widget_set_events): assertion `!GTK_WIDGET_NO_WINDOW (widget)'
failed
can anybody please help?
regards > christian