Permalink
Browse files

[gi-demos] dont try and run demos that represent directories

  • Loading branch information...
1 parent 097e5ef commit 8e4f86e17a1de533a93b0748fd8de3cbfa70ba62 @nzjrs committed Mar 6, 2011
Showing with 2 additions and 1 deletion.
  1. +2 −1 demos/gtk-demo/gtk-demo.py
@@ -215,7 +215,8 @@ def selection_cb(self, selection, model):
def row_activated_cb(self, view, path, col, store):
treeiter = store.get_iter(path)
demo = store.get_value(treeiter, 1)
- demo.module.main(self)
+ if not demo.isdir:
+ demo.module.main(self)
def create_tree(self):
tree_store = Gtk.TreeStore(str, Demo, Pango.Style)

0 comments on commit 8e4f86e

Please sign in to comment.