Browse Source

Fixed comments on the Gtk::TextView::on_key_press_event issue

merge-requests/365/head
eidheim 10 years ago
parent
commit
d76bb115cb
  1. 4
      src/source.cc

4
src/source.cc

@ -1283,7 +1283,9 @@ bool Source::View::on_key_press_event_basic(GdkEventKey* key) {
return true; return true;
} }
//Workaround for TextView::on_key_press_event bug sometimes causing segmentation faults TODO: figure out the bug and create pull request to gtk //Workaround for TextView::on_key_press_event bug sometimes causing segmentation faults
//TODO: figure out the bug and create pull request to gtk
//Have only experienced this on OS X
//Note: valgrind reports issues on TextView::on_key_press_event as well //Note: valgrind reports issues on TextView::on_key_press_event as well
auto unicode=gdk_keyval_to_unicode(key->keyval); auto unicode=gdk_keyval_to_unicode(key->keyval);
if(unicode>=32 && unicode!=127) { if(unicode>=32 && unicode!=127) {

Loading…
Cancel
Save