add tooltips for filter window buttons
authorpmf <pmf@04897980-b3bd-0310-b5e0-8ef037075253>
Wed, 20 Jun 2007 20:24:53 +0000 (20:24 +0000)
committerpmf <pmf@04897980-b3bd-0310-b5e0-8ef037075253>
Wed, 20 Jun 2007 20:24:53 +0000 (20:24 +0000)
git-svn-id: http://ltt.polymtl.ca/svn@2542 04897980-b3bd-0310-b5e0-8ef037075253

ltt/branches/poly/lttv/modules/gui/controlflow/cfv.c
ltt/branches/poly/lttv/modules/gui/detailedevents/events.c

index d23bf110fc694b822308bfb88afb05afca5dfcff..f7a25827efbad088cfbfaf0db8b77729b69f5d77 100644 (file)
@@ -140,6 +140,7 @@ guicontrolflow(LttvPluginTab *ptab)
   GtkWidget *process_list_widget, *drawing_widget, *drawing_area;
   //ControlFlowData* control_flow_data = g_new(ControlFlowData,1) ;
   LttvPluginCFV *plugin_cfv = g_object_new(LTTV_TYPE_PLUGIN_CFV, NULL);
+  GtkTooltips *tooltips = gtk_tooltips_new();
   ControlFlowData* control_flow_data = plugin_cfv->cfd;
   control_flow_data->ptab = ptab;
   control_flow_data->tab = ptab->tab;
@@ -213,6 +214,8 @@ guicontrolflow(LttvPluginTab *ptab)
   gtk_toolbar_insert(GTK_TOOLBAR(control_flow_data->toolbar),
       control_flow_data->button_filter,
       0);
+  gtk_tool_item_set_tooltip(GTK_TOOL_ITEM(control_flow_data->button_filter),
+      tooltips, "Open the filter window", NULL);
 
   tmp_toolbar_icon = create_pixmap (main_window_get_widget(tab),
       "properties.png");
index 5f4fc90dd295379ae1ad40eb02bbec9cfd28c439..0121d931dfdc71ffc292797f1a786e3c86a6401a 100644 (file)
@@ -189,6 +189,7 @@ gui_events(LttvPluginTab *ptab)
   GtkCellRenderer *renderer;
   EventViewerData* event_viewer_data = g_new(EventViewerData,1);
   LttvPluginEVD *plugin_evd = g_object_new(LTTV_TYPE_PLUGIN_EVD, NULL);
+  GtkTooltips *tooltips = gtk_tooltips_new();
   plugin_evd->evd = event_viewer_data;
   Tab *tab = ptab->tab;
   event_viewer_data->tab = tab;
@@ -426,6 +427,8 @@ gui_events(LttvPluginTab *ptab)
         "clicked",
         G_CALLBACK (filter_button),
         (gpointer)plugin_evd);
+  gtk_tool_item_set_tooltip(GTK_TOOL_ITEM(event_viewer_data->button_filter), 
+      tooltips, "Open the filter window", NULL);
   gtk_toolbar_insert(GTK_TOOLBAR(event_viewer_data->toolbar),
       event_viewer_data->button_filter,
       0);
This page took 0.027105 seconds and 4 git commands to generate.