#include <lttvwindow/mainwindow.h>
#include <lttvwindow/mainwindow-private.h>
#include <lttvwindow/menu.h>
#include <lttvwindow/mainwindow.h>
#include <lttvwindow/mainwindow-private.h>
#include <lttvwindow/menu.h>
TimeInterval time_span = tsc->time_span;
TimeWindow new_time_window = tab->time_window;
LttTime new_current_time = tab->current_time;
TimeInterval time_span = tsc->time_span;
TimeWindow new_time_window = tab->time_window;
LttTime new_current_time = tab->current_time;
- g_assert( lttv_iattribute_find_by_path(tab->attributes,
- "hooks/updatetraceset", LTTV_POINTER, &value));
+ retval= lttv_iattribute_find_by_path(tab->attributes,
+ "hooks/updatetraceset", LTTV_POINTER, &value);
+ g_assert(retval);
time_change_manager(tab, new_time_window);
current_time_change_manager(tab, new_current_time);
time_change_manager(tab, new_time_window);
current_time_change_manager(tab, new_current_time);
- g_assert(lttv_iattribute_find_by_path(tab->attributes,
- "hooks/updatetraceset", LTTV_POINTER, &value));
+ gboolean retval;
+
+ retval= lttv_iattribute_find_by_path(tab->attributes,
+ "hooks/updatetraceset", LTTV_POINTER, &value);
+ g_assert(retval);
tmp = (LttvHooks*)*(value.v_pointer);
if(tmp == NULL) return;
lttv_hooks_call(tmp, NULL);
tmp = (LttvHooks*)*(value.v_pointer);
if(tmp == NULL) return;
lttv_hooks_call(tmp, NULL);
GtkWidget *page = gtk_notebook_get_nth_page(GTK_NOTEBOOK(notebook),
gtk_notebook_get_current_page(GTK_NOTEBOOK(notebook)));
Tab *tab;
GtkWidget *page = gtk_notebook_get_nth_page(GTK_NOTEBOOK(notebook),
gtk_notebook_get_current_page(GTK_NOTEBOOK(notebook)));
Tab *tab;
- g_assert(lttv_iattribute_find_by_path(tab->attributes, "hooks/redraw", LTTV_POINTER, &value));
+ retval= lttv_iattribute_find_by_path(tab->attributes, "hooks/redraw", LTTV_POINTER, &value);
+ g_assert(retval);
GtkWidget *page = gtk_notebook_get_nth_page(GTK_NOTEBOOK(notebook),
gtk_notebook_get_current_page(GTK_NOTEBOOK(notebook)));
Tab *tab;
GtkWidget *page = gtk_notebook_get_nth_page(GTK_NOTEBOOK(notebook),
gtk_notebook_get_current_page(GTK_NOTEBOOK(notebook)));
Tab *tab;
- g_assert(lttv_iattribute_find_by_path(tab->attributes,
- "hooks/continue", LTTV_POINTER, &value));
+ retval= lttv_iattribute_find_by_path(tab->attributes, "hooks/continue",
+ LTTV_POINTER, &value);
+ g_assert(retval);
MainWindow *main_window = get_window_data_struct(widget);
LttvIAttribute *attributes = main_window->attributes;
LttvAttributeValue value;
MainWindow *main_window = get_window_data_struct(widget);
LttvIAttribute *attributes = main_window->attributes;
LttvAttributeValue value;
//This is unnecessary, since widgets will be destroyed
//by the main window widget anyway.
//remove_all_menu_toolbar_constructors(main_window, NULL);
//This is unnecessary, since widgets will be destroyed
//by the main window widget anyway.
//remove_all_menu_toolbar_constructors(main_window, NULL);
- g_assert(lttv_iattribute_find_by_path(attributes,
- "viewers/menu", LTTV_POINTER, &value));
+ retval= lttv_iattribute_find_by_path(attributes, "viewers/menu",
+ LTTV_POINTER, &value);
+ g_assert(retval);
- g_assert(lttv_iattribute_find_by_path(attributes,
- "viewers/toolbar", LTTV_POINTER, &value));
+ retval= lttv_iattribute_find_by_path(attributes, "viewers/toolbar",
+ LTTV_POINTER, &value);
+ g_assert(retval);
LttvTracesetContext *tsc =
LTTV_TRACESET_CONTEXT(tab->traceset_info->traceset_context);
TimeInterval time_span = tsc->time_span;
LttvTracesetContext *tsc =
LTTV_TRACESET_CONTEXT(tab->traceset_info->traceset_context);
TimeInterval time_span = tsc->time_span;
- g_assert(lttv_process_traceset_seek_position(tsc, pos) == 0);
+ retval= lttv_process_traceset_seek_position(tsc, pos);
+ g_assert_cmpint(retval, ==, 0);
LttTime new_time = lttv_traceset_context_position_get_time(pos);
/* Put the context in a state coherent position */
lttv_state_traceset_seek_time_closest((LttvTracesetState*)tsc, ltt_time_zero);
LttTime new_time = lttv_traceset_context_position_get_time(pos);
/* Put the context in a state coherent position */
lttv_state_traceset_seek_time_closest((LttvTracesetState*)tsc, ltt_time_zero);
LttvIAttribute *global_attributes = LTTV_IATTRIBUTE(lttv_global_attributes());
LttvIAttribute *attributes = mw->attributes;
GtkWidget * tool_menu_title_menu, *new_widget, *pixmap;
LttvIAttribute *global_attributes = LTTV_IATTRIBUTE(lttv_global_attributes());
LttvIAttribute *attributes = mw->attributes;
GtkWidget * tool_menu_title_menu, *new_widget, *pixmap;
- g_assert(lttv_iattribute_find_by_path(global_attributes,
- "viewers/menu", LTTV_POINTER, &value));
+ retval= lttv_iattribute_find_by_path(global_attributes, "viewers/menu",
+ LTTV_POINTER, &value);
+ g_assert(retval);
if(*(value.v_pointer) == NULL)
*(value.v_pointer) = lttv_menus_new();
global_menu = (LttvMenus*)*(value.v_pointer);
if(*(value.v_pointer) == NULL)
*(value.v_pointer) = lttv_menus_new();
global_menu = (LttvMenus*)*(value.v_pointer);
- g_assert(lttv_iattribute_find_by_path(attributes,
- "viewers/menu", LTTV_POINTER, &value));
+ retval= lttv_iattribute_find_by_path(attributes, "viewers/menu",
+ LTTV_POINTER, &value);
+ g_assert(retval);
if(*(value.v_pointer) == NULL)
*(value.v_pointer) = lttv_menus_new();
instance_menu = (LttvMenus*)*(value.v_pointer);
if(*(value.v_pointer) == NULL)
*(value.v_pointer) = lttv_menus_new();
instance_menu = (LttvMenus*)*(value.v_pointer);
-
-
- g_assert(lttv_iattribute_find_by_path(global_attributes,
- "viewers/toolbar", LTTV_POINTER, &value));
+ retval= lttv_iattribute_find_by_path(global_attributes, "viewers/toolbar",
+ LTTV_POINTER, &value);
+ g_assert(retval);
if(*(value.v_pointer) == NULL)
*(value.v_pointer) = lttv_toolbars_new();
global_toolbar = (LttvToolbars*)*(value.v_pointer);
if(*(value.v_pointer) == NULL)
*(value.v_pointer) = lttv_toolbars_new();
global_toolbar = (LttvToolbars*)*(value.v_pointer);
- g_assert(lttv_iattribute_find_by_path(attributes,
- "viewers/toolbar", LTTV_POINTER, &value));
+ retval= lttv_iattribute_find_by_path(attributes, "viewers/toolbar",
+ LTTV_POINTER, &value);
+ g_assert(retval);
if(*(value.v_pointer) == NULL)
*(value.v_pointer) = lttv_toolbars_new();
instance_toolbar = (LttvToolbars*)*(value.v_pointer);
if(*(value.v_pointer) == NULL)
*(value.v_pointer) = lttv_toolbars_new();
instance_toolbar = (LttvToolbars*)*(value.v_pointer);
g_debug("construct_main_window()");
GtkWidget * new_window; /* New generated main window */
MainWindow * new_m_window;/* New main window structure */
g_debug("construct_main_window()");
GtkWidget * new_window; /* New generated main window */
MainWindow * new_m_window;/* New main window structure */
- g_assert(lttv_iattribute_find_by_path(attributes,
- "viewers/menu", LTTV_POINTER, &value));
+ retval= lttv_iattribute_find_by_path(attributes, "viewers/menu",
+ LTTV_POINTER, &value);
+ g_assert(retval);
- g_assert(lttv_iattribute_find_by_path(attributes,
- "viewers/toolbar", LTTV_POINTER, &value));
+ retval= lttv_iattribute_find_by_path(attributes, "viewers/toolbar",
+ LTTV_POINTER, &value);
+ g_assert(retval);
*(value.v_pointer) = lttv_toolbars_new();
add_all_menu_toolbar_constructors(new_m_window, NULL);
*(value.v_pointer) = lttv_toolbars_new();
add_all_menu_toolbar_constructors(new_m_window, NULL);