X-Git-Url: http://git.lttng.org/?a=blobdiff_plain;f=ltt%2Fbranches%2Fpoly%2Flttv%2Fmodules%2Fgui%2Flttvwindow%2Flttvwindow%2Flttvwindow.c;h=7dd2e0c7eb8f0b06099b37499cd85f62004f61e8;hb=9f95f0a60f69639baf3febdcec844d8e4c9ada88;hp=323aec92d0177d746d1fbd21f396091c0acfcf9e;hpb=c9ae5e4b6905d2ae6e4e46b981322de8e5386c65;p=lttv.git diff --git a/ltt/branches/poly/lttv/modules/gui/lttvwindow/lttvwindow/lttvwindow.c b/ltt/branches/poly/lttv/modules/gui/lttvwindow/lttvwindow/lttvwindow.c index 323aec92..7dd2e0c7 100644 --- a/ltt/branches/poly/lttv/modules/gui/lttvwindow/lttvwindow/lttvwindow.c +++ b/ltt/branches/poly/lttv/modules/gui/lttvwindow/lttvwindow/lttvwindow.c @@ -344,6 +344,7 @@ void lttvwindow_unregister_constructor LttvToolbars * toolbar; LttvMenus * menu; LttvAttributeValue value; + gboolean is_named; g_assert(lttv_iattribute_find_by_path(attributes_global, "viewers/toolbar", LTTV_POINTER, &value)); @@ -381,7 +382,8 @@ void lttvwindow_unregister_constructor LttvAttributeType type; for(i=0;ievents_requests; + + if(element == NULL) return FALSE; + else return TRUE; +} + + + + /** * Function to get the current time interval shown on the current tab. * It will be called by a viewer's hook function to update the @@ -1032,7 +1057,7 @@ LttTime lttvwindow_get_current_time(Tab *tab) */ LttvFilter *lttvwindow_get_filter(Tab *tab) { - return tab->filter; + return g_object_get_data(G_OBJECT(tab->vbox), "filter"); } /** @@ -1047,14 +1072,13 @@ LttvFilter *lttvwindow_get_filter(Tab *tab) * @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));