tint2conf: disable buttons for gradient/background 0

This commit is contained in:
o9000
2017-03-04 22:14:23 +01:00
parent d17b2d8015
commit e833b27533
3 changed files with 29 additions and 3 deletions

View File

@@ -586,7 +586,7 @@ void print_icons()
gboolean reject_icon(Window win)
{
if (systray_hide_name_filter) {
if (systray_hide_name_filter && strlen(systray_hide_name_filter)) {
if (!systray_hide_name_regex) {
systray_hide_name_regex = (regex_t *) calloc(1, sizeof(*systray_hide_name_regex));
if (regcomp(systray_hide_name_regex, systray_hide_name_filter, 0) != 0) {