Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
GNOME
gnome-builder
Commits
59ecfab6
Commit
59ecfab6
authored
Sep 24, 2015
by
Christian Hergert
Browse files
object: allow hooking into IdeObject::set_context()
parent
eb555e2c
Changes
2
Hide whitespace changes
Inline
Side-by-side
libide/ide-object.c
View file @
59ecfab6
...
...
@@ -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
]);
}
}
...
...
libide/ide-object.h
View file @
59ecfab6
...
...
@@ -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
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment