[Glade-users] GtkEntry not receiving focus as it should
- From: insomninja at gmail.com (Leo -)
- Subject: [Glade-users] GtkEntry not receiving focus as it should
- Date: Sat Feb 11 14:47:34 2006
I have a glade/gtk widget setup like this
window->notebook->vbox->entry
and I want to have the entry autoselected everytime the user chooses the
notebook thumbnail that contains the entry.
So I have set up a signal check for the switch_page and then checking the
page_num, so far it works, but the entry
never gets selected.
Iv done the following thing
print gtk_widget_is_focus(entry_calcinput)
gtk_widget_grab_focus(entry_calcinput)
print gtk_widget_is_focus(entry_calcinput)
It's basic, but you should get it quite easy...
And it prints:
0
1
so it should (has?) recieve(d) focus, but when running my program I still
have to select the entry by clicking on it.
Why?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/glade-users/attachments/20060211/e4b94e69/attachment.html
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]