Commit 59ecfab6 authored by Christian Hergert's avatar Christian Hergert
Browse files

object: allow hooking into IdeObject::set_context()

parent eb555e2c
......@@ -138,6 +138,9 @@ ide_object_set_context (IdeObject *self,
self);
}
if (IDE_OBJECT_GET_CLASS (self)->set_context)
IDE_OBJECT_GET_CLASS (self)->set_context (self, context);
g_object_notify_by_pspec (G_OBJECT (self), gParamSpecs [PROP_CONTEXT]);
}
}
......
......@@ -33,7 +33,9 @@ struct _IdeObjectClass
{
GObjectClass parent;
void (*destroy) (IdeObject *self);
void (*destroy) (IdeObject *self);
void (*set_context) (IdeObject *self,
IdeContext *context);
};
IdeContext *ide_object_get_context (IdeObject *self);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment