[pygobject] Add a default argument to Pango.Context.get_metrics()
- From: Johan Dahlin <johan src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pygobject] Add a default argument to Pango.Context.get_metrics()
- Date: Fri, 16 Mar 2012 19:20:54 +0000 (UTC)
commit 7245bd0ae3f6243c79fa8543a0ed1e50e5015844
Author: Johan Dahlin <johan gnome org>
Date: Wed Mar 14 13:31:06 2012 -0300
Add a default argument to Pango.Context.get_metrics()
https://bugzilla.gnome.org/show_bug.cgi?id=672081
gi/overrides/Pango.py | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/gi/overrides/Pango.py b/gi/overrides/Pango.py
index 3269806..51ad2f3 100644
--- a/gi/overrides/Pango.py
+++ b/gi/overrides/Pango.py
@@ -25,6 +25,15 @@ Pango = modules['Pango']._introspection_module
__all__ = []
+class Context(Pango.Context):
+
+ def get_metrics(self, desc, language=None):
+ return super(Context, self).get_metrics(desc, language)
+
+Context = override(Context)
+__all__.append('Context')
+
+
class FontDescription(Pango.FontDescription):
def __new__(cls, string=None):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]