aboutsummaryrefslogtreecommitdiff
path: root/gconf/gconf-gram.y
diff options
context:
space:
mode:
Diffstat (limited to 'gconf/gconf-gram.y')
-rw-r--r--gconf/gconf-gram.y19
1 files changed, 14 insertions, 5 deletions
diff --git a/gconf/gconf-gram.y b/gconf/gconf-gram.y
index ed685d0..a1d9f2a 100644
--- a/gconf/gconf-gram.y
+++ b/gconf/gconf-gram.y
@@ -377,17 +377,26 @@ stmt_begin (struct gconf_keyword *kwp, gconf_value_t tag)
static void
stmt_end (struct gconf_keyword *kwp)
{
+ gconf_callback_fn callback = NULL;
+ void *dataptr = NULL;
+
if (cursect && cursect->callback)
- cursect->callback (gconf_callback_section_end,
- &gconf_current_locus, /* FIXME */
- kwp ? target_ptr(kwp) : NULL,
- NULL,
- &cursect->callback_data);
+ {
+ callback = cursect->callback;
+ dataptr = &cursect->callback_data;
+ }
if (gl_list_size (sections) == 0)
abort ();
cursect = (struct gconf_keyword *) gl_list_get_at (sections, 0);
gl_list_remove_at (sections, 0);
+ if (callback)
+ callback (gconf_callback_section_end,
+ &gconf_current_locus, /* FIXME */
+ kwp ? target_ptr(kwp) : NULL,
+ NULL,
+ dataptr);
+
}
static struct gconf_keyword *

Return to:

Send suggestions and report system problems to the System administrator.