~ubuntu-branches/ubuntu/trusty/pango1.0/trusty-proposed

« back to all changes in this revision

Viewing changes to pango/pangox.c

  • Committer: Package Import Robot
  • Author(s): Michael Biebl
  • Date: 2012-03-09 10:39:11 UTC
  • mfrom: (1.6.4) (63.3.30 sid)
  • Revision ID: package-import@ubuntu.com-20120309103911-0jpxqwnix351v3se
Tags: 1.29.5-1
* New upstream release.
  - Fix GI annotation syntax. Closes: #640855
* debian/control.in: Bump Build-Depends on libglib2.0-dev to (>= 2.31.0).
* debian/patches/00git_transfer_annotations.patch: Removed, merged upstream.
* Set pkg-gnome-maintainers@lists.alioth.debian.org as Maintainer.

Show diffs side-by-side

added added

removed removed

Lines of Context:
69
69
  PangoFontClass parent_class;
70
70
};
71
71
 
72
 
static PangoFontClass *parent_class;    /* Parent class structure for PangoXFont */
73
 
 
74
 
static void pango_x_font_class_init (PangoXFontClass *class);
75
 
static void pango_x_font_init       (PangoXFont      *xfont);
76
72
static void pango_x_font_dispose    (GObject         *object);
77
73
static void pango_x_font_finalize   (GObject         *object);
78
74
 
224
220
  info->free_gc_func = free_gc_func;
225
221
}
226
222
 
227
 
static GType
228
 
pango_x_font_get_type (void)
229
 
{
230
 
  static GType object_type = 0;
231
 
 
232
 
  if (G_UNLIKELY (!object_type))
233
 
    {
234
 
      const GTypeInfo object_info =
235
 
      {
236
 
        sizeof (PangoXFontClass),
237
 
        (GBaseInitFunc) NULL,
238
 
        (GBaseFinalizeFunc) NULL,
239
 
        (GClassInitFunc) pango_x_font_class_init,
240
 
        NULL,           /* class_finalize */
241
 
        NULL,           /* class_data */
242
 
        sizeof (PangoXFont),
243
 
        0,              /* n_preallocs */
244
 
        (GInstanceInitFunc) pango_x_font_init,
245
 
        NULL            /* value_table */
246
 
      };
247
 
 
248
 
      object_type = g_type_register_static (PANGO_TYPE_FONT,
249
 
                                            I_("PangoXFont"),
250
 
                                            &object_info, 0);
251
 
    }
252
 
 
253
 
  return object_type;
254
 
}
 
223
G_DEFINE_TYPE (PangoXFont, pango_x_font, PANGO_TYPE_FONT);
255
224
 
256
225
static void
257
226
pango_x_font_init (PangoXFont *xfont)
275
244
  GObjectClass *object_class = G_OBJECT_CLASS (class);
276
245
  PangoFontClass *font_class = PANGO_FONT_CLASS (class);
277
246
 
278
 
  parent_class = g_type_class_peek_parent (class);
279
 
 
280
247
  object_class->finalize = pango_x_font_finalize;
281
248
  object_class->dispose = pango_x_font_dispose;
282
249
 
1271
1238
  if (!xfont->in_cache && xfont->fontmap)
1272
1239
    pango_x_fontmap_cache_add (xfont->fontmap, xfont);
1273
1240
 
1274
 
  G_OBJECT_CLASS (parent_class)->dispose (object);
 
1241
  G_OBJECT_CLASS (pango_x_font_parent_class)->dispose (object);
1275
1242
}
1276
1243
 
1277
1244
 
1326
1293
 
1327
1294
  g_strfreev (xfont->fonts);
1328
1295
 
1329
 
  G_OBJECT_CLASS (parent_class)->finalize (object);
 
1296
  G_OBJECT_CLASS (pango_x_font_parent_class)->finalize (object);
1330
1297
}
1331
1298
 
1332
1299
static PangoFontDescription *