[gobject-introspection] scanner/girepository: remove GdkRectangle->CairoRectangleInt automatic conversion
- From: Lionel Landwerlin <llandwerlin src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gobject-introspection] scanner/girepository: remove GdkRectangle->CairoRectangleInt automatic conversion
- Date: Fri, 15 May 2015 13:40:53 +0000 (UTC)
commit 8ed72fd2641f1fdf21eefb7f8e7b36e58f03268b
Author: Lionel Landwerlin <llandwerlin gmail com>
Date: Sun May 3 11:37:48 2015 +0100
scanner/girepository: remove GdkRectangle->CairoRectangleInt automatic conversion
https://bugzilla.gnome.org/show_bug.cgi?id=748832
girepository/girepository.c | 12 ------------
giscanner/ast.py | 6 ------
2 files changed, 0 insertions(+), 18 deletions(-)
---
diff --git a/girepository/girepository.c b/girepository/girepository.c
index 93382fd..4291b7e 100644
--- a/girepository/girepository.c
+++ b/girepository/girepository.c
@@ -807,18 +807,6 @@ g_irepository_find_by_gtype (GIRepository *repository,
data.result_typelib = NULL;
data.found_prefix = FALSE;
- /* There is a corner case regarding GdkRectangle. GdkRectangle is a
- * boxed type, but it is just an alias to boxed struct
- * CairoRectangleInt. Scanner automatically converts all references
- * to GdkRectangle to CairoRectangleInt, so GdkRectangle does not
- * appear in the typelibs at all, although user code might query it.
- * So if we get such query, we also change it to lookup of
- * CairoRectangleInt.
- * https://bugzilla.gnome.org/show_bug.cgi?id=655423
- */
- if (G_UNLIKELY (!strcmp (data.gtype_name, "GdkRectangle")))
- data.gtype_name = "CairoRectangleInt";
-
/* Inside each typelib, we include the "C prefix" which acts as
* a namespace mechanism. For GtkTreeView, the C prefix is Gtk.
* Given the assumption that GTypes for a library also use the
diff --git a/giscanner/ast.py b/giscanner/ast.py
index 12f273e..fe3c567 100644
--- a/giscanner/ast.py
+++ b/giscanner/ast.py
@@ -112,12 +112,6 @@ in contrast to the other create_type() functions."""
return Array(None, bare_utf8, ctype=None, gtype_name=gtype_name,
is_const=False)
- # Workaround for Gdk.Rectangle being boxed alias for
- # cairo.RectangleInt. G-I does not support boxing of aliases.
- # See https://bugzilla.gnome.org/show_bug.cgi?id=655423
- if gtype_name == 'GdkRectangle':
- gtype_name = 'CairoRectangleInt'
-
return cls(gtype_name=gtype_name)
def get_giname(self):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]