summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mate-panel/drawer.c10
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 *