Code: Select all
// valac test.vala --pkg gtk+-3.0 --target-glib=2.38
class program : Gtk.Window
var window = new Gtk.Window();
window.window_position = WindowPosition.CENTER;
public static int main (string args)
simargl wrote:Text viewer/editor with tabs - experiment.
Problem with this: filename variable is read from the current tab label, that means tab label must contain whole file path, and if it's too long it looks ugly. Except of that it works. Depends on Gtk3, uses Gtk.TextView so there is no support for syntax highlight. There must be better way to get filename from the currently active tab.
Users browsing this forum: No registered users and 2 guests