nvteighen
August 8th, 2008, 12:38 PM
Hi there!
Some time ago, I asked for some help regarding a text editor in this thread (http://ubuntuforums.org/showthread.php?t=877245). Well, I attach you the finished (?) program. Don't expect something good, it just opens and saves files without breaking them (but it's GPL, so modify it if you want).
The structure is simple: the main.c module takes care of the GUI and file.c does the low-level part (which is trivial). Most interesting part was the kind of "wrapper" (the callback functions) I was required to write in order to connect both parts.
To compile, use the 'make' command. Also, you need to have libgtk2.0-dev installed (GTK+ development files).
So, I wanted to share it and hear your comments, if any.
EDIT: I forgot, the whole thing is written in C.
Some time ago, I asked for some help regarding a text editor in this thread (http://ubuntuforums.org/showthread.php?t=877245). Well, I attach you the finished (?) program. Don't expect something good, it just opens and saves files without breaking them (but it's GPL, so modify it if you want).
The structure is simple: the main.c module takes care of the GUI and file.c does the low-level part (which is trivial). Most interesting part was the kind of "wrapper" (the callback functions) I was required to write in order to connect both parts.
To compile, use the 'make' command. Also, you need to have libgtk2.0-dev installed (GTK+ development files).
So, I wanted to share it and hear your comments, if any.
EDIT: I forgot, the whole thing is written in C.