diff options
-rw-r--r-- | mate-panel/panel-toplevel.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/mate-panel/panel-toplevel.c b/mate-panel/panel-toplevel.c index 164b3bd5..d4ae5ea9 100644 --- a/mate-panel/panel-toplevel.c +++ b/mate-panel/panel-toplevel.c @@ -5079,6 +5079,11 @@ panel_toplevel_set_expand (PanelToplevel *toplevel, { g_return_if_fail (PANEL_IS_TOPLEVEL (toplevel)); + if (toplevel->priv->attached && expand) { + g_warning ("attempt to expand attached toplevel; ignoring"); + return; + } + expand = expand != FALSE; if (toplevel->priv->expand == expand) |