[gtkmm] Wrap some new API.
- From: Murray Cumming <murrayc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtkmm] Wrap some new API.
- Date: Sat, 3 Mar 2012 15:38:37 +0000 (UTC)
commit 06c04d6428fa1e816e7330762da6fae81081c15b
Author: Murray Cumming <murrayc murrayc com>
Date: Sat Mar 3 16:20:42 2012 +0100
Wrap some new API.
* gtk/src/aboutdialog.hg: Add add_credits_section().
* gtk/src/entrycompletion.hg: Add compute_prefix().
* gtk/src/stylecontext.[hg|ccg]: Add set_parent() and unset_parent().
ChangeLog | 8 ++++++++
gtk/src/aboutdialog.hg | 2 ++
gtk/src/entrycompletion.hg | 1 +
gtk/src/stylecontext.ccg | 6 ++++++
gtk/src/stylecontext.hg | 3 +++
5 files changed, 20 insertions(+), 0 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 4a875fc..7c6d73f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,13 @@
2012-03-03 Murray Cumming <murrayc murrayc com>
+ Wrap some new API.
+
+ * gtk/src/aboutdialog.hg: Add add_credits_section().
+ * gtk/src/entrycompletion.hg: Add compute_prefix().
+ * gtk/src/stylecontext.[hg|ccg]: Add set_parent() and unset_parent().
+
+2012-03-03 Murray Cumming <murrayc murrayc com>
+
Application: Update the newin tags.
* gtk/src/application.hg: This will really be new in 3.4.
diff --git a/gtk/src/aboutdialog.hg b/gtk/src/aboutdialog.hg
index d47b50f..3ea2e8f 100644
--- a/gtk/src/aboutdialog.hg
+++ b/gtk/src/aboutdialog.hg
@@ -111,6 +111,8 @@ public:
_WRAP_METHOD(bool get_wrap_license() const, gtk_about_dialog_get_wrap_license)
_WRAP_METHOD(void set_wrap_license(bool wrap_license), gtk_about_dialog_set_wrap_license)
+ _WRAP_METHOD(void add_credit_section(const Glib::ustring& section_name, const std::vector<Glib::ustring>& people), gtk_about_dialog_add_credit_section)
+
_WRAP_PROPERTY("program-name", Glib::ustring)
_WRAP_PROPERTY("version", Glib::ustring)
diff --git a/gtk/src/entrycompletion.hg b/gtk/src/entrycompletion.hg
index 0419329..6722ffc 100644
--- a/gtk/src/entrycompletion.hg
+++ b/gtk/src/entrycompletion.hg
@@ -97,6 +97,7 @@ public:
_WRAP_METHOD(void set_minimum_key_length(int length), gtk_entry_completion_set_minimum_key_length)
_WRAP_METHOD(int get_minimum_key_length() const, gtk_entry_completion_get_minimum_key_length)
+ _WRAP_METHOD(Glib::ustring compute_prefix(const Glib::ustring& key), gtk_entry_completion_compute_prefix)
_WRAP_METHOD(void complete(), gtk_entry_completion_complete)
_WRAP_METHOD(void insert_prefix(), gtk_entry_completion_insert_prefix)
diff --git a/gtk/src/stylecontext.ccg b/gtk/src/stylecontext.ccg
index bf4c919..7b5dd0d 100644
--- a/gtk/src/stylecontext.ccg
+++ b/gtk/src/stylecontext.ccg
@@ -68,4 +68,10 @@ Border StyleContext::get_margin(StateFlags state) const
return Border(&cborder, true);
}
+void StyleContext::unset_parent()
+{
+ gtk_style_context_set_parent(gobj(), 0);
+}
+
+
} // namespace Gtk
diff --git a/gtk/src/stylecontext.hg b/gtk/src/stylecontext.hg
index 15a4665..237e8f2 100644
--- a/gtk/src/stylecontext.hg
+++ b/gtk/src/stylecontext.hg
@@ -138,6 +138,9 @@ public:
#m4 _CONVERSION(`const GtkWidgetPath*',`WidgetPath',`WidgetPath(const_cast<GtkWidgetPath*>($3), true)')
_WRAP_METHOD(WidgetPath get_path() const, gtk_style_context_get_path)
+ _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(void add_class(const Glib::ustring& class_name), gtk_style_context_add_class)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]