summaryrefslogtreecommitdiff
path: root/gdk/linux-fb/gdkpango-fb.c
diff options
context:
space:
mode:
authorAlexander Larsson <alla@lysator.liu.se>2000-11-07 14:18:47 +0000
committerAlexander Larsson <alexl@src.gnome.org>2000-11-07 14:18:47 +0000
commit224f6ec534c4ddf3479477e58f0204e5eed042cd (patch)
tree626cd02b8a4449bde0006871196615df428b4c52 /gdk/linux-fb/gdkpango-fb.c
parent69f42512fa819749e1a2ca9f27a1b940ca8fc0d6 (diff)
downloadgtk+-224f6ec534c4ddf3479477e58f0204e5eed042cd.tar.gz
use g_object_new() instead of g_type_create_instance() which is a private
2000-11-07 Alexander Larsson <alla@lysator.liu.se> * gdk/linux-fb/gdkcolor-fb.c, gdk/linux-fb/gdkdnd-fb.c, gdk/linux-fb/gdkgc-fb.c, gdk/linux-fb/gdkimage-fb.c, gdk/linux-fb/gdkpango-fb.c, gdk/linux-fb/gdkpixmap-fb.c, gdk/linux-fb/gdkwindow-fb.c: use g_object_new() instead of g_type_create_instance() which is a private function for fundamental type implementations. * gdk/linux-fb/gdkinput-ps2.c: Use MEDIUMRAW instead of RAW keycodes. Remove keyboard state-table instead just store the current modifier state. Add a (somewhat broken) keyboard input parser for XLATE mode too, if we couldn't use MEDIUMRAW. Rename exported function gdk_input_ps2_get_mouseinfo to gdk_input_get_mouseinfo. * gdk/linux-fb/gdkmain-fb.c, gdk/linux-fb/gdkprivate-fb.h, gdk/linux-fb/gdkwindow-fb.c: gdk_input_ps2_get_mouseinfo was renamed to gdk_input_get_mouseinfo.
Diffstat (limited to 'gdk/linux-fb/gdkpango-fb.c')
-rw-r--r--gdk/linux-fb/gdkpango-fb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdk/linux-fb/gdkpango-fb.c b/gdk/linux-fb/gdkpango-fb.c
index bb5499bf13..e8e9b6247c 100644
--- a/gdk/linux-fb/gdkpango-fb.c
+++ b/gdk/linux-fb/gdkpango-fb.c
@@ -153,7 +153,7 @@ pango_fb_font_map_load_font(PangoFontMap *fontmap,
if(i >= fbfm->all_descs->len)
return NULL;
- retval = (PangoFBFont *)g_type_create_instance(PANGO_TYPE_FB_FONT);
+ retval = (PangoFBFont *)g_object_new (PANGO_TYPE_FB_FONT, NULL);
retval->desc = *desc;
retval->desc.family_name = g_strdup(desc->family_name);