Browse Source

Use Gtk.SourceView over Gtk.TextView to aid writing longer posts.

Right now this mostly just includes (most importantly) undo/redo,
and less importantly smarter deletion and keyboard navigation.
tags/v1.0.0
Adrian Cochrane 5 years ago
parent
commit
2b996d5a47
3 changed files with 3 additions and 2 deletions
  1. +1
    -0
      debian/control
  2. +1
    -1
      src/meson.build
  3. +1
    -1
      src/window.vala

+ 1
- 0
debian/control View File

@@ -5,6 +5,7 @@ Maintainer: Write.as <hello@write.as>
Build-Depends: meson,
debhelper (>= 9),
libgtk-3-dev,
libgtksourceview-3.0-dev,
valac (>= 0.36)
Standards-Version: 3.9.3



+ 1
- 1
src/meson.build View File

@@ -4,6 +4,6 @@ executable('writeas-gtk',

c_args: ['-include', 'config.h'],
link_args: '-lm',
dependencies: [dependency('gtk+-3.0')],
dependencies: [dependency('gtk+-3.0'), dependency('gtksourceview-3.0')],
install: true
)

+ 1
- 1
src/window.vala View File

@@ -39,7 +39,7 @@ public class WriteAs.MainWindow : Gtk.ApplicationWindow {
build_keyboard_shortcuts();

var scrolled = new Gtk.ScrolledWindow(null, null);
canvas = new Gtk.TextView();
canvas = new Gtk.SourceView();
canvas.wrap_mode = Gtk.WrapMode.WORD_CHAR;
scrolled.add(canvas);
add(scrolled);


Loading…
Cancel
Save