summaryrefslogtreecommitdiff
path: root/mate-panel
diff options
context:
space:
mode:
authormonsta <[email protected]>2015-12-23 15:08:29 +0300
committermonsta <[email protected]>2015-12-23 15:08:29 +0300
commitbdfdeaeabf8f5bd233126a826d59e5ddd3a1cc1e (patch)
tree73038878f75a96ab3d396b389655dedd4bcc686c /mate-panel
parentcdcd6f27775b9e328927bb9d1bde29a94f70d35a (diff)
downloadmate-panel-bdfdeaeabf8f5bd233126a826d59e5ddd3a1cc1e.tar.bz2
mate-panel-bdfdeaeabf8f5bd233126a826d59e5ddd3a1cc1e.tar.xz
never agree to expand an attached toplevel (drawer's panel)
Diffstat (limited to 'mate-panel')
-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 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)