[gtkmm] Widget: Add signal_touch_event().
- From: Murray Cumming <murrayc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtkmm] Widget: Add signal_touch_event().
- Date: Fri, 16 Mar 2012 09:19:39 +0000 (UTC)
commit ed2ddc2607171c837dca22fc0c45546095da52ea
Author: Murray Cumming <murrayc murrayc com>
Date: Fri Mar 16 10:19:22 2012 +0100
Widget: Add signal_touch_event().
* gtk/src/gtk_signals.defs: Adjust the generated
definition.
* gtk/src/widget.hg: Wrap the new touch-event signal,
though we cannot yet add a default signal handler without
breaking ABI.
ChangeLog | 10 ++++++++++
gtk/src/gtk_signals.defs | 2 +-
gtk/src/widget.hg | 7 ++++++-
3 files changed, 17 insertions(+), 2 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 4f1f117..a15957e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+2012-03-16 Murray Cumming <murrayc murrayc com>
+
+ Widget: Add signal_touch_event().
+
+ * gtk/src/gtk_signals.defs: Adjust the generated
+ definition.
+ * gtk/src/widget.hg: Wrap the new touch-event signal,
+ though we cannot yet add a default signal handler without
+ breaking ABI.
+
2012-03-15 Murray Cumming <murrayc murrayc com>
Tests: Fix a warning found by clang++.
diff --git a/gtk/src/gtk_signals.defs b/gtk/src/gtk_signals.defs
index 3104e81..53d8083 100644
--- a/gtk/src/gtk_signals.defs
+++ b/gtk/src/gtk_signals.defs
@@ -11198,7 +11198,7 @@
(return-type "gboolean")
(when "last")
(parameters
- '("GdkEvent*" "p0")
+ '("GdkEventTouch*" "p0")
)
)
diff --git a/gtk/src/widget.hg b/gtk/src/widget.hg
index 5e90c56..96c0afd 100644
--- a/gtk/src/widget.hg
+++ b/gtk/src/widget.hg
@@ -672,6 +672,7 @@ dnl
//TODO: The signal_id is very C-like here:
//_WRAP_SIGNAL(bool can_activate_accel(guint signal_id), "can_activate_accel")
+ // TODO: Remove no_default_handler when we can break ABI:
_WRAP_SIGNAL(bool popup_menu(), "popup_menu", no_default_handler) //Note that popup-menu is a keybinding signal, but is really meant to be wrapped.
//Keybinding signals:
@@ -680,14 +681,18 @@ dnl
_IGNORE_SIGNAL("destroy-event")
- // Tooltip signal
+ // TODO: Remove no_default_handler when we can break ABI:
_WRAP_SIGNAL(bool query_tooltip(int x, int y, bool keyboard_tooltip, const Glib::RefPtr<Tooltip>& tooltip), "query_tooltip", no_default_handler)
//(This was added to GTK+ 2.8 but forgotten by us until gtkmm 2.13/14):
_WRAP_SIGNAL(bool grab_broken_event(GdkEventGrabBroken* event), "grab_broken_event", no_default_handler)
+ // TODO: Remove no_default_handler when we can break ABI:
_WRAP_SIGNAL(bool damage_event(GdkEventExpose* event), "damage-event", no_default_handler)
+ // TODO: Remove no_default_handler when we can break ABI:
+ _WRAP_SIGNAL(bool touch_event(GdkEventTouch* event), "touch_event", no_default_handler)
+
_WRAP_PROPERTY("name", Glib::ustring)
_WRAP_PROPERTY("parent", Container*)
_WRAP_PROPERTY("width_request", int)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]