LttvToolbars * toolbar;
LttvMenus * menu;
LttvAttributeValue value;
+ gboolean is_named;
g_assert(lttv_iattribute_find_by_path(attributes_global,
"viewers/toolbar", LTTV_POINTER, &value));
LttvAttributeType type;
for(i=0;i<num;i++) {
- type = lttv_iattribute_get(LTTV_IATTRIBUTE(attribute), i, &name, &value);
+ type = lttv_iattribute_get(LTTV_IATTRIBUTE(attribute), i, &name, &value,
+ &is_named);
g_assert(type == LTTV_POINTER);
if(*(value.v_pointer) == view_constructor) {
lttv_iattribute_remove(LTTV_IATTRIBUTE(attribute), i);
*/
LttvFilter *lttvwindow_get_filter(Tab *tab)
{
- return tab->filter;
+ return g_object_get_data(G_OBJECT(tab->vbox), "filter");
}
/**
* @param main_win, the main window the viewer belongs to.
* @param filter, a pointer to a filter.
*/
-
void lttvwindow_report_filter(Tab *tab, LttvFilter *filter)
{
LttvAttributeValue value;
LttvHooks * tmp;
- lttv_filter_destroy(tab->filter);
- tab->filter = filter;
+ //lttv_filter_destroy(tab->filter);
+ //tab->filter = filter;
g_assert(lttv_iattribute_find_by_path(tab->attributes,
"hooks/updatefilter", LTTV_POINTER, &value));