Browse Source

Added Gsv::init(), and changed behaviour of home and end keys slightly.

merge-requests/365/head
eidheim 11 years ago
parent
commit
bd3f3739a4
  1. 1
      juci/juci.cc
  2. 2
      juci/source.cc

1
juci/juci.cc

@ -13,6 +13,7 @@ int main(int argc, char *argv[]) {
argc, argc,
argv, argv,
"no.sout.juci"); "no.sout.juci");
Gsv::init();
init_logging(); init_logging();
Window window; Window window;
return app->run(window); return app->run(window);

2
juci/source.cc

@ -31,7 +31,7 @@ Source::View::View() {
override_font(Pango::FontDescription("Monospace")); override_font(Pango::FontDescription("Monospace"));
set_show_line_numbers(true); set_show_line_numbers(true);
set_highlight_current_line(true); set_highlight_current_line(true);
set_smart_home_end(Gsv::SMART_HOME_END_ALWAYS); set_smart_home_end(Gsv::SMART_HOME_END_BEFORE);
} }
string Source::View::GetLine(const Gtk::TextIter &begin) { string Source::View::GetLine(const Gtk::TextIter &begin) {

Loading…
Cancel
Save