Combo box and grab_focus()
- From: Arto Huusko <arto huusko utu fi>
- To: gtk-app-devel-list gnome org
- Subject: Combo box and grab_focus()
- Date: Sun, 14 Nov 2004 15:09:33 +0200
Hi, a simple question:
how can I grab focus to a combo box?
Doing a simple
gtk_widget_grab_focus(wdg)
where wdg has been created with gtk_combo_box_new_with_model()
does not work, because GTK_WIDGET_CAN_FOCUS() is FALSE
for combo boxes. It also appears that clicking on the combo
box with mouse does not grab the focus for the combo box.
However, if the first widget in my window happens to be a
combo box, it does receive focus -- so at least
GTK_WIDGET_CAN_FOCUS() returns the wrong value...
This is on gtk+ 2.4.11 (compiled from NetBSD pkgsrc).
--
Arto Huusko
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]