[baobab/issue_14_pie_chart_gone_further_cleanup: 1/5] Check if item is highlighted during tooltip.
- From: Eduard <neduard src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [baobab/issue_14_pie_chart_gone_further_cleanup: 1/5] Check if item is highlighted during tooltip.
- Date: Sat, 9 Jan 2021 16:50:03 +0000 (UTC)
commit cf5f4632fd737f4e29bedb5dd5fc8423b85bba1a
Author: Eduard Nicodei <eddnicodei gmail com>
Date: Sat Jan 9 11:39:38 2021 +0000
Check if item is highlighted during tooltip.
src/baobab-chart.vala | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
---
diff --git a/src/baobab-chart.vala b/src/baobab-chart.vala
index 8af189f..b9b710e 100644
--- a/src/baobab-chart.vala
+++ b/src/baobab-chart.vala
@@ -602,9 +602,7 @@ namespace Baobab {
}
protected override bool query_tooltip (int x, int y, bool keyboard_tooltip, Gtk.Tooltip tooltip) {
- if (highlighted_item == null ||
- highlighted_item.name == null ||
- highlighted_item.size == null) {
+ if (keyboard_tooltip || !highlight_item_at_point(x,y)) {
return false;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]