summaryrefslogtreecommitdiff
path: root/pango/pangox.c
diff options
context:
space:
mode:
authorOwen Taylor <otaylor@redhat.com>2003-05-27 16:35:33 +0000
committerOwen Taylor <otaylor@src.gnome.org>2003-05-27 16:35:33 +0000
commitda122fa3c9d4aa1502588dab82161fac89db7270 (patch)
tree7fabe85ac00945f368b2b8c366ed17f60109ffc1 /pango/pangox.c
parent7c8695012e0f06fb01cbb20da7ace569aa181e1c (diff)
downloadpango-da122fa3c9d4aa1502588dab82161fac89db7270.tar.gz
Use g_object_new() rather than g_type_create_instance() (Patch from
Tue May 27 12:32:43 2003 Owen Taylor <otaylor@redhat.com> * pango/pango-context.c (pango_context_new) pango/pango-layout.c (pango_context_new) pango/pango-win32.c (pango_win32_font_map_for_display) pango/pangox-fontmap.c (pango_x_font_map_for_display) pango/pangox.c (pango_x_font_new): Use g_object_new() rather than g_type_create_instance() (Patch from Benjamin Otte, #112786)
Diffstat (limited to 'pango/pangox.c')
-rw-r--r--pango/pangox.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pango/pangox.c b/pango/pangox.c
index 1ce921b4..80151a65 100644
--- a/pango/pangox.c
+++ b/pango/pangox.c
@@ -414,7 +414,7 @@ pango_x_font_new (PangoFontMap *fontmap, const char *spec, int size)
g_return_val_if_fail (fontmap != NULL, NULL);
g_return_val_if_fail (spec != NULL, NULL);
- result = (PangoXFont *)g_type_create_instance (PANGO_TYPE_X_FONT);
+ result = g_object_new (PANGO_TYPE_X_FONT, NULL);
result->fontmap = fontmap;
g_object_ref (fontmap);