[Xfce4-commits] [panel-plugins/xfce4-whiskermenu-plugin] 06/14: Fix displaying empty tooltips. (bug #15137)
noreply at xfce.org
noreply at xfce.org
Tue Mar 26 09:45:29 CET 2019
This is an automated email from the git hooks/post-receive script.
g o t t c o d e p u s h e d a c o m m i t t o a n n o t a t e d t a g v 2 . 3 . 2
in repository panel-plugins/xfce4-whiskermenu-plugin.
commit d072597c89264a5033fe892ad34cdfaa46cf33c5
Author: Graeme Gott <graeme at gottcode.org>
Date: Wed Feb 20 05:58:20 2019 -0500
Fix displaying empty tooltips. (bug #15137)
---
panel-plugin/element.h | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/panel-plugin/element.h b/panel-plugin/element.h
index 4a031ee..6a23b73 100644
--- a/panel-plugin/element.h
+++ b/panel-plugin/element.h
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2013, 2015, 2016 Graeme Gott <graeme at gottcode.org>
+ * Copyright (C) 2013, 2015, 2016, 2019 Graeme Gott <graeme at gottcode.org>
*
* This library is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -18,6 +18,7 @@
#ifndef WHISKERMENU_ELEMENT_H
#define WHISKERMENU_ELEMENT_H
+#include <exo/exo.h>
#include <gdk/gdk.h>
namespace WhiskerMenu
@@ -107,7 +108,7 @@ protected:
void set_tooltip(const gchar* tooltip)
{
g_free(m_tooltip);
- m_tooltip = g_markup_escape_text(tooltip, -1);
+ m_tooltip = !exo_str_is_empty(tooltip) ? g_markup_escape_text(tooltip, -1) : NULL;
}
private:
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list