[Xfce4-commits] [xfce/libxfce4ui] 01/01: Do not try to a set button' image if an empty string was used
noreply at xfce.org
noreply at xfce.org
Fri Aug 2 03:53:38 CEST 2019
This is an automated email from the git hooks/post-receive script.
a n d r e p u s h e d a c o m m i t t o b r a n c h m a s t e r
in repository xfce/libxfce4ui.
commit cb67f48cd2868109e67936a77aa386df6d462a6a
Author: Andre Miranda <andreldm at xfce.org>
Date: Thu Aug 1 22:51:18 2019 -0300
Do not try to a set button' image if an empty string was used
Otherwise labels will shift to the right
---
libxfce4ui/xfce-gtk-extensions.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libxfce4ui/xfce-gtk-extensions.c b/libxfce4ui/xfce-gtk-extensions.c
index 23b1d78..3748aeb 100644
--- a/libxfce4ui/xfce-gtk-extensions.c
+++ b/libxfce4ui/xfce-gtk-extensions.c
@@ -72,7 +72,7 @@ xfce_gtk_button_new_mixed (const gchar *stock_id,
{
button = gtk_button_new_with_mnemonic (label);
- if (stock_id != NULL)
+ if (stock_id != NULL && strlen(stock_id) > 0)
{
/* create image widget */
#if !GTK_CHECK_VERSION (3, 10, 0)
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list