[gtkmm] FontChooser: Add get/set_font_map().
- From: Murray Cumming <murrayc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtkmm] FontChooser: Add get/set_font_map().
- Date: Tue, 30 Jun 2015 11:45:44 +0000 (UTC)
commit d395c39cc00c9b7e3cdcce3546871f171a243f24
Author: Murray Cumming <murrayc murrayc com>
Date: Tue Jun 30 12:02:04 2015 +0200
FontChooser: Add get/set_font_map().
gtk/src/fontchooser.hg | 7 +++++++
tools/m4/convert_gtk.m4 | 3 +++
2 files changed, 10 insertions(+), 0 deletions(-)
---
diff --git a/gtk/src/fontchooser.hg b/gtk/src/fontchooser.hg
index 7aa1e56..ad3a012 100644
--- a/gtk/src/fontchooser.hg
+++ b/gtk/src/fontchooser.hg
@@ -22,6 +22,7 @@ _PINCLUDE(glibmm/private/interface_p.h)
#include <pangomm/fontface.h>
#include <pangomm/fontdescription.h>
#include <pangomm/fontfamily.h>
+#include <pangomm/fontmap.h>
#ifndef DOXYGEN_SHOULD_SKIP_THIS
extern "C"
@@ -98,6 +99,12 @@ public:
void set_filter_func(const SlotFontFilter& slot);
_IGNORE(gtk_font_chooser_set_filter_func)
+ _WRAP_METHOD(void set_font_map(const Glib::RefPtr<Pango::FontMap>& fontmap), gtk_font_chooser_set_font_map)
+
+ _WRAP_METHOD(Glib::RefPtr<Pango::FontMap> get_font_map(), gtk_font_chooser_get_font_map, refreturn)
+ _WRAP_METHOD(Glib::RefPtr<const Pango::FontMap> get_font_map() const, gtk_font_chooser_get_font_map,
refreturn, constversion)
+
+
//TODO: Remove no_default_handler when we can break ABI.
_WRAP_SIGNAL(void font_activated(const Glib::ustring& fontname), "font-activated", no_default_handler)
diff --git a/tools/m4/convert_gtk.m4 b/tools/m4/convert_gtk.m4
index 371daaf..a36ca1b 100644
--- a/tools/m4/convert_gtk.m4
+++ b/tools/m4/convert_gtk.m4
@@ -732,3 +732,6 @@ _CONVERSION(`const GtkWidgetPath*',`WidgetPath',`Glib::wrap(const_cast<GtkWidget
_CONVERSION(`Glib::RefPtr<Gio::Permission>&',`GPermission*',__CONVERT_REFPTR_TO_P)
_CONVERSION(`const Glib::RefPtr<const
Gio::Permission>&',`GPermission*',__CONVERT_CONST_REFPTR_TO_P_SUN(Gio::Permission))
_CONVERSION(`GPermission*',`Glib::RefPtr<Gio::Permission>',`Glib::wrap($3)')
+
+_CONVERSION(`const Glib::RefPtr<Pango::FontMap>&',`PangoFontMap*',__CONVERT_REFPTR_TO_P)
+_CONVERSION(`const Glib::RefPtr<const Pango::FontMap>&',`PangoFontMap*',__CONVERT_CONST_REFPTR_TO_P)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]