[latexila] Gtef -> Tepl: the Gtef library has been renamed to Tepl



commit 52328914d4078a78c0056a4b8b7c082d45990e93
Author: Sébastien Wilmet <swilmet gnome org>
Date:   Mon Jun 12 04:56:42 2017 +0200

    Gtef -> Tepl: the Gtef library has been renamed to Tepl

 README                 |    2 +-
 configure.ac           |    6 +++---
 src/Makefile.am        |    2 +-
 src/completion.vala    |    2 +-
 src/document.vala      |   10 +++++-----
 src/document_tab.vala  |    6 +++---
 src/document_view.vala |    2 +-
 src/latex_menu.vala    |    4 ++--
 src/main_window.vala   |    2 +-
 src/search.vala        |    2 +-
 10 files changed, 19 insertions(+), 19 deletions(-)
---
diff --git a/README b/README
index 0a7cdbe..5a947f0 100644
--- a/README
+++ b/README
@@ -18,7 +18,7 @@ Dependencies
 * GLib >= 2.50
 * GTK+ >= 3.20
 * GtkSourceView >= 3.24
-* Gtef >= 2.0 - https://wiki.gnome.org/Projects/Gtef
+* Tepl >= 2.99.0 - https://wiki.gnome.org/Projects/Tepl
 * gspell >= 1.0
 * gee-0.8 >= 0.10
 * gettext
diff --git a/configure.ac b/configure.ac
index e1c6b0e..c9b3429 100644
--- a/configure.ac
+++ b/configure.ac
@@ -32,7 +32,7 @@ LT_INIT
 GLIB_REQUIRED_VERSION="2.50"
 GTK_REQUIRED_VERSION="3.20"
 GTKSOURCEVIEW_REQUIRED_VERSION="3.24"
-GTEF_REQUIRED_VERSION="2.0"
+TEPL_REQUIRED_VERSION="2.99.0"
 GSPELL_REQUIRED_VERSION="1.0"
 VALA_REQUIRED_VERSION="0.34"
 GEE_REQUIRED_VERSION="0.10"
@@ -40,7 +40,7 @@ GEE_REQUIRED_VERSION="0.10"
 AC_SUBST([GLIB_REQUIRED_VERSION])
 AC_SUBST([GTK_REQUIRED_VERSION])
 AC_SUBST([GTKSOURCEVIEW_REQUIRED_VERSION])
-AC_SUBST([GTEF_REQUIRED_VERSION])
+AC_SUBST([TEPL_REQUIRED_VERSION])
 AC_SUBST([GSPELL_REQUIRED_VERSION])
 AC_SUBST([VALA_REQUIRED_VERSION])
 AC_SUBST([GEE_REQUIRED_VERSION])
@@ -95,7 +95,7 @@ PKG_CHECK_MODULES([LATEXILA], [
        gio-2.0 >= ${GLIB_REQUIRED_VERSION}
        gtk+-3.0 >= ${GTK_REQUIRED_VERSION}
        gtksourceview-3.0 >= ${GTKSOURCEVIEW_REQUIRED_VERSION}
-       gtef-2 >= ${GTEF_REQUIRED_VERSION}
+       tepl-3 >= ${TEPL_REQUIRED_VERSION}
        gspell-1 >= ${GSPELL_REQUIRED_VERSION}
        gee-0.8 >= ${GEE_REQUIRED_VERSION}
        gsettings-desktop-schemas
diff --git a/src/Makefile.am b/src/Makefile.am
index 5eee1e8..b3d1fb2 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -8,7 +8,7 @@ AM_VALAFLAGS =                  \
        --pkg gtk+-3.0          \
        --disable-since-check   \
        --pkg gtksourceview-3.0 \
-       --pkg gtef-2            \
+       --pkg tepl-3            \
        --pkg gspell-1          \
        --pkg gee-0.8           \
        --pkg posix             \
diff --git a/src/completion.vala b/src/completion.vala
index 8ac1e2b..bf555ab 100644
--- a/src/completion.vala
+++ b/src/completion.vala
@@ -495,7 +495,7 @@ public class CompletionProvider : GLib.Object, SourceCompletionProvider
     {
         Document doc = iter.get_buffer () as Document;
 
-        string cur_indent = Gtef.iter_get_line_indentation (iter);
+        string cur_indent = Tepl.iter_get_line_indentation (iter);
         string indent = doc.tab.view.get_indentation_style ();
 
         CompletionChoice? env = _environments[env_name];
diff --git a/src/document.vala b/src/document.vala
index 5088cd1..5f5e0d1 100644
--- a/src/document.vala
+++ b/src/document.vala
@@ -19,7 +19,7 @@
 
 using Gtk;
 
-public class Document : Gtef.Buffer
+public class Document : Tepl.Buffer
 {
     public File location { get; set; }
     public bool readonly { get; set; default = false; }
@@ -52,7 +52,7 @@ public class Document : Gtef.Buffer
 
         GLib.Settings editor_settings =
             new GLib.Settings ("org.gnome.latexila.preferences.editor");
-        editor_settings.bind ("scheme", this, "gtef-style-scheme-id",
+        editor_settings.bind ("scheme", this, "tepl-style-scheme-id",
             SettingsBindFlags.GET);
     }
 
@@ -204,7 +204,7 @@ public class Document : Gtef.Buffer
                     .printf (location.get_parse_name ());
                 string secondary_msg =
                     _("If you save it, all the external changes could be lost. Save it anyway?");
-                Gtef.InfoBar infobar = tab.add_message (primary_msg, secondary_msg,
+                Tepl.InfoBar infobar = tab.add_message (primary_msg, secondary_msg,
                     MessageType.WARNING);
                 infobar.add_button (_("_Save Anyway"), ResponseType.YES);
                 infobar.add_button (_("_Don't Save"), ResponseType.CANCEL);
@@ -222,7 +222,7 @@ public class Document : Gtef.Buffer
                 if (tab != null)
                 {
                     string primary_msg = _("Impossible to save the file.");
-                    Gtef.InfoBar infobar = tab.add_message (primary_msg, e.message,
+                    Tepl.InfoBar infobar = tab.add_message (primary_msg, e.message,
                         MessageType.ERROR);
                     infobar.add_close_button ();
                 }
@@ -515,7 +515,7 @@ public class Document : Gtef.Buffer
         if (tab == null)
             return true;
 
-        Gtef.InfoBar infobar = tab.add_message (
+        Tepl.InfoBar infobar = tab.add_message (
             _("The file has a temporary location. The data can be lost after rebooting your computer."),
             _("Do you want to save the file in a safer place?"),
             MessageType.WARNING);
diff --git a/src/document_tab.vala b/src/document_tab.vala
index 180cd3f..9dff748 100644
--- a/src/document_tab.vala
+++ b/src/document_tab.vala
@@ -202,10 +202,10 @@ public class DocumentTab : Grid
         });
     }
 
-    public Gtef.InfoBar add_message (string primary_msg, string secondary_msg,
+    public Tepl.InfoBar add_message (string primary_msg, string secondary_msg,
         MessageType msg_type)
     {
-        Gtef.InfoBar infobar = new Gtef.InfoBar.simple (msg_type, primary_msg,
+        Tepl.InfoBar infobar = new Tepl.InfoBar.simple (msg_type, primary_msg,
             secondary_msg);
         attach_next_to (infobar, get_child_at (0, 0), PositionType.TOP, 1, 1);
         infobar.show ();
@@ -288,7 +288,7 @@ public class DocumentTab : Grid
             else
                 secondary_msg = _("Do you want to reload the file?");
 
-            Gtef.InfoBar infobar = add_message (primary_msg, secondary_msg,
+            Tepl.InfoBar infobar = add_message (primary_msg, secondary_msg,
                 MessageType.WARNING);
             infobar.add_button (_("_Reload"), ResponseType.OK);
             infobar.add_button (_("_Cancel"), ResponseType.CANCEL);
diff --git a/src/document_view.vala b/src/document_view.vala
index 7ffb414..f3e235e 100644
--- a/src/document_view.vala
+++ b/src/document_view.vala
@@ -19,7 +19,7 @@
 
 using Gtk;
 
-public class DocumentView : Gtef.View
+public class DocumentView : Tepl.View
 {
     private const string METADATA_ATTRIBUTE_SPELL_LANGUAGE =
         "metadata::latexila-spell-language";
diff --git a/src/latex_menu.vala b/src/latex_menu.vala
index 2a0b7b2..6f9108a 100644
--- a/src/latex_menu.vala
+++ b/src/latex_menu.vala
@@ -490,7 +490,7 @@ public class LatexMenu : Gtk.ActionGroup
 
         if (text_before.contains ("\n") || text_after.contains ("\n"))
         {
-            string current_indent = Gtef.iter_get_line_indentation (start);
+            string current_indent = Tepl.iter_get_line_indentation (start);
 
             if (current_indent != "")
             {
@@ -549,7 +549,7 @@ public class LatexMenu : Gtk.ActionGroup
         return_if_fail (main_window.active_tab != null);
 
         if (main_window.active_document.get_selection_type ()
-            == Gtef.SelectionType.MULTIPLE_LINES)
+            == Tepl.SelectionType.MULTIPLE_LINES)
             text_buffer_insert (@"\\begin{$style}\n", @"\n\\end{$style}");
         else
             text_buffer_insert (@"{\\$style ", "}", @"\\$style ");
diff --git a/src/main_window.vala b/src/main_window.vala
index a675020..9ca28ba 100644
--- a/src/main_window.vala
+++ b/src/main_window.vala
@@ -728,7 +728,7 @@ public class MainWindow : ApplicationWindow
 
         tab.document.modified_changed.connect (() => sync_name (tab));
         tab.document.notify["readonly"].connect (() => sync_name (tab));
-        tab.document.gtef_cursor_moved.connect (update_cursor_position_statusbar);
+        tab.document.tepl_cursor_moved.connect (update_cursor_position_statusbar);
 
         tab.show ();
 
diff --git a/src/search.vala b/src/search.vala
index 5938368..bd50801 100644
--- a/src/search.vala
+++ b/src/search.vala
@@ -376,7 +376,7 @@ public class SearchAndReplace : GLib.Object
         // if text is selected in the active document, and if this text contains no \n,
         // search this text
         Document doc = _main_window.active_document;
-        if (doc.get_selection_type () == Gtef.SelectionType.ON_SAME_LINE)
+        if (doc.get_selection_type () == Tepl.SelectionType.ON_SAME_LINE)
         {
             TextIter start, end;
             doc.get_selection_bounds (out start, out end);


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