[gedit] main: call tepl_init() and tepl_finalize()



commit 169c1594e140790b6b8bc8f2a5a11d127caf94cb
Author: Sébastien Wilmet <swilmet gnome org>
Date:   Tue Nov 12 16:50:00 2019 +0100

    main: call tepl_init() and tepl_finalize()
    
    Now that Tepl is used.

 gedit/gedit.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
---
diff --git a/gedit/gedit.c b/gedit/gedit.c
index e6add9803..6850422e0 100644
--- a/gedit/gedit.c
+++ b/gedit/gedit.c
@@ -30,9 +30,9 @@
 #  include "gedit-app-x11.h"
 #endif
 
-#include <glib.h>
 #include <locale.h>
 #include <libintl.h>
+#include <tepl/tepl.h>
 
 #include "gedit-dirs.h"
 #include "gedit-debug.h"
@@ -138,6 +138,7 @@ main (int argc, char *argv[])
        gedit_dirs_init ();
 
        setup_i18n ();
+       tepl_init ();
 
        /* https://honk.sigxcpu.org/con/GTK__and_the_application_id.html */
        g_set_prgname ("org.gnome.gedit");
@@ -163,6 +164,8 @@ main (int argc, char *argv[])
                                     G_OBJECT (app)->ref_count);
        }
 
+       tepl_finalize ();
+
 #ifdef G_OS_WIN32
        gedit_w32_unload_private_dll ();
 #endif


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