aboutsummaryrefslogtreecommitdiff
path: root/src/uicmd.cc
diff options
context:
space:
mode:
authorcorvid <corvid@lavabit.com>2009-10-03 15:29:57 +0000
committercorvid <corvid@lavabit.com>2009-10-03 15:29:57 +0000
commit241f20d9187569eedeb974f2edbf2cbf09be2409 (patch)
tree62a118fc04aeb2c854b3d9b90de2c43e7643034f /src/uicmd.cc
parentb959c77c50c1496c815fe179cb38805a422ad0cc (diff)
only set tooltips for UI if prefs.show_tooltip set
Diffstat (limited to 'src/uicmd.cc')
-rw-r--r--src/uicmd.cc29
1 files changed, 16 insertions, 13 deletions
diff --git a/src/uicmd.cc b/src/uicmd.cc
index 7ea523d0..5308ffb3 100644
--- a/src/uicmd.cc
+++ b/src/uicmd.cc
@@ -273,23 +273,26 @@ public:
if (event_inside(r) && children() > 1) {
/* We're inside the button area */
cstp->btn_highlight(true);
- /* Prepare the tooltip for pop-up */
- tooltipEnabled = true;
- /* We use parent() if available because we are returning 0.
- * Returning without having TabGroup processing makes the
- * popup event never reach 'this', but it reaches parent() */
- toolTip->enter(parent() ? parent() : this, r, "Close current Tab");
-
+ if (prefs.show_tooltip) {
+ /* Prepare the tooltip for pop-up */
+ tooltipEnabled = true;
+ /* We use parent() if available because we are returning 0.
+ * Returning without having TabGroup processing makes the
+ * popup event never reach 'this', but it reaches parent() */
+ toolTip->enter(parent() ?parent():this, r, "Close current Tab");
+ }
return 0; // Change focus
} else {
cstp->btn_highlight(false);
- /* Hide the tooltip or enable it again.*/
- if (tooltipEnabled) {
- tooltipEnabled = false;
- toolTip->exit();
- } else {
- toolTip->enable();
+ if (prefs.show_tooltip) {
+ /* Hide the tooltip or enable it again.*/
+ if (tooltipEnabled) {
+ tooltipEnabled = false;
+ toolTip->exit();
+ } else {
+ toolTip->enable();
+ }
}
}
} else if (e == PUSH && event_inside(r) &&