[jhbuild: 2/60] connect terminal toggle button
- From: Frederic Peters <fpeters src gnome org>
- To: svn-commits-list gnome org
- Subject: [jhbuild: 2/60] connect terminal toggle button
- Date: Sat, 6 Jun 2009 09:47:47 -0400 (EDT)
commit b36b54863710211ed4f098a74abeb8a88bd2e7b7
Author: Frédéric Péters <fpeters 0d be>
Date: Thu May 14 15:20:25 2009 +0200
connect terminal toggle button
---
jhbuild/frontends/gtkui.py | 9 ++++++---
1 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/jhbuild/frontends/gtkui.py b/jhbuild/frontends/gtkui.py
index 1b8a42a..4b930eb 100644
--- a/jhbuild/frontends/gtkui.py
+++ b/jhbuild/frontends/gtkui.py
@@ -137,7 +137,7 @@ class AppWindow(gtk.Window):
sidebar.connect('toggled', self.on_sidebar_toggled)
bbox.pack_end(sidebar, expand=False)
- terminal = vte.Terminal()
+ self.terminal = terminal = vte.Terminal()
hpane.add2(terminal)
app_vbox.show_all()
@@ -150,8 +150,11 @@ class AppWindow(gtk.Window):
def on_build_one_cb(self, *args):
pass
- def on_sidebar_toggled(self, *args):
- pass
+ def on_sidebar_toggled(self, button, *args):
+ if button.get_active():
+ self.terminal.show()
+ else:
+ self.terminal.hide()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]