add mention of gtk_widget_add_events() and GTK_CAN_FOCUS
2002-01-03 Havoc Pennington <hp@pobox.com> * gtk/tmpl/gtkdrawingarea.sgml: add mention of gtk_widget_add_events() and GTK_CAN_FOCUS
This commit is contained in:
parent
55f699ed80
commit
a755adc58d
@ -1,3 +1,8 @@
|
||||
2002-01-03 Havoc Pennington <hp@pobox.com>
|
||||
|
||||
* gtk/tmpl/gtkdrawingarea.sgml: add mention of
|
||||
gtk_widget_add_events() and GTK_CAN_FOCUS
|
||||
|
||||
2002-01-04 Matthias Clasen <matthiasc@poet.de>
|
||||
|
||||
* gtk/tmpl/gtktextview.sgml: Small additions.
|
||||
|
@ -16,7 +16,8 @@ the application may want to connect to:
|
||||
<listitem>
|
||||
<para>
|
||||
Mouse and button press signals to respond to input from
|
||||
the user.
|
||||
the user. (Use gtk_widget_add_events() to enable events
|
||||
you wish to receive.)
|
||||
</para>
|
||||
</listitem>
|
||||
<listitem>
|
||||
@ -79,6 +80,14 @@ gdk_window_invalidate_rect() are equally good ways to do this. You'll
|
||||
then get an expose event for the invalid region.
|
||||
</para>
|
||||
|
||||
<para>
|
||||
To receive mouse events on a drawing area, you will need to enable
|
||||
them with gtk_widget_add_events(). To receive keyboard events,
|
||||
you will need to set the #GTK_CAN_FOCUS flag on the drawing area, and
|
||||
should probably draw some user-visible indication that the drawing
|
||||
area is focused. See gtk_paint_focus() for one way to draw focus.
|
||||
</para>
|
||||
|
||||
<!-- ##### SECTION See_Also ##### -->
|
||||
<para>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user