[EDIT: Oops---I think I just found the answer----see end]
I'm trying to write c version of
http://rosettacode.org/wiki/Honeycombsusing gtk+
I plan a new_window with a vbox packing a drawing_area and a label.
The advice at
http://developer.gnome.org/gtk/2.24/GtkDrawingArea.htmlsays
Quote:
To receive keyboard events, you will need to set the GTK_CAN_FOCUS flag on the drawing area
Despite all my header file greps I cannot figure out how to do this.
Well, maybe the trouble is that I'm combining gtk+ with /gtk/2.24/ advice.
You don't happen to have the source code for scribble.c revised for gtk+ with all the deprecated features replaced with current thinking?
[EDIT: still would like to see a complete current version of Scribble.c]
Thanks, Dave.
[EDIT: I walked around some, ate dinner, then grepped a little more.
I will lay odds that the
gtk_widget_set_can_focus
function will help me through this situation.]
[[IT worked!]]