How to build tfe (text file editor)

How to compile and execute the text editor ‘tfe’.

First, source files are in the Gtk4-tutorila repository. How to download them is written at the end of the previous section.

The following is the instruction of compilation and execution.

Then the window appears. There are four buttons, New, Open, Save and Close.

This is a very simple editor. It is a good practice for you to add more features.

Total number of lines, words and characters

$ LANG=C wc tfe5/meson.build tfe5/tfeapplication.c tfe5/tfe.gresource.xml tfe5/tfenotebook.c tfe5/tfenotebook.h tfetextview/tfetextview.c tfetextview/tfetextview.h tfe5/tfe.ui
   10    17   294 tfe5/meson.build
  101   308  3274 tfe5/tfeapplication.c
    6     9   153 tfe5/tfe.gresource.xml
  145   387  3667 tfe5/tfenotebook.c
   15    21   241 tfe5/tfenotebook.h
  239   863  9264 tfetextview/tfetextview.c
   35    60   701 tfetextview/tfetextview.h
   61   100  2073 tfe5/tfe.ui
  612  1765 19667 total