[gtkmm] SearchBar: handle_event(): Take a GdkEventKey instead of GdkEvent.
- From: Murray Cumming <murrayc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtkmm] SearchBar: handle_event(): Take a GdkEventKey instead of GdkEvent.
- Date: Mon, 7 Oct 2013 07:46:44 +0000 (UTC)
commit fc3740b590a623e99e6dc308d3057fdc1dcf0c0c
Author: Murray Cumming <murrayc murrayc com>
Date: Mon Oct 7 09:26:42 2013 +0200
SearchBar: handle_event(): Take a GdkEventKey instead of GdkEvent.
* gtk/src/searchbar.hg: That is what the C docuementation says
that it should take.
See bug GTK+ #709544
gtk/src/searchbar.hg | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/gtk/src/searchbar.hg b/gtk/src/searchbar.hg
index 4038d15..c341fd1 100644
--- a/gtk/src/searchbar.hg
+++ b/gtk/src/searchbar.hg
@@ -66,7 +66,10 @@ public:
_WRAP_METHOD(bool get_show_close_button() const, gtk_search_bar_get_show_close_button)
_WRAP_METHOD(void set_show_close_button(bool visible=true), gtk_search_bar_set_show_close_button)
- _WRAP_METHOD(bool handle_event(GdkEvent* event), gtk_search_bar_handle_event)
+ //TODO: Use Gdk::EventKey, if we ever use Gdk::Event elsewhere in the API:
+//We use GdkEventKey* rather than GdkEvent*. See GTK+ bug https://bugzilla.gnome.org/show_bug.cgi?id=709544
+#m4 _CONVERSION(`GdkEventKey*',`GdkEvent*',`(($2)($3))')
+ _WRAP_METHOD(bool handle_event(GdkEventKey* event), gtk_search_bar_handle_event)
_WRAP_PROPERTY("search-mode-enabled", bool)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]