Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/window.py
diff options
context:
space:
mode:
authorCristian Garcia <cristian99garcia@gmail.com>2013-08-11 17:28:59 (GMT)
committer Cristian Garcia <cristian99garcia@gmail.com>2013-08-11 17:28:59 (GMT)
commit7db862dc5543494808241512aaccebf052c79293 (patch)
tree1306a06f1cff5fa0146299b6055657c7f9a094fe /window.py
parent99e70cd06defc860a4c4ee4c0468e9b9a0bce5c0 (diff)
Arreglando de todo un poco
Diffstat (limited to 'window.py')
-rw-r--r--window.py17
1 files changed, 8 insertions, 9 deletions
diff --git a/window.py b/window.py
index 241ee0f..badf62c 100644
--- a/window.py
+++ b/window.py
@@ -62,6 +62,12 @@ class CExplorer(Gtk.Window):
self.area_montajes = AreadeMontajes(self)
self.b_estado = BarradeEstado()
+ item = Gtk.ToolItem()
+ switch = Gtk.Switch()
+ switch.connect('notify::active', self.change_ocultos)
+ item.add(switch)
+ self.toolbar.add(item)
+
scrolled_montajes = Gtk.ScrolledWindow()
scrolled = Gtk.ScrolledWindow()
paned = Gtk.Paned()
@@ -297,17 +303,10 @@ class CExplorer(Gtk.Window):
self.entrada.activate()
self.update()
- def change_ocultos(self, widget):
+ def change_ocultos(self, widget, active):
"""Muestra o no muestra archivos ocultos"""
- self.ocultos = not self.ocultos
-
- if self.ocultos:
- widget.set_icon_name(Gtk.STOCK_NO)
-
- else:
- widget.set_icon_name(Gtk.STOCK_YES)
-
+ self.ocultos = widget.get_active()
self.update()
def get_nueva_direccion(self):