mh21 / simple-term Goto Github PK
View Code? Open in Web Editor NEWSimple vte-based terminal
License: GNU General Public License v3.0
Simple vte-based terminal
License: GNU General Public License v3.0
Failed to load packit config file:
Cannot parse package config: ValidationError({'jobs': {0: {'packages': defaultdict(<class 'dict'>, {'simple-term': {'value': {'.job_template': ['Unknown field.']}}})}, 1: {'packages': defaultdict(<class 'dict'>, {'simple-term': {'value': {'.job_template': ['Unknown field.']}}})}, 2: {'packages': defaultdict(<class 'dict'>, {'simple-term': {'value': {'.job_template': ['Unknown field.']}}})}}, 'packages': defaultdict(<class 'dict'>, {'simple-term': {'value': {'.job_template': ['Unknown field.']}}})}).
For more info, please check out the documentation or contact the Packit team.
VALAC simple_term_vala.stamp
simple-term.vala:235.33-235.67: error: Argument 1: Cannot convert from `char[]' to `unowned uint8[]?'
terminal.feed_child(selection_data.get_text().to_utf8());
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
simple-term.vala:237.33-237.81: error: Argument 1: Cannot convert from `char[]' to `unowned uint8[]?'
terminal.feed_child(convert_uris(selection_data.get_uris()).to_utf8());
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
simple-term.vala:88.13-88.31: warning: `Vte.Terminal.spawn_sync' has been deprecated since 0.48
Compilation failed: 2 error(s), 1 warning(s)
make: *** [Makefile:449: simple_term_vala.stamp] Error 1
vte291-0.66.1
vte291-devel-0.66.1
libvala-0.54.3
vala-0.54.3
gtk3-devel-3.24.30
gtk3-3.24.30
I'm on Fedora 35.
No idea if this is a proper fix or not.
diff --git a/simple-term.vala b/simple-term.vala
index 5f89073..4a15a16 100644
--- a/simple-term.vala
+++ b/simple-term.vala
@@ -232,9 +232,9 @@ class TerminalWindow : Gtk.Window
// this is the only way to get a usable target list
Gdk.Atom[] targets = { selection_data.get_target() };
if (Gtk.targets_include_text(targets)) {
- terminal.feed_child(selection_data.get_text().to_utf8());
+ terminal.feed_child((uint8[])selection_data.get_text().to_utf8());
} else if (Gtk.targets_include_uri(targets)) {
- terminal.feed_child(convert_uris(selection_data.get_uris()).to_utf8());
+ terminal.feed_child((uint8[])convert_uris(selection_data.get_uris()).to_utf8());
}
Gtk.drag_finish(context, true, false, time);
}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.