Handler for grab-focus signal
authoryangxx <yangxx@04897980-b3bd-0310-b5e0-8ef037075253>
Tue, 10 Feb 2004 19:19:32 +0000 (19:19 +0000)
committeryangxx <yangxx@04897980-b3bd-0310-b5e0-8ef037075253>
Tue, 10 Feb 2004 19:19:32 +0000 (19:19 +0000)
git-svn-id: http://ltt.polymtl.ca/svn@488 04897980-b3bd-0310-b5e0-8ef037075253

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

index 8f35404e550821a86666fb600016fc69e8214f7d..bf444b65239ea30dd0bbde8bae7c5bb1952379d5 100644 (file)
 
 extern GSList *g_control_flow_data_list;
 
+static void control_flow_grab_focus(GtkWidget *widget, gpointer data){
+  ControlFlowData * control_flow_data = (ControlFlowData *)data;
+  MainWindow * mw = control_flow_data->mw;
+  set_focused_pane(mw, gtk_widget_get_parent(control_flow_data->scrolled_window));
+}
+
+
 /*****************************************************************************
  *                     Control Flow Viewer class implementation              *
  *****************************************************************************/
@@ -126,6 +133,11 @@ guicontrolflow(void)
   //can be configured (and this must happend bedore sending
   //data)
 
+  g_signal_connect (G_OBJECT (process_list_widget), "grab-focus",
+        G_CALLBACK (control_flow_grab_focus),
+        control_flow_data);
+
+
   return control_flow_data;
 
 }
index 2a43501361047db10abf59f0f3caefbf02692652..e8b28a9819e5d4a481c32ce6e91c923d4a71d9f3 100644 (file)
@@ -386,6 +386,8 @@ button_press_event( GtkWidget *widget, GdkEventButton *event, gpointer user_data
     set_current_time(control_flow_data->mw, &time);
 
   }
+
+  set_focused_pane(control_flow_data->mw, gtk_widget_get_parent(control_flow_data->scrolled_window));
   
   return FALSE;
 }
This page took 0.025315 seconds and 4 git commands to generate.