summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mate-panel/panel-toplevel.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/mate-panel/panel-toplevel.c b/mate-panel/panel-toplevel.c
index acdeb36e..9f2d0e62 100644
--- a/mate-panel/panel-toplevel.c
+++ b/mate-panel/panel-toplevel.c
@@ -5078,6 +5078,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)