~ubuntu-branches/ubuntu/jaunty/gimp/jaunty-security

« back to all changes in this revision

Viewing changes to app/text/gimpfontlist.c

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Holbach
  • Date: 2007-05-02 16:33:03 UTC
  • mfrom: (1.1.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20070502163303-bvzhjzbpw8qglc4y
Tags: 2.3.16-1ubuntu1
* Resynchronized with Debian, remaining Ubuntu changes:
  - debian/rules: i18n magic.
* debian/control.in:
  - Maintainer: Ubuntu Core Developers <ubuntu-devel@lists.ubuntu.com>
* debian/patches/02_help-message.patch,
  debian/patches/03_gimp.desktop.in.in.patch,
  debian/patches/10_dont_show_wizard.patch: updated.
* debian/patches/04_composite-signedness.patch,
  debian/patches/05_add-letter-spacing.patch: dropped, used upstream.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* The GIMP -- an image manipulation program
 
1
/* GIMP - The GNU Image Manipulation Program
2
2
 * Copyright (C) 1995 Spencer Kimball and Peter Mattis
3
3
 *
4
4
 * gimpfontlist.c
52
52
typedef char * (* GimpFontDescToStringFunc) (const PangoFontDescription *desc);
53
53
 
54
54
 
55
 
static void   gimp_font_list_class_init   (GimpFontListClass    *klass);
56
 
static void   gimp_font_list_init         (GimpFontList         *list);
57
 
 
58
 
static void   gimp_font_list_add_font     (GimpFontList         *list,
59
 
                                           PangoContext         *context,
60
 
                                           PangoFontDescription *desc);
61
 
 
62
 
static void   gimp_font_list_load_names   (GimpFontList         *list,
63
 
                                           PangoFontMap         *fontmap,
64
 
                                           PangoContext         *context);
65
 
 
66
 
 
67
 
static GimpListClass *parent_class = NULL;
 
55
static void   gimp_font_list_add_font   (GimpFontList         *list,
 
56
                                         PangoContext         *context,
 
57
                                         PangoFontDescription *desc);
 
58
 
 
59
static void   gimp_font_list_load_names (GimpFontList         *list,
 
60
                                         PangoFontMap         *fontmap,
 
61
                                         PangoContext         *context);
 
62
 
 
63
 
 
64
G_DEFINE_TYPE (GimpFontList, gimp_font_list, GIMP_TYPE_LIST)
68
65
 
69
66
static GimpFontDescToStringFunc font_desc_to_string = NULL;
70
67
 
71
68
 
72
 
GType
73
 
gimp_font_list_get_type (void)
74
 
{
75
 
  static GType list_type = 0;
76
 
 
77
 
  if (! list_type)
78
 
    {
79
 
      static const GTypeInfo list_info =
80
 
      {
81
 
        sizeof (GimpFontListClass),
82
 
        (GBaseInitFunc) NULL,
83
 
        (GBaseFinalizeFunc) NULL,
84
 
        (GClassInitFunc) gimp_font_list_class_init,
85
 
        NULL,           /* class_finalize */
86
 
        NULL,           /* class_font     */
87
 
        sizeof (GimpFontList),
88
 
        0,              /* n_preallocs    */
89
 
        (GInstanceInitFunc) gimp_font_list_init,
90
 
      };
91
 
 
92
 
      list_type = g_type_register_static (GIMP_TYPE_LIST,
93
 
                                          "GimpFontList",
94
 
                                          &list_info, 0);
95
 
    }
96
 
 
97
 
  return list_type;
98
 
}
99
 
 
100
69
static void
101
70
gimp_font_list_class_init (GimpFontListClass *klass)
102
71
{
103
 
  parent_class = g_type_class_peek_parent (klass);
104
72
}
105
73
 
106
74
static void
118
86
  g_return_val_if_fail (yresolution > 0.0, NULL);
119
87
 
120
88
  list = g_object_new (GIMP_TYPE_FONT_LIST,
121
 
                       "children_type", GIMP_TYPE_FONT,
 
89
                       "children-type", GIMP_TYPE_FONT,
122
90
                       "policy",        GIMP_CONTAINER_POLICY_STRONG,
123
91
                       NULL);
124
92