diff options
author | monsta <[email protected]> | 2015-12-18 15:19:32 +0300 |
---|---|---|
committer | monsta <[email protected]> | 2016-01-11 15:20:35 +0300 |
commit | 0af6c1192bfa9323972d9405a9a3c958732f3b9d (patch) | |
tree | 0902345f6111a4da8e2e79537ffb0dc26edffd81 | |
parent | cd5c8b6c8af0c86050c60baaeb0a138210308668 (diff) | |
download | mate-panel-0af6c1192bfa9323972d9405a9a3c958732f3b9d.tar.bz2 mate-panel-0af6c1192bfa9323972d9405a9a3c958732f3b9d.tar.xz |
drawer: don't try to set NULL tooltip
-rw-r--r-- | mate-panel/drawer.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/mate-panel/drawer.c b/mate-panel/drawer.c index da33ea0e..e06d6467 100644 --- a/mate-panel/drawer.c +++ b/mate-panel/drawer.c @@ -308,13 +308,11 @@ set_tooltip_and_name (Drawer *drawer, { g_return_if_fail (drawer != NULL); g_return_if_fail (drawer->toplevel != NULL); - g_return_if_fail (tooltip != NULL); - if (tooltip && !tooltip [0]) - tooltip = NULL; - - panel_toplevel_set_name (drawer->toplevel, tooltip); - panel_util_set_tooltip_text (drawer->button, tooltip); + if (tooltip != NULL && tooltip [0] != '\0') { + panel_toplevel_set_name (drawer->toplevel, tooltip); + panel_util_set_tooltip_text (drawer->button, tooltip); + } } static Drawer * |