[latexila] Replace remaining tabs by spaces in Vala sources



commit 97d7f4ad2144b6e9f856430f5896dd90f098964b
Author: SÃbastien Wilmet <swilmet src gnome org>
Date:   Tue Sep 20 02:05:15 2011 +0200

    Replace remaining tabs by spaces in Vala sources

 src/application.vala |  178 +++++++++++++++++++++++++-------------------------
 src/document.vala    |   26 ++++----
 src/symbols.vala     |    8 +-
 3 files changed, 106 insertions(+), 106 deletions(-)
---
diff --git a/src/application.vala b/src/application.vala
index 57e0091..01b1bb7 100644
--- a/src/application.vala
+++ b/src/application.vala
@@ -27,95 +27,95 @@ public class Application : GLib.Object
 
     private const StockIcon[] stock_icons =
     {
-	    { Config.DATA_DIR + "/images/icons/compile_dvi.png", "compile_dvi" },
-	    { Config.DATA_DIR + "/images/icons/compile_pdf.png", "compile_pdf" },
-	    { Config.DATA_DIR + "/images/icons/compile_ps.png", "compile_ps" },
-	    { Config.DATA_DIR + "/images/icons/view_dvi.png", "view_dvi" },
-	    { Config.DATA_DIR + "/images/icons/view_pdf.png", "view_pdf" },
-	    { Config.DATA_DIR + "/images/icons/view_ps.png", "view_ps" },
-	    { Config.DATA_DIR + "/images/icons/textbf.png", "bold" },
-	    { Config.DATA_DIR + "/images/icons/textit.png", "italic" },
-	    { Config.DATA_DIR + "/images/icons/texttt.png", "typewriter" },
-	    { Config.DATA_DIR + "/images/icons/textsl.png", "slanted" },
-	    { Config.DATA_DIR + "/images/icons/textsc.png", "small_caps" },
-	    { Config.DATA_DIR + "/images/icons/textsf.png", "sans_serif" },
-	    { Config.DATA_DIR + "/images/icons/roman.png", "roman" },
-	    { Config.DATA_DIR + "/images/icons/underline.png", "underline" },
-	    { Config.DATA_DIR + "/images/misc-math/set-R.png", "blackboard" },
-	    { Config.DATA_DIR + "/images/icons/sectioning-part.png", "sectioning-part" },
-	    { Config.DATA_DIR + "/images/icons/sectioning-chapter.png",
-	        "sectioning-chapter" },
-	    { Config.DATA_DIR + "/images/icons/sectioning-section.png",
-	        "sectioning-section" },
-	    { Config.DATA_DIR + "/images/icons/sectioning-subsection.png",
-	        "sectioning-subsection" },
-	    { Config.DATA_DIR + "/images/icons/sectioning-subsubsection.png",
-	        "sectioning-subsubsection" },
-	    { Config.DATA_DIR + "/images/icons/sectioning-paragraph.png",
-	        "sectioning-paragraph" },
-	    { Config.DATA_DIR + "/images/icons/character-size.png", "character-size" },
-	    { Config.DATA_DIR + "/images/icons/list-itemize.png", "list-itemize" },
-	    { Config.DATA_DIR + "/images/icons/list-enumerate.png", "list-enumerate" },
-	    { Config.DATA_DIR + "/images/icons/list-description.png", "list-description" },
-	    { Config.DATA_DIR + "/images/icons/list-item.png", "list-item" },
-	    { Config.DATA_DIR + "/images/icons/references.png", "references" },
-	    { Config.DATA_DIR + "/images/icons/math.png", "math" },
-	    { Config.DATA_DIR + "/images/icons/math-centered.png", "math-centered" },
-	    { Config.DATA_DIR + "/images/icons/math-numbered.png", "math-numbered" },
-	    { Config.DATA_DIR + "/images/icons/math-array.png", "math-array" },
-	    { Config.DATA_DIR + "/images/icons/math-numbered-array.png",
-	        "math-numbered-array" },
-	    { Config.DATA_DIR + "/images/icons/math-superscript.png", "math-superscript" },
-	    { Config.DATA_DIR + "/images/icons/math-subscript.png", "math-subscript" },
-	    { Config.DATA_DIR + "/images/icons/math-frac.png", "math-frac" },
-	    { Config.DATA_DIR + "/images/icons/math-square-root.png", "math-square-root" },
-	    { Config.DATA_DIR + "/images/icons/math-nth-root.png", "math-nth-root" },
-	    { Config.DATA_DIR + "/images/icons/mathcal.png", "mathcal" },
-	    { Config.DATA_DIR + "/images/icons/mathfrak.png", "mathfrak" },
-	    { Config.DATA_DIR + "/images/icons/delimiters-left.png", "delimiters-left" },
-	    { Config.DATA_DIR + "/images/icons/delimiters-right.png", "delimiters-right" },
-	    { Config.DATA_DIR + "/images/icons/badbox.png", "badbox" },
-	    { Config.DATA_DIR + "/images/icons/logviewer.png", "view_log" },
-	    { Config.DATA_DIR + "/images/greek/01.png", "symbol_alpha" },
-	    { Config.DATA_DIR + "/images/icons/accent0.png", "accent0" },
-	    { Config.DATA_DIR + "/images/icons/accent1.png", "accent1" },
-	    { Config.DATA_DIR + "/images/icons/accent2.png", "accent2" },
-	    { Config.DATA_DIR + "/images/icons/accent3.png", "accent3" },
-	    { Config.DATA_DIR + "/images/icons/accent4.png", "accent4" },
-	    { Config.DATA_DIR + "/images/icons/accent5.png", "accent5" },
-	    { Config.DATA_DIR + "/images/icons/accent6.png", "accent6" },
-	    { Config.DATA_DIR + "/images/icons/accent7.png", "accent7" },
-	    { Config.DATA_DIR + "/images/icons/accent8.png", "accent8" },
-	    { Config.DATA_DIR + "/images/icons/accent9.png", "accent9" },
-	    { Config.DATA_DIR + "/images/icons/accent10.png", "accent10" },
-	    { Config.DATA_DIR + "/images/icons/accent11.png", "accent11" },
-	    { Config.DATA_DIR + "/images/icons/accent12.png", "accent12" },
-	    { Config.DATA_DIR + "/images/icons/accent13.png", "accent13" },
-	    { Config.DATA_DIR + "/images/icons/accent14.png", "accent14" },
-	    { Config.DATA_DIR + "/images/icons/accent15.png", "accent15" },
-	    { Config.DATA_DIR + "/images/icons/mathaccent0.png", "mathaccent0" },
-	    { Config.DATA_DIR + "/images/icons/mathaccent1.png", "mathaccent1" },
-	    { Config.DATA_DIR + "/images/icons/mathaccent2.png", "mathaccent2" },
-	    { Config.DATA_DIR + "/images/icons/mathaccent3.png", "mathaccent3" },
-	    { Config.DATA_DIR + "/images/icons/mathaccent4.png", "mathaccent4" },
-	    { Config.DATA_DIR + "/images/icons/mathaccent5.png", "mathaccent5" },
-	    { Config.DATA_DIR + "/images/icons/mathaccent6.png", "mathaccent6" },
-	    { Config.DATA_DIR + "/images/icons/mathaccent7.png", "mathaccent7" },
-	    { Config.DATA_DIR + "/images/icons/mathaccent8.png", "mathaccent8" },
-	    { Config.DATA_DIR + "/images/icons/mathaccent9.png", "mathaccent9" },
-	    { Config.DATA_DIR + "/images/icons/mathaccent10.png", "mathaccent10" },
-	    { Config.DATA_DIR + "/images/icons/completion_choice.png", "completion_choice" },
-	    { Config.DATA_DIR + "/images/icons/completion_cmd.png", "completion_cmd" },
-	    { Config.DATA_DIR + "/images/icons/tree_part.png", "tree_part" },
-	    { Config.DATA_DIR + "/images/icons/tree_chapter.png", "tree_chapter" },
-	    { Config.DATA_DIR + "/images/icons/tree_section.png", "tree_section" },
-	    { Config.DATA_DIR + "/images/icons/tree_subsection.png", "tree_subsection" },
-	    { Config.DATA_DIR + "/images/icons/tree_subsubsection.png",
-	        "tree_subsubsection" },
-	    { Config.DATA_DIR + "/images/icons/tree_paragraph.png", "tree_paragraph" },
-	    { Config.DATA_DIR + "/images/icons/tree_todo.png", "tree_todo" },
-	    { Config.DATA_DIR + "/images/icons/tree_label.png", "tree_label" },
-	    { Config.DATA_DIR + "/images/icons/table.png", "table" }
+        { Config.DATA_DIR + "/images/icons/compile_dvi.png", "compile_dvi" },
+        { Config.DATA_DIR + "/images/icons/compile_pdf.png", "compile_pdf" },
+        { Config.DATA_DIR + "/images/icons/compile_ps.png", "compile_ps" },
+        { Config.DATA_DIR + "/images/icons/view_dvi.png", "view_dvi" },
+        { Config.DATA_DIR + "/images/icons/view_pdf.png", "view_pdf" },
+        { Config.DATA_DIR + "/images/icons/view_ps.png", "view_ps" },
+        { Config.DATA_DIR + "/images/icons/textbf.png", "bold" },
+        { Config.DATA_DIR + "/images/icons/textit.png", "italic" },
+        { Config.DATA_DIR + "/images/icons/texttt.png", "typewriter" },
+        { Config.DATA_DIR + "/images/icons/textsl.png", "slanted" },
+        { Config.DATA_DIR + "/images/icons/textsc.png", "small_caps" },
+        { Config.DATA_DIR + "/images/icons/textsf.png", "sans_serif" },
+        { Config.DATA_DIR + "/images/icons/roman.png", "roman" },
+        { Config.DATA_DIR + "/images/icons/underline.png", "underline" },
+        { Config.DATA_DIR + "/images/misc-math/set-R.png", "blackboard" },
+        { Config.DATA_DIR + "/images/icons/sectioning-part.png", "sectioning-part" },
+        { Config.DATA_DIR + "/images/icons/sectioning-chapter.png",
+            "sectioning-chapter" },
+        { Config.DATA_DIR + "/images/icons/sectioning-section.png",
+            "sectioning-section" },
+        { Config.DATA_DIR + "/images/icons/sectioning-subsection.png",
+            "sectioning-subsection" },
+        { Config.DATA_DIR + "/images/icons/sectioning-subsubsection.png",
+            "sectioning-subsubsection" },
+        { Config.DATA_DIR + "/images/icons/sectioning-paragraph.png",
+            "sectioning-paragraph" },
+        { Config.DATA_DIR + "/images/icons/character-size.png", "character-size" },
+        { Config.DATA_DIR + "/images/icons/list-itemize.png", "list-itemize" },
+        { Config.DATA_DIR + "/images/icons/list-enumerate.png", "list-enumerate" },
+        { Config.DATA_DIR + "/images/icons/list-description.png", "list-description" },
+        { Config.DATA_DIR + "/images/icons/list-item.png", "list-item" },
+        { Config.DATA_DIR + "/images/icons/references.png", "references" },
+        { Config.DATA_DIR + "/images/icons/math.png", "math" },
+        { Config.DATA_DIR + "/images/icons/math-centered.png", "math-centered" },
+        { Config.DATA_DIR + "/images/icons/math-numbered.png", "math-numbered" },
+        { Config.DATA_DIR + "/images/icons/math-array.png", "math-array" },
+        { Config.DATA_DIR + "/images/icons/math-numbered-array.png",
+            "math-numbered-array" },
+        { Config.DATA_DIR + "/images/icons/math-superscript.png", "math-superscript" },
+        { Config.DATA_DIR + "/images/icons/math-subscript.png", "math-subscript" },
+        { Config.DATA_DIR + "/images/icons/math-frac.png", "math-frac" },
+        { Config.DATA_DIR + "/images/icons/math-square-root.png", "math-square-root" },
+        { Config.DATA_DIR + "/images/icons/math-nth-root.png", "math-nth-root" },
+        { Config.DATA_DIR + "/images/icons/mathcal.png", "mathcal" },
+        { Config.DATA_DIR + "/images/icons/mathfrak.png", "mathfrak" },
+        { Config.DATA_DIR + "/images/icons/delimiters-left.png", "delimiters-left" },
+        { Config.DATA_DIR + "/images/icons/delimiters-right.png", "delimiters-right" },
+        { Config.DATA_DIR + "/images/icons/badbox.png", "badbox" },
+        { Config.DATA_DIR + "/images/icons/logviewer.png", "view_log" },
+        { Config.DATA_DIR + "/images/greek/01.png", "symbol_alpha" },
+        { Config.DATA_DIR + "/images/icons/accent0.png", "accent0" },
+        { Config.DATA_DIR + "/images/icons/accent1.png", "accent1" },
+        { Config.DATA_DIR + "/images/icons/accent2.png", "accent2" },
+        { Config.DATA_DIR + "/images/icons/accent3.png", "accent3" },
+        { Config.DATA_DIR + "/images/icons/accent4.png", "accent4" },
+        { Config.DATA_DIR + "/images/icons/accent5.png", "accent5" },
+        { Config.DATA_DIR + "/images/icons/accent6.png", "accent6" },
+        { Config.DATA_DIR + "/images/icons/accent7.png", "accent7" },
+        { Config.DATA_DIR + "/images/icons/accent8.png", "accent8" },
+        { Config.DATA_DIR + "/images/icons/accent9.png", "accent9" },
+        { Config.DATA_DIR + "/images/icons/accent10.png", "accent10" },
+        { Config.DATA_DIR + "/images/icons/accent11.png", "accent11" },
+        { Config.DATA_DIR + "/images/icons/accent12.png", "accent12" },
+        { Config.DATA_DIR + "/images/icons/accent13.png", "accent13" },
+        { Config.DATA_DIR + "/images/icons/accent14.png", "accent14" },
+        { Config.DATA_DIR + "/images/icons/accent15.png", "accent15" },
+        { Config.DATA_DIR + "/images/icons/mathaccent0.png", "mathaccent0" },
+        { Config.DATA_DIR + "/images/icons/mathaccent1.png", "mathaccent1" },
+        { Config.DATA_DIR + "/images/icons/mathaccent2.png", "mathaccent2" },
+        { Config.DATA_DIR + "/images/icons/mathaccent3.png", "mathaccent3" },
+        { Config.DATA_DIR + "/images/icons/mathaccent4.png", "mathaccent4" },
+        { Config.DATA_DIR + "/images/icons/mathaccent5.png", "mathaccent5" },
+        { Config.DATA_DIR + "/images/icons/mathaccent6.png", "mathaccent6" },
+        { Config.DATA_DIR + "/images/icons/mathaccent7.png", "mathaccent7" },
+        { Config.DATA_DIR + "/images/icons/mathaccent8.png", "mathaccent8" },
+        { Config.DATA_DIR + "/images/icons/mathaccent9.png", "mathaccent9" },
+        { Config.DATA_DIR + "/images/icons/mathaccent10.png", "mathaccent10" },
+        { Config.DATA_DIR + "/images/icons/completion_choice.png", "completion_choice" },
+        { Config.DATA_DIR + "/images/icons/completion_cmd.png", "completion_cmd" },
+        { Config.DATA_DIR + "/images/icons/tree_part.png", "tree_part" },
+        { Config.DATA_DIR + "/images/icons/tree_chapter.png", "tree_chapter" },
+        { Config.DATA_DIR + "/images/icons/tree_section.png", "tree_section" },
+        { Config.DATA_DIR + "/images/icons/tree_subsection.png", "tree_subsection" },
+        { Config.DATA_DIR + "/images/icons/tree_subsubsection.png",
+            "tree_subsubsection" },
+        { Config.DATA_DIR + "/images/icons/tree_paragraph.png", "tree_paragraph" },
+        { Config.DATA_DIR + "/images/icons/tree_todo.png", "tree_todo" },
+        { Config.DATA_DIR + "/images/icons/tree_label.png", "tree_label" },
+        { Config.DATA_DIR + "/images/icons/table.png", "table" }
     };
 
     public static int NEW_WINDOW = 1;
diff --git a/src/document.vala b/src/document.vala
index fb10067..2d6f044 100644
--- a/src/document.vala
+++ b/src/document.vala
@@ -358,19 +358,19 @@ public class Document : Gtk.SourceBuffer
         if (location == null)
             return false;
 
-		string current_etag = null;
-		try
-		{
-			FileInfo file_info = location.query_info (FILE_ATTRIBUTE_ETAG_VALUE,
-			    FileQueryInfoFlags.NONE, null);
-			current_etag = file_info.get_etag ();
-		}
-		catch (GLib.Error e)
-		{
-			return false;
-		}
-
-		return current_etag != null && current_etag != _etag;
+        string current_etag = null;
+        try
+        {
+            FileInfo file_info = location.query_info (FILE_ATTRIBUTE_ETAG_VALUE,
+                FileQueryInfoFlags.NONE, null);
+            current_etag = file_info.get_etag ();
+        }
+        catch (GLib.Error e)
+        {
+            return false;
+        }
+
+        return current_etag != null && current_etag != _etag;
     }
 
     public void set_style_scheme_from_string (string scheme_id)
diff --git a/src/symbols.vala b/src/symbols.vala
index b691a56..6e11bf9 100644
--- a/src/symbols.vala
+++ b/src/symbols.vala
@@ -928,11 +928,11 @@ public class Symbols : VBox
             Gdk.Pixbuf pixbuf = new Gdk.Pixbuf.from_file (symbol.filename);
 
             // some characters ('<' for example) generate errors for the tooltip,
-	        // so we must escape it
-	        string tooltip = Markup.escape_text (symbol.latex_command);
+            // so we must escape it
+            string tooltip = Markup.escape_text (symbol.latex_command);
 
-	        if (symbol.package_required != null)
-	            tooltip += " (package %s)".printf (symbol.package_required);
+            if (symbol.package_required != null)
+                tooltip += " (package %s)".printf (symbol.package_required);
 
             TreeIter iter;
             if (index == -1)



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