diff options
author | Matthias Clasen <mclasen@redhat.com> | 2022-09-02 10:17:50 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2022-09-02 10:17:50 -0400 |
commit | e09aa42a458f0fb99cf7a9d803415b2bf4d01207 (patch) | |
tree | db3bd6c16e7aa82316d55ede1ab3d71fa827962a /pango2/pango-font.c | |
parent | 3fedb89e7b2301d4de0f3885bd5e2ed9cfe38105 (diff) | |
download | pango-e09aa42a458f0fb99cf7a9d803415b2bf4d01207.tar.gz |
Cosmetics
Clean up property definitions, and pass NULL
for all nicks and blurbs.
Diffstat (limited to 'pango2/pango-font.c')
-rw-r--r-- | pango2/pango-font.c | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/pango2/pango-font.c b/pango2/pango-font.c index cdf2fc42..b3b752fd 100644 --- a/pango2/pango-font.c +++ b/pango2/pango-font.c @@ -142,7 +142,8 @@ pango2_font_class_init (Pango2FontClass *class G_GNUC_UNUSED) * The face to which the font belongs. */ properties[PROP_FACE] = - g_param_spec_object ("face", NULL, NULL, PANGO2_TYPE_FONT_FACE, + g_param_spec_object ("face", NULL, NULL, + PANGO2_TYPE_FONT_FACE, G_PARAM_READABLE | G_PARAM_STATIC_STRINGS); /** @@ -151,7 +152,8 @@ pango2_font_class_init (Pango2FontClass *class G_GNUC_UNUSED) * A `hb_font_t` object backing this font. */ properties[PROP_HB_FONT] = - g_param_spec_boxed ("hb-font", NULL, NULL, HB_GOBJECT_TYPE_FONT, + g_param_spec_boxed ("hb-font", NULL, NULL, + HB_GOBJECT_TYPE_FONT, G_PARAM_READABLE | G_PARAM_STATIC_STRINGS); /** @@ -160,7 +162,8 @@ pango2_font_class_init (Pango2FontClass *class G_GNUC_UNUSED) * The size of the font, scaled by `PANGO2_SCALE`. */ properties[PROP_SIZE] = - g_param_spec_int ("size", NULL, NULL, 0, G_MAXINT, 0, + g_param_spec_int ("size", NULL, NULL, + 0, G_MAXINT, 0, G_PARAM_READABLE | G_PARAM_STATIC_STRINGS); /** @@ -173,7 +176,8 @@ pango2_font_class_init (Pango2FontClass *class G_GNUC_UNUSED) * size * dpi / 72. */ properties[PROP_DPI] = - g_param_spec_float ("dpi", NULL, NULL, 0, G_MAXFLOAT, 96.0, + g_param_spec_float ("dpi", NULL, NULL, + 0, G_MAXFLOAT, 96.0, G_PARAM_READABLE | G_PARAM_STATIC_STRINGS); /** @@ -182,7 +186,8 @@ pango2_font_class_init (Pango2FontClass *class G_GNUC_UNUSED) * The gravity of the font. */ properties[PROP_GRAVITY] = - g_param_spec_enum ("gravity", NULL, NULL, PANGO2_TYPE_GRAVITY, + g_param_spec_enum ("gravity", NULL, NULL, + PANGO2_TYPE_GRAVITY, PANGO2_GRAVITY_AUTO, G_PARAM_READABLE | G_PARAM_STATIC_STRINGS); |