[gtkmm] Gtk::Entry: Add set/get_attributes()
- From: Kjell Ahlstedt <kjellahl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtkmm] Gtk::Entry: Add set/get_attributes()
- Date: Mon, 3 Feb 2014 09:38:12 +0000 (UTC)
commit 4fc9659b2ad48833029ca3520199d7b47ccc6bab
Author: Kjell Ahlstedt <kjell ahlstedt bredband net>
Date: Mon Feb 3 10:34:53 2014 +0100
Gtk::Entry: Add set/get_attributes()
* gtk/src/entry.hg: Add set_attributes(), get_attributes() and the
"attributes" property.
gtk/src/entry.hg | 10 ++++++----
1 files changed, 6 insertions(+), 4 deletions(-)
---
diff --git a/gtk/src/entry.hg b/gtk/src/entry.hg
index 719e17e..59cb9ca 100644
--- a/gtk/src/entry.hg
+++ b/gtk/src/entry.hg
@@ -25,6 +25,7 @@
#include <gtkmm/image.h> //For ImageType.
#include <gtkmm/border.h>
#include <gtkmm/entrybuffer.h>
+#include <pangomm/attrlist.h>
#include <pangomm/tabarray.h>
_DEFS(gtkmm,gtk)
@@ -60,8 +61,6 @@ class Entry
public CellEditable
{
_CLASS_GTKOBJECT(Entry,GtkEntry,GTK_ENTRY,Gtk::Widget,GtkWidget)
- _IGNORE(gtk_entry_new_with_max_length , gtk_entry_append_text, gtk_entry_prepend_text,
gtk_entry_set_position,
- gtk_entry_select_region, gtk_entry_set_editable)
_IMPLEMENTS_INTERFACE(Editable)
_IMPLEMENTS_INTERFACE(CellEditable)
public:
@@ -72,7 +71,6 @@ public:
_WRAP_METHOD(Glib::RefPtr<EntryBuffer> get_buffer(), gtk_entry_get_buffer, refreturn)
_WRAP_METHOD(Glib::RefPtr<const EntryBuffer> get_buffer() const, gtk_entry_get_buffer, refreturn,
constversion)
-
/** Returns the area where the entry's text is drawn.
* This function is useful when drawing something to the entry in a draw callback.
*
@@ -218,6 +216,9 @@ public:
_WRAP_METHOD(void set_input_hints(InputHints hints), gtk_entry_set_input_hints)
_WRAP_METHOD(InputHints get_input_hints() const, gtk_entry_get_input_hints)
+ _WRAP_METHOD(void set_attributes(Pango::AttrList& attrs), gtk_entry_set_attributes)
+ _WRAP_METHOD(Pango::AttrList get_attributes() const, gtk_entry_get_attributes)
+
#m4 _CONVERSION(`PangoTabArray*',`Pango::TabArray',`Pango::TabArray(($3))')
#m4 _CONVERSION(`const Pango::TabArray&',`PangoTabArray*',`const_cast<Pango::TabArray&>($3).gobj()')
_WRAP_METHOD(void set_tabs(const Pango::TabArray& tabs), gtk_entry_set_tabs)
@@ -232,7 +233,7 @@ public:
#m4 _CONVERSION(`const char*',`const Glib::ustring&',__GCHARP_TO_USTRING)
_WRAP_SIGNAL(void insert_at_cursor(const Glib::ustring& str), "insert_at_cursor")
- //Note that the GTK+ C documentation for the activate signal says (as of 2012-06) that is should be used
by applications even though it is a keybinding signal.
+ //Note that the GTK+ C documentation for the activate signal says (as of 2012-06) that it should be used
by applications even though it is a keybinding signal.
_WRAP_SIGNAL(void activate(), "activate")
_WRAP_SIGNAL(void icon_release(EntryIconPosition icon_position, const GdkEventButton* event),
"icon-release", no_default_handler)
@@ -292,6 +293,7 @@ public:
_WRAP_PROPERTY("completion", Glib::RefPtr<EntryCompletion>)
_WRAP_PROPERTY("input-purpose", InputPurpose)
_WRAP_PROPERTY("input-hints", InputHints)
+ _WRAP_PROPERTY("attributes", Pango::AttrList)
_WRAP_PROPERTY("populate-all", bool)
_WRAP_PROPERTY("tabs", Pango::TabArray)
};
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]