mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-28 13:12:10 +01:00
scanner/girepository: remove GdkRectangle->CairoRectangleInt automatic conversion
https://bugzilla.gnome.org/show_bug.cgi?id=748832
This commit is contained in:
parent
1627d65d0f
commit
355fcd387d
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user