[gtkmm] CellView, EntryCompletion: Wrap new API.
- From: Murray Cumming <murrayc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtkmm] CellView, EntryCompletion: Wrap new API.
- Date: Tue, 15 Feb 2011 08:31:10 +0000 (UTC)
commit 0a500ba2e072ce1b34a97f9567d444f6aff17fc3
Author: Murray Cumming <murrayc murrayc com>
Date: Tue Feb 15 09:29:46 2011 +0100
CellView, EntryCompletion: Wrap new API.
* gtk/src/cellview.hg: Derive from Orientable and add set/get_draw_sensitive(),
set/get_fit_model() and the new properties.
* gtk/src/entrycompletion: Derive from Buildable and add the cell-area
property.
ChangeLog | 9 +++++++++
gtk/src/cellview.hg | 16 +++++++++++++++-
gtk/src/entrycompletion.hg | 7 +++++--
3 files changed, 29 insertions(+), 3 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 1ab9d29..7d88814 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2011-02-15 Murray Cumming <murrayc murrayc com>
+
+ CellView, EntryCompletion: Wrap new API.
+
+ * gtk/src/cellview.hg: Derive from Orientable and add set/get_draw_sensitive(),
+ set/get_fit_model() and the new properties.
+ * gtk/src/entrycompletion: Derive from Buildable and add the cell-area
+ property.
+
2011-02-14 Murray Cumming <murrayc murrayc com>
ButtonBox, Separator, Scale, Scrollbar: Add public constructors.
diff --git a/gtk/src/cellview.hg b/gtk/src/cellview.hg
index 370a4bb..2f24763 100644
--- a/gtk/src/cellview.hg
+++ b/gtk/src/cellview.hg
@@ -23,6 +23,9 @@ _CONFIGINCLUDE(gtkmmconfig.h)
#include <gtkmm/treemodel.h>
#include <gtkmm/treepath.h>
#include <gtkmm/cellrenderer.h>
+#include <gtkmm/cellarea.h>
+#include <gtkmm/cellareacontext.h>
+#include <gtkmm/orientable.h>
#include <gdkmm/pixbuf.h>
#include <gdkmm/rgba.h>
@@ -40,10 +43,12 @@ namespace Gtk
*/
class CellView :
public Widget,
- public CellLayout
+ public CellLayout,
+ public Orientable
{
_CLASS_GTKOBJECT(CellView, GtkCellView, GTK_CELL_VIEW, Gtk::Widget, GtkWidget)
_IMPLEMENTS_INTERFACE(CellLayout)
+ _IMPLEMENTS_INTERFACE(Orientable)
public:
_CTOR_DEFAULT()
@@ -87,6 +92,11 @@ public:
_WRAP_METHOD(void set_background_color(const Gdk::Color& color), gtk_cell_view_set_background_color)
_WRAP_METHOD(void set_background_rgba(const Gdk::RGBA& rgba), gtk_cell_view_set_background_rgba)
+
+ _WRAP_METHOD(bool get_draw_sensitive() const, gtk_cell_view_get_draw_sensitive)
+ _WRAP_METHOD(void set_draw_sensitive(bool draw_sensitive = true), gtk_cell_view_set_draw_sensitive)
+ _WRAP_METHOD(bool get_fit_model() const, gtk_cell_view_get_fit_model)
+ _WRAP_METHOD(void set_fit_model(bool fit_model = true), gtk_cell_view_set_fit_model)
_IGNORE(gtk_cell_view_get_cell_renderers) //deprecated
@@ -95,6 +105,10 @@ public:
_WRAP_PROPERTY("background-rgba", Gdk::RGBA)
_WRAP_PROPERTY("background-set", bool)
_WRAP_PROPERTY("model", Glib::RefPtr<TreeModel>)
+ _WRAP_PROPERTY("cell-area", Glib::RefPtr<CellArea>)
+ _WRAP_PROPERTY("cell-area-context", Glib::RefPtr<CellAreaContext>)
+ _WRAP_PROPERTY("draw-sensitive", bool)
+ _WRAP_PROPERTY("fit-model", bool)
};
} // namespace Gtk
diff --git a/gtk/src/entrycompletion.hg b/gtk/src/entrycompletion.hg
index 1e6e2f7..0ef7417 100644
--- a/gtk/src/entrycompletion.hg
+++ b/gtk/src/entrycompletion.hg
@@ -30,7 +30,7 @@ namespace Gtk
class Entry;
-//Then we should add "It derives from the Gtk::CellLayout, to allow the user to add extra cells to the Gtk::TreeView with completion matches".
+//TODO: we should add "It derives from the Gtk::CellLayout, to allow the user to add extra cells to the Gtk::TreeView with completion matches".
/** Completion functionality for Gtk::Entry.
*
@@ -60,10 +60,12 @@ class Entry;
*/
class EntryCompletion
: public Glib::Object,
- public Gtk::CellLayout
+ public Gtk::CellLayout,
+ public Gtk::Buildable
{
_CLASS_GOBJECT(EntryCompletion, GtkEntryCompletion, GTK_ENTRY_COMPLETION, Glib::Object, GObject)
_IMPLEMENTS_INTERFACE(CellLayout)
+ _IMPLEMENTS_INTERFACE(Buildable)
protected:
_CTOR_DEFAULT()
@@ -222,6 +224,7 @@ dnl
_WRAP_PROPERTY("popup_set_width", bool)
_WRAP_PROPERTY("popup_single_match", bool)
_WRAP_PROPERTY("inline-selection", bool)
+ _WRAP_PROPERTY("cell-area", Glib::RefPtr<CellArea>)
protected:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]