[gtkmm] TextView: Add input purpose and input hints methods.
- From: Murray Cumming <murrayc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtkmm] TextView: Add input purpose and input hints methods.
- Date: Wed, 29 Aug 2012 22:48:30 +0000 (UTC)
commit dbe28b6b13b2b67ef63e53a7b6c17d153e51e432
Author: Murray Cumming <murrayc murrayc com>
Date: Thu Aug 30 00:39:20 2012 +0200
TextView: Add input purpose and input hints methods.
* gtk/src/textview.hg: Added get/set_input_purpose() and
get/set_input_hints() and properties.
* gtk/src/entry.hg:
* gtk/src/enums.hg: Moved the enums from entry.hg to here.
ChangeLog | 9 +++++++++
gtk/src/entry.hg | 2 --
gtk/src/enums.hg | 2 ++
gtk/src/textview.hg | 8 ++++++++
4 files changed, 19 insertions(+), 2 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 8b6843e..a27294b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,14 @@
2012-08-29 Murray Cumming <murrayc murrayc com>
+ TextView: Add input purpose and input hints methods.
+
+ * gtk/src/textview.hg: Added get/set_input_purpose() and
+ get/set_input_hints() and properties.
+ * gtk/src/entry.hg:
+ * gtk/src/enums.hg: Moved the enums from entry.hg to here.
+
+2012-08-29 Murray Cumming <murrayc murrayc com>
+
Regenerate properties and signals defs for GTK+.
* gtk/src/gtk_signals.defs: Regenerate.
diff --git a/gtk/src/entry.hg b/gtk/src/entry.hg
index 862abc5..1694396 100644
--- a/gtk/src/entry.hg
+++ b/gtk/src/entry.hg
@@ -43,8 +43,6 @@ namespace Gtk
{
_WRAP_ENUM(EntryIconPosition, GtkEntryIconPosition)
-_WRAP_ENUM(InputPurpose, GtkInputPurpose)
-_WRAP_ENUM(InputHints, GtkInputHints)
/** A single line text entry field.
*
diff --git a/gtk/src/enums.hg b/gtk/src/enums.hg
index 8df1ac4..73bbf83 100644
--- a/gtk/src/enums.hg
+++ b/gtk/src/enums.hg
@@ -103,6 +103,8 @@ _WRAP_ENUM(SizeRequestMode, GtkSizeRequestMode)
_WRAP_ENUM(RegionFlags, GtkRegionFlags)
_WRAP_ENUM(JunctionSides, GtkJunctionSides)
_WRAP_ENUM(StateFlags, GtkStateFlags)
+_WRAP_ENUM(InputPurpose, GtkInputPurpose)
+_WRAP_ENUM(InputHints, GtkInputHints)
/* We use a class to implement the GtkIconSize enum, because you can register
diff --git a/gtk/src/textview.hg b/gtk/src/textview.hg
index 3bb59ea..b318ec7 100644
--- a/gtk/src/textview.hg
+++ b/gtk/src/textview.hg
@@ -194,6 +194,12 @@ public:
_WRAP_METHOD(void set_accepts_tab(bool accepts_tab = true), gtk_text_view_set_accepts_tab)
_WRAP_METHOD(bool get_accepts_tab() const, gtk_text_view_get_accepts_tab)
+ _WRAP_METHOD(void set_input_purpose(InputPurpose purpose), gtk_text_view_set_input_purpose)
+ _WRAP_METHOD(InputPurpose get_input_purpose() const, gtk_text_view_get_input_purpose)
+
+ _WRAP_METHOD(void set_input_hints(InputHints hints), gtk_text_view_set_input_hints)
+ _WRAP_METHOD(InputHints get_input_hints() const, gtk_text_view_get_input_hints)
+
_WRAP_SIGNAL(void populate_popup(Menu* menu), "populate_popup")
_WRAP_SIGNAL(void set_anchor(), "set_anchor")
@@ -231,6 +237,8 @@ public:
_WRAP_PROPERTY("overwrite", bool)
_WRAP_PROPERTY("accepts-tab", bool)
_WRAP_PROPERTY("im-module", Glib::ustring)
+ _WRAP_PROPERTY("input-purpose", InputPurpose)
+ _WRAP_PROPERTY("input-hints", InputHints)
};
} /* namespace Gtk */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]