add properties button and tab fixes
authorcompudj <compudj@04897980-b3bd-0310-b5e0-8ef037075253>
Thu, 22 Jun 2006 18:31:57 +0000 (18:31 +0000)
committercompudj <compudj@04897980-b3bd-0310-b5e0-8ef037075253>
Thu, 22 Jun 2006 18:31:57 +0000 (18:31 +0000)
git-svn-id: http://ltt.polymtl.ca/svn@1959 04897980-b3bd-0310-b5e0-8ef037075253

ltt/branches/poly/lttv/modules/gui/controlflow/cfv.c
ltt/branches/poly/lttv/modules/gui/controlflow/cfv.h

index 33bcdd2a8c9df1bf1efff772c9450b6aaf88b10e..6f033bd1e9f6c3d87afd8b6d363ea1a0031a63fc 100644 (file)
@@ -49,35 +49,35 @@ header_size_allocate(GtkWidget *widget,
 }
 
 gboolean cfv_scroll_event(GtkWidget *widget, GdkEventScroll *event,
-               gpointer data)
+    gpointer data)
 {
   ControlFlowData *control_flow_data = (ControlFlowData*)data;
-       unsigned int cell_height =
-               get_cell_height(
-                               GTK_TREE_VIEW(control_flow_data->process_list->process_list_widget));
-       gdouble new;
+  unsigned int cell_height =
+    get_cell_height(
+        GTK_TREE_VIEW(control_flow_data->process_list->process_list_widget));
+  gdouble new;
 
   switch(event->direction) {
     case GDK_SCROLL_UP:
-                       {
-                               new = gtk_adjustment_get_value(control_flow_data->v_adjust) 
-                                                                                                                                       - cell_height;
-                       }
+      {
+        new = gtk_adjustment_get_value(control_flow_data->v_adjust) 
+                                  - cell_height;
+      }
       break;
     case GDK_SCROLL_DOWN:
-                       {
-                               new = gtk_adjustment_get_value(control_flow_data->v_adjust) 
-                                                                                                                                       + cell_height;
-                       }
+      {
+        new = gtk_adjustment_get_value(control_flow_data->v_adjust) 
+                                  + cell_height;
+      }
       break;
-               default:
-                       return FALSE;
+    default:
+      return FALSE;
   }
-       if(new >= control_flow_data->v_adjust->lower &&
-                       new <= control_flow_data->v_adjust->upper 
-                                       - control_flow_data->v_adjust->page_size)
-               gtk_adjustment_set_value(control_flow_data->v_adjust, new);
-       return TRUE;
+  if(new >= control_flow_data->v_adjust->lower &&
+      new <= control_flow_data->v_adjust->upper 
+          - control_flow_data->v_adjust->page_size)
+    gtk_adjustment_set_value(control_flow_data->v_adjust, new);
+  return TRUE;
 }
 
 
@@ -135,11 +135,11 @@ guicontrolflow(Tab *tab)
         "scroll-event",
         G_CALLBACK (cfv_scroll_event),
         (gpointer)control_flow_data);
-        g_signal_connect (G_OBJECT(drawing_area),
+   g_signal_connect (G_OBJECT(drawing_area),
         "scroll-event",
         G_CALLBACK (cfv_scroll_event),
         (gpointer)control_flow_data);
-       
+  
   g_signal_connect (G_OBJECT(control_flow_data->process_list->button),
         "size-allocate",
         G_CALLBACK(header_size_allocate),
@@ -191,6 +191,8 @@ guicontrolflow(Tab *tab)
   g_control_flow_data_list = g_slist_append(
       g_control_flow_data_list,
       control_flow_data);
+  
+  control_flow_data->filter = NULL;
 
   //WARNING : The widget must be 
   //inserted in the main window before the drawing area
@@ -224,6 +226,7 @@ guicontrolflow_destructor(ControlFlowData *control_flow_data)
   if(GTK_IS_WIDGET(guicontrolflow_get_widget(control_flow_data)))
     g_info("widget still exists");
   
+  lttv_filter_destroy(control_flow_data->filter);
   /* Process List is removed with it's widget */
   //ProcessList_destroy(control_flow_data->process_list);
   if(tab != NULL)
index 31c42fdf79de148d91428d5a058f252d93af3e08..d5410cafea2bcddbfc9eb336116a348c809ab9f7 100644 (file)
@@ -23,6 +23,7 @@
 
 #include <gtk/gtk.h>
 #include <lttvwindow/mainwindow.h>
+#include <lttv/filter.h>
 #include "processlist.h"
 
 extern GQuark LTT_NAME_CPU;
@@ -44,6 +45,8 @@ struct _ControlFlowData {
   Tab *tab;
 
   GtkWidget *box; /* box that contains the hpaned. necessary for it to work */
+  GtkWidget *toolbar; /* Vbox that contains the viewer's toolbar */
+  GtkWidget *button_prop; /* Properties button. */
   GtkWidget *h_paned;
 
   ProcessList *process_list;
@@ -60,6 +63,8 @@ struct _ControlFlowData {
   guint background_info_waiting; /* Number of background requests waited for
                                     in order to have all the info ready. */
 
+  LttvFilter *filter;
+
 } ;
 
 /* Control Flow Data constructor */
This page took 0.026303 seconds and 4 git commands to generate.