event list get filter when starts
[lttv.git] / ltt / branches / poly / lttv / modules / gui / lttvwindow / lttvwindow / lttvwindow.c
index d76ce1545b792d2d4121220a45e789c0e8a83ac7..fe67fb70cff71b0cbce669c2f1e6d09040b8dee6 100644 (file)
@@ -1024,15 +1024,14 @@ LttTime lttvwindow_get_current_time(Tab *tab)
 
 /**
  * Function to get the filter of the current tab.
- * @param main_win, the main window the viewer belongs to.
  * @param filter, a pointer to a filter.
+ *
+ * returns the current filter
  */
-#if 0
 LttvFilter *lttvwindow_get_filter(Tab *tab)
 {
   return tab->filter;
 }
-#endif //0
 
 /**
  * Function to set the filter of the current tab.
@@ -1122,3 +1121,19 @@ void events_request_free(EventsRequest *events_request)
 }
 
 
+void main_window_add_child_window(Tab *tab, gpointer data,
+    const gchar *name, GDestroyNotify destroy_fct)
+{
+  g_object_set_data_full(G_OBJECT(tab->mw->mwindow),
+      name,
+      data,
+      destroy_fct);
+}
+
+void main_window_remove_child_window(Tab *tab,
+    const gchar *name)
+{
+  /* Might return NULL if called from the descructor upon main window close */
+  g_object_steal_data(G_OBJECT(tab->mw->mwindow), name);
+}
+
This page took 0.03036 seconds and 4 git commands to generate.