diff options
author | monsta <[email protected]> | 2015-12-18 15:19:32 +0300 |
---|---|---|
committer | Monsta <[email protected]> | 2015-12-21 12:06:28 +0300 |
commit | 93750e6432351d2584ea1dbeb73579f030523f4d (patch) | |
tree | 285e2ca5056d2ddc8e3f001f6a7cfc83f980164b | |
parent | fe8847c1ac00ee0767316610d436d799808859e8 (diff) | |
download | mate-panel-93750e6432351d2584ea1dbeb73579f030523f4d.tar.bz2 mate-panel-93750e6432351d2584ea1dbeb73579f030523f4d.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 * |