From 2dd5f7c525c94774d24360dc8f7dbbc015127568 Mon Sep 17 00:00:00 2001 From: pmf Date: Wed, 20 Jun 2007 20:24:53 +0000 Subject: [PATCH] add tooltips for filter window buttons git-svn-id: http://ltt.polymtl.ca/svn@2542 04897980-b3bd-0310-b5e0-8ef037075253 --- ltt/branches/poly/lttv/modules/gui/controlflow/cfv.c | 3 +++ ltt/branches/poly/lttv/modules/gui/detailedevents/events.c | 3 +++ 2 files changed, 6 insertions(+) diff --git a/ltt/branches/poly/lttv/modules/gui/controlflow/cfv.c b/ltt/branches/poly/lttv/modules/gui/controlflow/cfv.c index d23bf110..f7a25827 100644 --- a/ltt/branches/poly/lttv/modules/gui/controlflow/cfv.c +++ b/ltt/branches/poly/lttv/modules/gui/controlflow/cfv.c @@ -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"); diff --git a/ltt/branches/poly/lttv/modules/gui/detailedevents/events.c b/ltt/branches/poly/lttv/modules/gui/detailedevents/events.c index 5f4fc90d..0121d931 100644 --- a/ltt/branches/poly/lttv/modules/gui/detailedevents/events.c +++ b/ltt/branches/poly/lttv/modules/gui/detailedevents/events.c @@ -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); -- 2.34.1