Re: focus in dialogs



itz> I have a few simple dialog boxes that each have an entry (wrapped
itz> in a hbox) on top, and some buttons in the action area.  When the
itz> dialog is displayed the entry should have input focus, but I
itz> can't figure out how to do that.

Evan> gtk_widget_grab_focus():

OK, that happens to work :)

Now, just out of pure curiosity (after all, I'm doing this to learn):
wth does gtk_container_set_focus_child() do?

If by quoting chapter and verse you mean to suggest I ought to rtfm,
it's misdirected: those documents are useless to me for the same
reason they are to Collin; I use gtk+1.2.  But thanks anyway, you did
solve my problem.

-- 
Ian Zimmerman, Oakland, California, U.S.A.
GPG: 433BA087  9C0F 194F 203A 63F7 B1B8  6E5A 8CA3 27DB 433B A087
EngSoc adopts market economy: cheap is wasteful, efficient is expensive.



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]