diff options
author | Owen Taylor <otaylor@redhat.com> | 2003-05-27 16:35:33 +0000 |
---|---|---|
committer | Owen Taylor <otaylor@src.gnome.org> | 2003-05-27 16:35:33 +0000 |
commit | da122fa3c9d4aa1502588dab82161fac89db7270 (patch) | |
tree | 7fabe85ac00945f368b2b8c366ed17f60109ffc1 /pango/pangox.c | |
parent | 7c8695012e0f06fb01cbb20da7ace569aa181e1c (diff) | |
download | pango-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.c | 2 |
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); |