This is an automated email from the git hooks/post-receive script.

gottcode pushed a 
commit to branch 
master
in repository panel-plugins/xfce4-whiskermenu-plugin.

commit 992078c7e84bf320d960bab09e4dc1f900507b0c
Author: Graeme Gott <[email protected]>
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 <[email protected]>
+ * Copyright (C) 2013, 2015, 2016, 2019 Graeme Gott <[email protected]>
  *
  * 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.
_______________________________________________
Xfce4-commits mailing list
[email protected]
https://mail.xfce.org/mailman/listinfo/xfce4-commits

Reply via email to