summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohnathan Corgan <johnathan@corganlabs.com>2016-09-09 11:18:46 -0700
committerJohnathan Corgan <johnathan@corganlabs.com>2016-09-09 11:18:46 -0700
commit094e3f8b8497e3039b981856f2abfb0fe1ec3795 (patch)
tree54b297a4c33bd329a44db16a30bedf9952bf1df8
parent6de6a704bca6b9b107affee4265c5bc23b11c84a (diff)
parentda0a102e9b076db83fe5a63b3730ac39b588eb92 (diff)
Merge branch 'master' into next
-rw-r--r--grc/gui/MainWindow.py21
1 files changed, 15 insertions, 6 deletions
diff --git a/grc/gui/MainWindow.py b/grc/gui/MainWindow.py
index 1437391236..686e73cfa3 100644
--- a/grc/gui/MainWindow.py
+++ b/grc/gui/MainWindow.py
@@ -197,26 +197,35 @@ class MainWindow(gtk.Window):
# to be hidden as well.
if panel == self.BLOCKS:
- self.btwin.set_visible(visibility)
+ if visibility:
+ self.btwin.show()
+ else:
+ self.btwin.hide()
elif panel == self.CONSOLE:
- self.console_window.set_visible(visibility)
+ if visibility:
+ self.console_window.show()
+ else:
+ self.console_window.hide()
elif panel == self.VARIABLES:
- self.vars.set_visible(visibility)
+ if visibility:
+ self.vars.show()
+ else:
+ self.vars.hide()
else:
return
if self.variable_panel_sidebar:
# If both the variable editor and block panels are hidden, hide the right container
- if not self.btwin.get_visible() and not self.vars.get_visible():
+ if not (self.btwin.get_property('visible')) and not (self.vars.get_property('visible')):
self.right.hide()
else:
self.right.show()
else:
- if not self.btwin.get_visible():
+ if not (self.btwin.get_property('visible')):
self.right.hide()
else:
self.right.show()
- if not self.vars.get_visible() and not self.console_window.get_visible():
+ if not (self.vars.get_property('visible')) and not (self.console_window.get_property('visible')):
self.left_subpanel.hide()
else:
self.left_subpanel.show()