Skip to content

Commit

Permalink
support building with valac < 0.40 (xenial)
Browse files Browse the repository at this point in the history
  • Loading branch information
bkw777 committed Aug 13, 2021
1 parent e831a9b commit c28d891
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion debian/control
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Source: mainline
Section: utils
Priority: extra
Maintainer: Brian K. White <b.kenyon.w@gmail.com>
Build-Depends: debhelper, valac (>= 0.40), libgtk-3-dev, libgee-0.8-dev, libjson-glib-dev, libvte-2.91-dev, lsb-release
Build-Depends: debhelper, valac, libgtk-3-dev, libgee-0.8-dev, libjson-glib-dev, libvte-2.91-dev, lsb-release
Standards-Version: 4.3.0
Homepage: https://github.com/bkw777/mainline

Expand Down
2 changes: 1 addition & 1 deletion debian/control.src
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Source: BRANDING_SHORTNAME
Section: utils
Priority: extra
Maintainer: BRANDING_AUTHORNAME <BRANDING_AUTHOREMAIL>
Build-Depends: debhelper, valac (>= 0.40), libgtk-3-dev, libgee-0.8-dev, libjson-glib-dev, libvte-2.91-dev, lsb-release
Build-Depends: debhelper, valac, libgtk-3-dev, libgee-0.8-dev, libjson-glib-dev, libvte-2.91-dev, lsb-release
Standards-Version: 4.3.0
Homepage: BRANDING_WEBSITE

Expand Down
2 changes: 1 addition & 1 deletion po/messages.pot
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: mainline 1.0.14\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2021-08-12 21:13-0400\n"
"POT-Creation-Date: 2021-08-13 15:28-0400\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
Expand Down
2 changes: 1 addition & 1 deletion src/Gtk/TerminalWindow.vala
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ public class TerminalWindow : Gtk.Window {
d, //working_directory
argv, //argv
env, //env
GLib.SpawnFlags.SEARCH_PATH | GLib.SpawnFlags.DO_NOT_REAP_CHILD, //spawn_flags
GLib.SpawnFlags.SEARCH_PATH, //spawn_flags
null, //child_setup
out child_pid,
null
Expand Down
5 changes: 5 additions & 0 deletions src/Utility/TeeJee.ProcessHelper.vala
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,12 @@ namespace TeeJee.ProcessHelper{
* */

int[] child_pids = get_process_children (process_pid);

#if VALA_0_40
Posix.kill (process_pid, Posix.Signal.TERM);
#else
Posix.kill (process_pid, Posix.SIGTERM);
#endif

if (killChildren){
Pid childPid;
Expand Down

0 comments on commit c28d891

Please sign in to comment.