[seed] ClutterPad: Only show javascript files in examples dropdown.
- From: Tim Horton <hortont src gnome org>
- To: svn-commits-list gnome org
- Subject: [seed] ClutterPad: Only show javascript files in examples dropdown.
- Date: Wed, 13 May 2009 08:48:31 -0400 (EDT)
commit e3d674dc7e77e5026a5fae56c14fb06d962f95ae
Author: Tim Horton <hortont svn gnome org>
Date: Wed May 13 08:37:05 2009 -0400
ClutterPad: Only show javascript files in examples dropdown.
---
examples/clutter-pad.js | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/examples/clutter-pad.js b/examples/clutter-pad.js
index 0eefd7f..84c6596 100755
--- a/examples/clutter-pad.js
+++ b/examples/clutter-pad.js
@@ -51,7 +51,11 @@ function populate_example_selector()
enumerator = file.enumerate_children("standard::name");
while((child = enumerator.next_file()))
- example_selector.append_text(child.get_name());
+ {
+ var fname = child.get_name();
+ if(fname.match(/\.js$/))
+ example_selector.append_text(child.get_name());
+ }
}
function new_file()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]