summaryrefslogtreecommitdiffstats
path: root/grapher/GraphWidget.cxx
diff options
context:
space:
mode:
authorTim Moore <timoore@redhat.com>2009-12-04 17:12:06 +0100
committerTim Moore <timoore@redhat.com>2009-12-04 17:12:06 +0100
commit2ebfefae53de7d6c001554a159dbcc8edfac9ec7 (patch)
tree9b1b4bb2aedbf6a6b8fb682bee77e6cf6409b0dd /grapher/GraphWidget.cxx
parent52cf0905d93c33f7d6f768478572ea08df4c8af0 (diff)
downloadsystemtap-steved-2ebfefae53de7d6c001554a159dbcc8edfac9ec7.tar.gz
systemtap-steved-2ebfefae53de7d6c001554a159dbcc8edfac9ec7.tar.xz
systemtap-steved-2ebfefae53de7d6c001554a159dbcc8edfac9ec7.zip
hover text on the additional graphs
* grapher/Graph.cxx (window2GraphCoords): Take the entire graph's position into account too. * grapher/GraphWidget.cxx (GraphWidget): Hook up the data dialog's OK button. (onDataDialogOpen): If a data set doesn't have a title, use it's name (key) instead.
Diffstat (limited to 'grapher/GraphWidget.cxx')
-rw-r--r--grapher/GraphWidget.cxx10
1 files changed, 9 insertions, 1 deletions
diff --git a/grapher/GraphWidget.cxx b/grapher/GraphWidget.cxx
index e37485b8..3d38627f 100644
--- a/grapher/GraphWidget.cxx
+++ b/grapher/GraphWidget.cxx
@@ -53,6 +53,11 @@ namespace systemtap
button->signal_clicked()
.connect(sigc::mem_fun(*this, &GraphWidget::onDataDialogCancel),
false);
+ // XXX
+ _refXmlDataDialog->get_widget("okbutton1", button);
+ button->signal_clicked()
+ .connect(sigc::mem_fun(*this, &GraphWidget::onDataDialogCancel),
+ false);
_refXmlDataDialog->get_widget("button1", button);
button->signal_clicked()
.connect(sigc::mem_fun(*this, &GraphWidget::onDataAdd), false);
@@ -263,7 +268,10 @@ namespace systemtap
{
Gtk::TreeModel::iterator litr = _listStore->append();
Gtk::TreeModel::Row row = *litr;
- row[_dataColumns._dataName] = (*itr)->title;
+ if (!(*itr)->title.empty())
+ row[_dataColumns._dataName] = (*itr)->title;
+ else
+ row[_dataColumns._dataName] = (*itr)->name;
row[_dataColumns._graphData] = *itr;
}
}