summaryrefslogtreecommitdiff
path: root/pango/pango-ot-ruleset.c
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@gnome.org>2007-08-29 02:44:53 +0000
committerBehdad Esfahbod <behdad@src.gnome.org>2007-08-29 02:44:53 +0000
commit1fd52a7891ee85180d6f64e6aeb660d0ab473a99 (patch)
tree045d0ffb5df1853aa49bec94354ec0c2c7ebda6d /pango/pango-ot-ruleset.c
parentdab7dc35f2cc43255ea907fc7b8fc507a895db77 (diff)
downloadpango-1fd52a7891ee85180d6f64e6aeb660d0ab473a99.tar.gz
Move ruleset initialization to _init() instead of _new().
2007-08-28 Behdad Esfahbod <behdad@gnome.org> * pango/pango-ot-ruleset.c (pango_ot_ruleset_init), (pango_ot_ruleset_new): Move ruleset initialization to _init() instead of _new(). svn path=/trunk/; revision=2417
Diffstat (limited to 'pango/pango-ot-ruleset.c')
-rw-r--r--pango/pango-ot-ruleset.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/pango/pango-ot-ruleset.c b/pango/pango-ot-ruleset.c
index 141ce262..a40019fa 100644
--- a/pango/pango-ot-ruleset.c
+++ b/pango/pango-ot-ruleset.c
@@ -80,6 +80,10 @@ static void
pango_ot_ruleset_init (PangoOTRuleset *ruleset)
{
ruleset->rules = g_array_new (FALSE, FALSE, sizeof (PangoOTRule));
+ ruleset->script_index[0] = PANGO_OT_NO_SCRIPT;
+ ruleset->script_index[1] = PANGO_OT_NO_SCRIPT;
+ ruleset->language_index[0] = PANGO_OT_DEFAULT_LANGUAGE;
+ ruleset->language_index[1] = PANGO_OT_DEFAULT_LANGUAGE;
}
static void
@@ -173,11 +177,6 @@ pango_ot_ruleset_new (PangoOTInfo *info)
ruleset->info = info;
g_object_add_weak_pointer (ruleset->info, &ruleset->info);
- ruleset->script_index[0] = PANGO_OT_NO_SCRIPT;
- ruleset->script_index[1] = PANGO_OT_NO_SCRIPT;
- ruleset->language_index[0] = PANGO_OT_DEFAULT_LANGUAGE;
- ruleset->language_index[1] = PANGO_OT_DEFAULT_LANGUAGE;
-
return ruleset;
}