projects
/
lttv.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Move "active" code out of debug statements
[lttv.git]
/
lttv
/
modules
/
gui
/
lttvwindow
/
lttvwindow
/
init_module.c
diff --git
a/lttv/modules/gui/lttvwindow/lttvwindow/init_module.c
b/lttv/modules/gui/lttvwindow/lttvwindow/init_module.c
index 83d35c96ca0ed274bd1f4c0cb38d2a28e4318c93..7689aa32abc39c9941131cb3e85edaea7114bd81 100644
(file)
--- a/
lttv/modules/gui/lttvwindow/lttvwindow/init_module.c
+++ b/
lttv/modules/gui/lttvwindow/lttvwindow/init_module.c
@@
-134,6
+134,7
@@
static gboolean window_creation_hook(void *hook_data, void *call_data)
static void init() {
LttvAttributeValue value;
static void init() {
LttvAttributeValue value;
+ gboolean retval;
// Global attributes only used for interaction with main() here.
LttvIAttribute *attributes = LTTV_IATTRIBUTE(lttv_global_attributes());
// Global attributes only used for interaction with main() here.
LttvIAttribute *attributes = LTTV_IATTRIBUTE(lttv_global_attributes());
@@
-173,8
+174,9
@@
static void init() {
"pathname of the directory containing the trace",
LTTV_OPT_STRING, &a_trace, lttv_trace_option, NULL);
"pathname of the directory containing the trace",
LTTV_OPT_STRING, &a_trace, lttv_trace_option, NULL);
- g_assert(lttv_iattribute_find_by_path(attributes, "hooks/main/before",
- LTTV_POINTER, &value));
+ retval= lttv_iattribute_find_by_path(attributes, "hooks/main/before",
+ LTTV_POINTER, &value);
+ g_assert(retval);
g_assert((main_hooks = *(value.v_pointer)) != NULL);
lttv_hooks_add(main_hooks, window_creation_hook, NULL, LTTV_PRIO_DEFAULT);
g_assert((main_hooks = *(value.v_pointer)) != NULL);
lttv_hooks_add(main_hooks, window_creation_hook, NULL, LTTV_PRIO_DEFAULT);
This page took
0.024164 seconds
and
4
git commands to generate.