Skip to content

Commit b376acc

Browse files
authored
Merge branch 'master' into debian_nocheck
2 parents 82ebabb + b4b0934 commit b376acc

File tree

1,380 files changed

+570544
-327220
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,380 files changed

+570544
-327220
lines changed

.github/workflows/ci.yml

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ jobs:
9595
runs-on: ubuntu-24.04
9696
strategy:
9797
matrix:
98-
image: ["debian:bullseye", "debian:bookworm", "debian:sid"]
98+
image: ["debian:bookworm", "debian:sid"]
9999
container:
100100
image: ${{ matrix.image }}
101101
# IPC_OWNER is needed for shmget IPC_CREAT
@@ -176,7 +176,7 @@ jobs:
176176
runs-on: ubuntu-24.04
177177
strategy:
178178
matrix:
179-
image: ["debian:bullseye", "debian:bookworm", "debian:sid"]
179+
image: ["debian:bookworm", "debian:sid"]
180180
container:
181181
image: ${{ matrix.image }}
182182
# IPC_OWNER is needed for shmget IPC_CREAT
@@ -247,3 +247,22 @@ jobs:
247247
set -e
248248
set -x
249249
eatmydata apt-get --yes --quiet install ../*.deb
250+
251+
cppcheck:
252+
runs-on: ubuntu-24.04
253+
steps:
254+
- uses: actions/checkout@v2
255+
with:
256+
submodules: true
257+
fetch-depth: 0
258+
- name: Perform Source Code checks that were successful in the past
259+
continue-on-error: true
260+
run: |
261+
set -x
262+
git fetch --recurse-submodules=no https://github.com/linuxcnc/linuxcnc refs/tags/*:refs/tags/*
263+
sudo apt-get -y install cppcheck shellcheck
264+
scripts/cppcheck.sh
265+
- name: Shellcheck
266+
continue-on-error: true
267+
run: |
268+
scripts/shellcheck.sh

.gitignore

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,15 @@ src/modules.order
2626
/configs/*/emc.nml
2727
!/configs/common/emc.nml
2828
/docs/src/source-highlight/local
29+
docs/src/*/gui/gmoccapy_release_notes.txt
2930
lib/python/gremlin.py
3031
lib/python/qt5_graphics.py
3132
lib/python/touchy
3233
configs/sim/gmoccapy/*.pref
3334
configs/sim/gmoccapy/gmoccapy_plasma/*.pref
3435
configs/sim/gmoccapy/gmoccapy-JA/*.pref
36+
configs/**/*.tbl.bak
37+
configs/**/halshow.preferences
3538
# Miscellaneous generated files (Rob)
3639
cscope
3740
cscope.*
@@ -52,13 +55,3 @@ position.txt
5255
*.*-stamp
5356
# Ignore VSCode settings
5457
.vscode/settings.json
55-
# Ignore po4a-generated files for other languages
56-
docs/help/es/*
57-
docs/help/fr/*
58-
docs/help/hu/*
59-
docs/help/nb/*
60-
docs/help/vi/*
61-
docs/help/zh_CN/*
62-
docs/src/*/gui/gmoccapy_release_notes.txt
63-
configs/**/*.tbl.bak
64-
configs/**/halshow.preferences

bin/profile_axis

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
#!/bin/bash
2-
SCRIPT_LOCATION=$(dirname $(readlink -f $0))
3-
python3 -mcProfile -o axis.profile $SCRIPT_LOCATION/axis "$@"
2+
SCRIPT_LOCATION=$(dirname "$(readlink -f "$0")")
3+
python3 -mcProfile -o axis.profile "$SCRIPT_LOCATION"/axis "$@"
44
(echo sort cumulative; echo stats 20) | python3 -mpstats axis.profile

configs/apps/gladevcp/animated-backdrop/animated-backdrop.demo

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22

33
thisfile=$(readlink -f "$0")
44
thisdir=$(dirname "$thisfile")
5-
cd "$thisdir"
5+
cd "$thisdir" || { echo "E: Could not change directory to '$thisdir'"; exit 1; }
66

77
gladevcp_demo -u ./cairodraw.py ./cairodraw.ui

configs/apps/gladevcp/animated-backdrop/cairodraw.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,29 @@
1-
2-
import gtk, sys, cairo
1+
import cairo
32
from math import pi
43

54

65
pngfile = 'vortex.me.png'
76

87
class HandlerClass:
98

10-
def on_expose(self,widget,data=None):
11-
print("on_expose")
12-
cr = widget.window.cairo_create()
9+
def on_draw(self, widget, cr):
10+
print("on_draw")
1311

1412
# Sets the operator to clear which deletes everything below
1513
# where an object is drawn
1614
cr.set_operator(cairo.OPERATOR_CLEAR)
15+
width = widget.get_allocated_width()
16+
height = widget.get_allocated_height()
1717
# Makes the mask fill the entire window
18-
cr.rectangle(0.0, 0.0, *widget.get_size())
18+
cr.rectangle(0.0, 0.0, width, height)
1919
# Deletes everything in the window (since the compositing
2020
# operator is clear and mask fills the entire window
2121
cr.fill()
2222
# Set the compositing operator back to the default
2323
cr.set_operator(cairo.OPERATOR_OVER)
2424

2525
if self.scale:
26-
x, y, w, h = widget.allocation
26+
w, h = widget.get_allocated_width(), widget.get_allocated_height()
2727
cr.scale(1.0 *w / self.width, 1.0*h/self.height)
2828

2929
cr.set_source_surface(self.img, 0, 0)
@@ -49,8 +49,8 @@ def __init__(self, halcomp,builder,useropts):
4949
# This sets the windows colormap, so it supports transparency.
5050
# This will only work if the wm support alpha channel
5151
screen = win.get_screen()
52-
rgba = screen.get_rgba_colormap()
53-
win.set_colormap(rgba)
52+
rgba = screen.get_rgba_visual()
53+
win.set_visual(rgba)
5454

5555
# scaling the bitmap is possible by turning this on
5656
# however the fixed widget does NOT do proportional scaling

configs/apps/gladevcp/animated-backdrop/cairodraw.ui

Lines changed: 21 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,22 @@
1-
<?xml version="1.0"?>
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!-- Generated with glade 3.38.2 -->
23
<interface>
3-
<!-- interface-requires gladevcp 0.0 -->
4-
<requires lib="gtk+" version="2.16"/>
5-
<!-- interface-naming-policy project-wide -->
4+
<requires lib="gtk+" version="3.0"/>
5+
<requires lib="gladevcp" version="0.0"/>
66
<object class="GtkWindow" id="window1">
7-
<signal name="expose_event" handler="on_expose"/>
7+
<property name="can-focus">False</property>
8+
<signal name="draw" handler="on_draw" swapped="no"/>
89
<child>
910
<object class="GtkFixed" id="fixed1">
1011
<property name="visible">True</property>
12+
<property name="can-focus">False</property>
1113
<child>
1214
<object class="HAL_LED" id="hal_led1">
13-
<property name="width_request">100</property>
14-
<property name="height_request">80</property>
15+
<property name="width-request">100</property>
16+
<property name="height-request">80</property>
1517
<property name="visible">True</property>
18+
<property name="can-focus">False</property>
19+
<property name="led-blink-rate">0</property>
1620
</object>
1721
<packing>
1822
<property name="x">57</property>
@@ -22,13 +26,13 @@
2226
<child>
2327
<object class="HAL_Button" id="hal_button1">
2428
<property name="label" translatable="yes">button</property>
25-
<property name="width_request">100</property>
26-
<property name="height_request">80</property>
29+
<property name="width-request">100</property>
30+
<property name="height-request">80</property>
2731
<property name="visible">True</property>
28-
<property name="can_focus">True</property>
29-
<property name="receives_default">True</property>
30-
<property name="has_tooltip">True</property>
31-
<property name="tooltip_text" translatable="yes">a tooltip</property>
32+
<property name="can-focus">True</property>
33+
<property name="receives-default">True</property>
34+
<property name="has-tooltip">True</property>
35+
<property name="tooltip-text" translatable="yes">a tooltip</property>
3236
</object>
3337
<packing>
3438
<property name="x">250</property>
@@ -38,11 +42,11 @@
3842
<child>
3943
<object class="HAL_ToggleButton" id="hal_togglebutton1">
4044
<property name="label" translatable="yes">togglebutton</property>
41-
<property name="width_request">100</property>
42-
<property name="height_request">80</property>
45+
<property name="width-request">100</property>
46+
<property name="height-request">80</property>
4347
<property name="visible">True</property>
44-
<property name="can_focus">True</property>
45-
<property name="receives_default">True</property>
48+
<property name="can-focus">True</property>
49+
<property name="receives-default">True</property>
4650
</object>
4751
<packing>
4852
<property name="x">29</property>

configs/apps/gladevcp/by-widget/combobox.demo

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22

33
thisfile=$(readlink -f "$0")
44
thisdir=$(dirname "$thisfile")
5-
cd "$thisdir"
5+
cd "$thisdir" || { echo "E: Could not change directory to '$thisdir'"; exit 1; }
66

7-
gladevcp_demo -u ./combobox ./combobox.ui
7+
gladevcp_demo -u combobox.py combobox.ui

configs/apps/gladevcp/by-widget/combobox_manual_list.demo

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22

33
thisfile=$(readlink -f "$0")
44
thisdir=$(dirname "$thisfile")
5-
cd "$thisdir"
5+
cd "$thisdir" || { echo "E: Could not change directory to '$thisdir'"; exit 1; }
66

77
gladevcp_demo -u ./combobox_manual_list.py ./combobox_manual_list.ui

configs/apps/gladevcp/by-widget/radiobutton.demo

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22

33
thisfile=$(readlink -f "$0")
44
thisdir=$(dirname "$thisfile")
5-
cd "$thisdir"
5+
cd "$thisdir" || { echo "E: Could not change directory to '$thisdir'"; exit 1; }
66

77
gladevcp_demo -u ./radio.py ./radio.ui

configs/apps/gladevcp/by-widget/sourceview.demo

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22

33
thisfile=$(readlink -f "$0")
44
thisdir=$(dirname "$thisfile")
5-
cd "$thisdir"
5+
cd "$thisdir" || { echo "E: Could not change directory to '$thisdir'"; exit 1; }
66

77
gladevcp_demo -u ./sourceview.py ./sourceview.ui

0 commit comments

Comments
 (0)