Explorar o código

tools/*: code-style: use preprocessor to disable code blocks

Daniele Bartolini %!s(int64=3) %!d(string=hai) anos
pai
achega
33e2ad1ff1

+ 3 - 3
tools/level_editor/level_tree_view.vala

@@ -130,8 +130,8 @@ public class LevelTreeView : Gtk.Box
 		});
 		_tree_view = new Gtk.TreeView();
 		_tree_view.append_column(column);
-/*
-		// Debug
+#if 0
+		// For debugging.
 		_tree_view.insert_column_with_attributes(-1
 			, "Guids"
 			, new gtk.CellRendererText()
@@ -139,7 +139,7 @@ public class LevelTreeView : Gtk.Box
 			, Column.GUID
 			, null
 			);
-*/
+#endif
 		_tree_view.headers_clickable = false;
 		_tree_view.headers_visible = false;
 		_tree_view.model = _tree_sort;

+ 3 - 3
tools/level_editor/project_browser.vala

@@ -140,8 +140,8 @@ public class ProjectBrowser : Gtk.Box
 		});
 		_tree_view = new Gtk.TreeView();
 		_tree_view.append_column(column);
-/*
-		// This is for debugging only
+#if 0
+		// For debugging.
 		_tree_view.insert_column_with_attributes(-1
 			, "Segment"
 			, new Gtk.CellRendererText()
@@ -163,7 +163,7 @@ public class ProjectBrowser : Gtk.Box
 			, ProjectStore.Column.TYPE
 			, null
 			);
-*/
+#endif
 		_tree_view.model = _tree_sort;
 		_tree_view.headers_visible = false;
 		_tree_view.button_press_event.connect(on_button_pressed);

+ 3 - 3
tools/level_editor/resource_chooser.vala

@@ -99,8 +99,8 @@ public class ResourceChooser : Gtk.Box
 			, ProjectStore.Column.NAME
 			, null
 			);
-/*
-		// Debug
+#if 0
+		// For debugging.
 		_tree_view.insert_column_with_attributes(-1
 			, "Type"
 			, new Gtk.CellRendererText()
@@ -108,7 +108,7 @@ public class ResourceChooser : Gtk.Box
 			, ProjectStore.Column.TYPE
 			, null
 			);
-*/
+#endif
 		_tree_view.model = _tree_sort;
 		_tree_view.headers_visible = false;
 		_tree_view.can_focus = false;