[mlview-list] PATCHs - main.c



Hi all,

I send two patchs.

The first removes some #include of the main.c file and the second indents correctly the xml file.

Sorry, but I don't know Arch, but I will read the manual this week, if I have time.

Regards,

Stephane
--- orig/schemas/mlview.schemas
+++ mod/schemas/mlview.schemas
@@ -1,183 +1,183 @@
 <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
 <gconfschemafile>
-  <schemalist>
-    <schema>
-      <key>/schemas/apps/mlview/default-tree-expansion-depth</key>
-      <applyto>/apps/mlview/default-tree-expansion-depth</applyto>
-      <owner>mlview</owner>
-      <type>int</type>
-      <default>4</default>
-      <locale name="C">
-        <short>The default tree expansion depth</short>
-        <long>The depth to which the nodes of the xml document should be expanded.
-This applies at document load time.</long>
-      </locale>
-    </schema>
-    <schema>
-      <key>/schemas/apps/mlview/validation-is-on</key>
-      <applyto>/apps/mlview/validation-is-on</applyto>
-      <owner>mlview</owner>
-      <type>bool</type>
-      <default>true</default>
-      <locale name="C">
-        <short>The validation activation state</short>
-        <long>If set to true, the validation (and the elements/attributes names completion) 
-feature is activated.</long>
-      </locale>
-    </schema>
-    <schema>
-      <key>/schemas/apps/mlview/enable-completion-box</key>
-      <applyto>/apps/mlview/enable-completion-box</applyto>
-      <owner>mlview</owner>
-      <type>bool</type>
-      <default>true</default>
-      <locale name="C">
-        <short>The completion box state</short>
-        <long>If set to true, the completion box will be shown.</long>
-      </locale>
-    </schema>
-	<schema>
-		<key>/schemas/apps/mlview/sizes/main-window-width</key>
-		<applyto>/apps/mlview/sizes/main-window-width</applyto>
-		<owner>mlview</owner>
-		<type>int</type>
-		<default>800</default>
-		<locale name="C">
-			<short>MlView main window width</short>
-			<long>Width of MlView's main window</long>
-		</locale>
-	</schema>
-	<schema>
-		<key>/schemas/apps/mlview/sizes/main-window-height</key>
-		<applyto>/apps/mlview/sizes/main-window-height</applyto>
-		<owner>mlview</owner>
-		<type>int</type>
-		<default>600</default>
-		<locale name="C">
-			<short>MlView main window height</short>
-			<long>Height of MlView's main window</long>
-		</locale>
-	</schema>
-	<schema>
-		<key>/schemas/apps/mlview/sizes/tree-editor-size</key>
-		<applyto>/apps/mlview/sizes/tree-editor-size</applyto>
-		<owner>mlview</owner>
-		<type>int</type>
-		<default>300</default>
-		<locale name="C">
-			<short>Tree Editor Size</short>
-			<long>Size of the tree editor's paned position.</long>
-		</locale>
-	</schema>
-	<schema>
-		<key>/schemas/apps/mlview/sizes/completion-size</key>
-		<applyto>/apps/mlview/sizes/completion-size</applyto>
-		<owner>mlview</owner>
-		<type>int</type>
-		<default>200</default>
-		<locale name="C">
-			<short>Completion box size</short>
-			<long>Size of the tree view's completion box.</long>
-		</locale>
-	</schema>
-    <schema>
-      <key>/schemas/apps/mlview/colours/xml-element-node</key>
-      <applyto>/apps/mlview/colours/xml-element-node</applyto>
-      <owner>mlview</owner>
-      <type>string</type>
-      <default>#0080ff</default>
-      <locale name="C">
-        <short>Element node colour in mlview</short>
-        <long>Element node colour in mlview's trees.</long>
-      </locale>
-    </schema>
-    <schema>
-      <key>/schemas/apps/mlview/colours/xml-text-node</key>
-      <applyto>/apps/mlview/colours/xml-text-node</applyto>
-      <owner>mlview</owner>
-      <type>string</type>
-      <default>#ff0000</default>
-      <locale name="C">
-        <short>Text node colour in mlview</short>
-        <long>Text node colour in mlview's trees.</long>
-      </locale>
-    </schema>
-    <schema>
-      <key>/schemas/apps/mlview/colours/xml-comment-node</key>
-      <applyto>/apps/mlview/colours/xml-comment-node</applyto>
-      <owner>mlview</owner>
-      <type>string</type>
-      <default>#0000FF</default>
-      <locale name="C">
-        <short>Comment node colour in mlview</short>
-        <long>Comment node colour in mlview's trees.</long>
-      </locale>
-    </schema>
-    <schema>
-      <key>/schemas/apps/mlview/colours/xml-document-node</key>
-      <applyto>/apps/mlview/colours/xml-document-node</applyto>
-      <owner>mlview</owner>
-      <type>string</type>
-      <default>#0080ff</default>
-      <locale name="C">
-        <short>Document node colour in mlview</short>
-        <long>Document node colour in mlview's trees.</long>
-      </locale>
-    </schema>
-    <schema>
-      <key>/schemas/apps/mlview/colours/xml-dtd-node</key>
-      <applyto>/apps/mlview/colours/xml-dtd-node</applyto>
-      <owner>mlview</owner>
-      <type>string</type>
-      <default>#ff00ff</default>
-      <locale name="C">
-        <short>DTD node colour in mlview</short>
-        <long>DTD node colour in mlview's trees.</long>
-      </locale>
-    </schema>
-    <schema>
-      <key>/schemas/apps/mlview/colours/xml-attribute-node</key>
-      <applyto>/apps/mlview/colours/xml-attribute-node</applyto>
-      <owner>mlview</owner>
-      <type>string</type>
-      <default>#00ff00</default>
-      <locale name="C">
-        <short>Attribute value colour in mlview</short>
-        <long>Attribute value colour in mlview's trees.</long>
-      </locale>
-    </schema>
-    <schema>
-      <key>/schemas/apps/mlview/colours/xml-pi-node</key>
-      <applyto>/apps/mlview/colours/xml-pi-node</applyto>
-      <owner>mlview</owner>
-      <type>string</type>
-      <default>#0A7FDE</default>
-      <locale name="C">
-        <short>XML Processing instruction node colour in mlview</short>
-        <long>XML Processing instruction node colour in mlview</long>
-      </locale>
-    </schema>
-    <schema>
-      <key>/schemas/apps/mlview/colours/xml-entity-decl-node</key>
-      <applyto>/apps/mlview/colours/xml-entity-decl-node</applyto>
-      <owner>mlview</owner>
-      <type>string</type>
-      <default>#FF00FF</default>
-      <locale name="C">
-        <short>XML Entity Declaration node colour in mlview</short>
-        <long>XML Entity Declaration node colour in mlview</long>
-      </locale>
-    </schema>
-    <schema>
-      <key>/schemas/apps/mlview/default-editing-view-type</key>
-      <applyto>/apps/mlview/default-editing-view-type</applyto>
-      <owner>mlview</owner>
-      <type>string</type>
-      <default>tree-view</default>
-      <locale name="C">
-        <short>The default tree oriented editing view</short>
-        <long>This view is made of tree oriented editing widgets, a node editor and an element name completion widget. This view is well suited for tree oriented editing</long>
-      </locale>
-    </schema>
-  </schemalist>
+    <schemalist>
+	<schema>
+	    <key>/schemas/apps/mlview/default-tree-expansion-depth</key>
+	    <applyto>/apps/mlview/default-tree-expansion-depth</applyto>
+	    <owner>mlview</owner>
+	    <type>int</type>
+	    <default>4</default>
+	    <locale name="C">
+		<short>The default tree expansion depth</short>
+		<long>The depth to which the nodes of the xml document should be expanded.
+		This applies at document load time.</long>
+	    </locale>
+	</schema>
+	<schema>
+	    <key>/schemas/apps/mlview/validation-is-on</key>
+	    <applyto>/apps/mlview/validation-is-on</applyto>
+	    <owner>mlview</owner>
+	    <type>bool</type>
+	    <default>true</default>
+	    <locale name="C">
+		<short>The validation activation state</short>
+		<long>If set to true, the validation (and the elements/attributes names completion) 
+		feature is activated.</long>
+	    </locale>
+	</schema>
+	<schema>
+	    <key>/schemas/apps/mlview/enable-completion-box</key>
+	    <applyto>/apps/mlview/enable-completion-box</applyto>
+	    <owner>mlview</owner>
+	    <type>bool</type>
+	    <default>true</default>
+	    <locale name="C">
+		<short>The completion box state</short>
+		<long>If set to true, the completion box will be shown.</long>
+	    </locale>
+	</schema>
+	<schema>
+	    <key>/schemas/apps/mlview/sizes/main-window-width</key>
+	    <applyto>/apps/mlview/sizes/main-window-width</applyto>
+	    <owner>mlview</owner>
+	    <type>int</type>
+	    <default>800</default>
+	    <locale name="C">
+		<short>MlView main window width</short>
+		<long>Width of MlView's main window</long>
+	    </locale>
+	</schema>
+	<schema>
+	    <key>/schemas/apps/mlview/sizes/main-window-height</key>
+	    <applyto>/apps/mlview/sizes/main-window-height</applyto>
+	    <owner>mlview</owner>
+	    <type>int</type>
+	    <default>600</default>
+	    <locale name="C">
+		<short>MlView main window height</short>
+		<long>Height of MlView's main window</long>
+	    </locale>
+	</schema>
+	<schema>
+	    <key>/schemas/apps/mlview/sizes/tree-editor-size</key>
+	    <applyto>/apps/mlview/sizes/tree-editor-size</applyto>
+	    <owner>mlview</owner>
+	    <type>int</type>
+	    <default>300</default>
+	    <locale name="C">
+		<short>Tree Editor Size</short>
+		<long>Size of the tree editor's paned position.</long>
+	    </locale>
+	</schema>
+	<schema>
+	    <key>/schemas/apps/mlview/sizes/completion-size</key>
+	    <applyto>/apps/mlview/sizes/completion-size</applyto>
+	    <owner>mlview</owner>
+	    <type>int</type>
+	    <default>200</default>
+	    <locale name="C">
+		<short>Completion box size</short>
+		<long>Size of the tree view's completion box.</long>
+	    </locale>
+	</schema>
+	<schema>
+	    <key>/schemas/apps/mlview/colours/xml-element-node</key>
+	    <applyto>/apps/mlview/colours/xml-element-node</applyto>
+	    <owner>mlview</owner>
+	    <type>string</type>
+	    <default>#0080ff</default>
+	    <locale name="C">
+		<short>Element node colour in mlview</short>
+		<long>Element node colour in mlview's trees.</long>
+	    </locale>
+	</schema>
+	<schema>
+	    <key>/schemas/apps/mlview/colours/xml-text-node</key>
+	    <applyto>/apps/mlview/colours/xml-text-node</applyto>
+	    <owner>mlview</owner>
+	    <type>string</type>
+	    <default>#ff0000</default>
+	    <locale name="C">
+		<short>Text node colour in mlview</short>
+		<long>Text node colour in mlview's trees.</long>
+	    </locale>
+	</schema>
+	<schema>
+	    <key>/schemas/apps/mlview/colours/xml-comment-node</key>
+	    <applyto>/apps/mlview/colours/xml-comment-node</applyto>
+	    <owner>mlview</owner>
+	    <type>string</type>
+	    <default>#0000FF</default>
+	    <locale name="C">
+		<short>Comment node colour in mlview</short>
+		<long>Comment node colour in mlview's trees.</long>
+	    </locale>
+	</schema>
+	<schema>
+	    <key>/schemas/apps/mlview/colours/xml-document-node</key>
+	    <applyto>/apps/mlview/colours/xml-document-node</applyto>
+	    <owner>mlview</owner>
+	    <type>string</type>
+	    <default>#0080ff</default>
+	    <locale name="C">
+		<short>Document node colour in mlview</short>
+		<long>Document node colour in mlview's trees.</long>
+	    </locale>
+	</schema>
+	<schema>
+	    <key>/schemas/apps/mlview/colours/xml-dtd-node</key>
+	    <applyto>/apps/mlview/colours/xml-dtd-node</applyto>
+	    <owner>mlview</owner>
+	    <type>string</type>
+	    <default>#ff00ff</default>
+	    <locale name="C">
+		<short>DTD node colour in mlview</short>
+		<long>DTD node colour in mlview's trees.</long>
+	    </locale>
+	</schema>
+	<schema>
+	    <key>/schemas/apps/mlview/colours/xml-attribute-node</key>
+	    <applyto>/apps/mlview/colours/xml-attribute-node</applyto>
+	    <owner>mlview</owner>
+	    <type>string</type>
+	    <default>#00ff00</default>
+	    <locale name="C">
+		<short>Attribute value colour in mlview</short>
+		<long>Attribute value colour in mlview's trees.</long>
+	    </locale>
+	</schema>
+	<schema>
+	    <key>/schemas/apps/mlview/colours/xml-pi-node</key>
+	    <applyto>/apps/mlview/colours/xml-pi-node</applyto>
+	    <owner>mlview</owner>
+	    <type>string</type>
+	    <default>#0A7FDE</default>
+	    <locale name="C">
+		<short>XML Processing instruction node colour in mlview</short>
+		<long>XML Processing instruction node colour in mlview</long>
+	    </locale>
+	</schema>
+	<schema>
+	    <key>/schemas/apps/mlview/colours/xml-entity-decl-node</key>
+	    <applyto>/apps/mlview/colours/xml-entity-decl-node</applyto>
+	    <owner>mlview</owner>
+	    <type>string</type>
+	    <default>#FF00FF</default>
+	    <locale name="C">
+		<short>XML Entity Declaration node colour in mlview</short>
+		<long>XML Entity Declaration node colour in mlview</long>
+	    </locale>
+	</schema>
+	<schema>
+	    <key>/schemas/apps/mlview/default-editing-view-type</key>
+	    <applyto>/apps/mlview/default-editing-view-type</applyto>
+	    <owner>mlview</owner>
+	    <type>string</type>
+	    <default>tree-view</default>
+	    <locale name="C">
+		<short>The default tree oriented editing view</short>
+		<long>This view is made of tree oriented editing widgets, a node editor and an element name completion widget. This view is well suited for tree oriented editing</long>
+	    </locale>
+	</schema>
+    </schemalist>
 </gconfschemafile>
--- orig/src/main.c
+++ mod/src/main.c
@@ -36,9 +36,6 @@
 #include <stdio.h>
 #include <locale.h>
 #include <gnome.h>
-#include <libxml/parser.h>
-#include <libxml/catalog.h>
-
 
 /**
  *MlView main entry point.


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]