Can't handle events from combobox?
- From: Diego Zuccato <diego otello alma unibo it>
- To: gtk-list <gtk-list gnome org>
- Subject: Can't handle events from combobox?
- Date: Tue, 13 Dec 2005 15:44:51 +0100
Hello all.
I'm having troubles trying to catch keyboard events from a combobox.
What I'm doing is a simple
g_signal_connect(G_OBJECT(combo), "key_press_event",
G_CALLBACK(reset_combo), NULL);
just after setting the model and before selecting (eventually) a default
for that combo.
reset_combo() just prints an asterisk and returns.
But I can't get that damned asterisk printed :(
"Standard" controls work as expected, but my callback is never called.
Can't see the difference between my grabbing and the grab done by Gtk+
internally in the GtkComboBox source.
Any hint? Something obvious I couldn't see?
Tks,
Diego.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]