Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIgnacio Rodríguez <ignaciorodriguez@sugarlabs.org>2013-05-26 23:56:12 (GMT)
committer Ignacio Rodríguez <ignaciorodriguez@sugarlabs.org>2013-05-26 23:56:12 (GMT)
commit3fe11b65a1c39fcf890bbca0c7a97e713e33fb32 (patch)
treee75c12c2f6d838f72f7e0cd97c1e75874ead40d0
parente7ff0085252d5df24583b60400a012520c8c0dd4 (diff)
El usuario solo puede seleccionar archivos *.json al abrir un proyecto
-rw-r--r--IdeMain.py2
-rw-r--r--Widgets.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/IdeMain.py b/IdeMain.py
index ff059b0..e0138f6 100644
--- a/IdeMain.py
+++ b/IdeMain.py
@@ -145,7 +145,7 @@ class IdeMain(Gtk.Window):
filechooser = My_FileChooser(
parent_window = self,
action_type = Gtk.FileChooserAction.OPEN,
- #filter_type = "text/*.*",
+ filter_type = "*.json",
title = "Abrir proyecto",
path = BatovideWorkSpace)
diff --git a/Widgets.py b/Widgets.py
index 8e5527b..90d77f6 100644
--- a/Widgets.py
+++ b/Widgets.py
@@ -644,7 +644,7 @@ class My_FileChooser(Gtk.FileChooserDialog):
if filter_type != None:
filter = Gtk.FileFilter()
filter.set_name(filter_type)
- filter.add_mime_type(filter_type)
+ filter.add_pattern(filter_type)
self.add_filter(filter)
hbox = Gtk.Box(orientation = Gtk.Orientation.HORIZONTAL)