PATCHs - main.c

Stephane Wirtel <[email protected]> Mon, 29 Nov 2004 22:46:17 +0100
Newsgroups gmane.editors.mlview.devel
Message-ID <[email protected]>
This is a multi-part message in MIME format.
--------------020600090500010709010401
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

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

--------------020600090500010709010401
Content-Type: text/plain;
 name="patch-mlview.schemas"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="patch-mlview.schemas"

--- 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>

--------------020600090500010709010401
Content-Type: text/x-csrc;
 name="patch_main.c"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="patch_main.c"

--- 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.

--------------020600090500010709010401
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Mlview-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/mlview-list

--------------020600090500010709010401--