diff options
author | Carlos Garcia Campos <cgarcia@igalia.com> | 2011-02-08 14:49:31 +0100 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2012-03-01 16:25:21 -0500 |
commit | 9f4bfff1b030fffa0d815557ec690d208cb4cd67 (patch) | |
tree | dcab443bc3a3a73a1cc0c57bbdbac870df310ab7 /gtk/gtkwidget.h | |
parent | 6c257040a54eb91cc9323c8441b6025667dace69 (diff) | |
download | gtk+-9f4bfff1b030fffa0d815557ec690d208cb4cd67.tar.gz |
gtk: Add a way to do event capture
This patch adds a capture phase to GTK+'s event propagation
model. Events are first propagated from the toplevel (or the
grab widget, if a grab is in place) down to the target widget
and then back up. The second phase is using the existing
::event signal, the new capture phase is using a private
API instead of a public signal for now.
This mechanism can be used in many places where we currently
have to prevent child widgets from getting events by putting
an input-only window over them. It will also be used to implement
kinetic scrolling in subsequent patches.
http://bugzilla.gnome.org/show_bug.cgi?id=641836
We automatically request more motion events in behalf of
the original widget if it listens to motion hints. So
the capturing widget doesn't need to handle such
implementation details.
We are not making event capture part of the public API for 3.4,
which is why there is no ::captured-event signal.
Diffstat (limited to 'gtk/gtkwidget.h')
-rw-r--r-- | gtk/gtkwidget.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/gtk/gtkwidget.h b/gtk/gtkwidget.h index 4fd7fce086..5a4cdbcbff 100644 --- a/gtk/gtkwidget.h +++ b/gtk/gtkwidget.h @@ -437,7 +437,6 @@ struct _GtkWidgetClass void (*_gtk_reserved5) (void); void (*_gtk_reserved6) (void); void (*_gtk_reserved7) (void); - void (*_gtk_reserved8) (void); }; struct _GtkWidgetAuxInfo |