[gtkmm] StyleContext: Added list_classes() and get_parent().
- From: Murray Cumming <murrayc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtkmm] StyleContext: Added list_classes() and get_parent().
- Date: Mon, 26 Mar 2012 17:52:18 +0000 (UTC)
commit 3abbb29101587e956165c015b5e8348cd538b993
Author: Murray Cumming <murrayc murrayc com>
Date: Mon Mar 26 19:52:12 2012 +0200
StyleContext: Added list_classes() and get_parent().
* gtk/src/stylecontext.hg:
ChangeLog | 6 +++---
gtk/src/stylecontext.hg | 8 +++++++-
2 files changed, 10 insertions(+), 4 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index e2e68f3..96bca8b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,8 +1,8 @@
-2012-03-26 Murray Cumming <murrayc murrayc com>
+2012-03-26 Murray Cumming <murrayc localhost localdomain>
- Printer: Added accepts_pdf() and accepts_ps().
+ StyleContext: Added list_classes() and get_parent().
- * gtk/src/printer.hg:
+ * gtk/src/stylecontext.hg:
2012-03-26 Murray Cumming <murrayc murrayc com>
diff --git a/gtk/src/stylecontext.hg b/gtk/src/stylecontext.hg
index 237e8f2..d68fc6e 100644
--- a/gtk/src/stylecontext.hg
+++ b/gtk/src/stylecontext.hg
@@ -115,6 +115,7 @@ public:
_WRAP_METHOD(void context_save(), gtk_style_context_save)
_WRAP_METHOD(void context_restore(), gtk_style_context_restore)
+//TODO: GtkCssSection * gtk_style_context_get_section (GtkStyleContext *context, const gchar *property);
/* TODO:
_WRAP_METHOD(void get_property (
const Glib::ustring& property,
@@ -141,7 +142,11 @@ public:
_WRAP_METHOD(void set_parent(const Glib::RefPtr<StyleContext>& parent), gtk_style_context_set_parent)
void unset_parent();
- //TODO: _WRAP_METHOD(GList * list_classes (), gtk_style_context_list_classes)
+ _WRAP_METHOD(Glib::RefPtr<StyleContext> get_parent(), gtk_style_context_get_parent, refreturn)
+ _WRAP_METHOD(Glib::RefPtr<const StyleContext> get_parent() const, gtk_style_context_get_parent, refreturn, constversion)
+
+#m4 _CONVERSION(`GList*',`std::vector<Glib::ustring>',`Glib::ListHandler<Glib::ustring>::list_to_vector($3, Glib::OWNERSHIP_SHALLOW)')
+ _WRAP_METHOD(std::vector<Glib::ustring> list_classes() const, gtk_style_context_list_classes)
_WRAP_METHOD(void add_class(const Glib::ustring& class_name), gtk_style_context_add_class)
_WRAP_METHOD(void remove_class(const Glib::ustring& class_name), gtk_style_context_remove_class)
@@ -240,6 +245,7 @@ public:
_WRAP_PROPERTY("screen", Glib::RefPtr<Gdk::Screen>)
_WRAP_PROPERTY("direction", TextDirection)
+ _WRAP_PROPERTY("parent", Glib::RefPtr<StyleContext>)
};
} // namespace Gtk
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]