Balló György pushed to branch main at Arch Linux / Packaging / Packages / 
galculator


Commits:
d6cd2d9f by Balló György at 2026-08-19T19:03:26+02:00
upgpkg: 2.1.4-12: Add keyboard accelerators for change sign button

Implements: 
https://gitlab.archlinux.org/archlinux/packaging/packages/galculator/-/work_items/1

- - - - -


4 changed files:

- .SRCINFO
- PKGBUILD
- REUSE.toml
- + galculator-sign-accel.patch


Changes:

=====================================
.SRCINFO
=====================================
@@ -1,7 +1,7 @@
 pkgbase = galculator
        pkgdesc = GTK based scientific calculator
        pkgver = 2.1.4
-       pkgrel = 11
+       pkgrel = 12
        url = https://github.com/galculator/galculator
        arch = x86_64
        license = GPL-2.0-or-later
@@ -16,8 +16,10 @@ pkgbase = galculator
        source = git+https://github.com/galculator/galculator.git#tag=v2.1.4
        source = 0001-Fix-multiple-definition-of-prefs-compile-error-with-.patch
        source = 0002-Declare-function-parameters-as-required-by-C23.patch
+       source = galculator-sign-accel.patch
        b2sums = 
4a204b3d459f0f9e9e7014e39d1420f975f3569e8f36acefd5b5ceb9bcec153435e5f7dd40aa9d678f98a54e979739b44494bad1f8910b645719c4946bfe6bbf
        b2sums = 
9ab69d9ab67edde7a2cc962013a7156194d822601429a7f62066c02a078c7fdc8d0811ca6400e72e35184e83c941a6c270c6976fd5cf75a7800194bd123b6c9d
        b2sums = 
8085ef6f869396f29d8385eccb2d14ff58ca99ab2a67de60ded3ba60a6ed0ad5601a76cc46528f617e9c97d52920e297eb777711bdff92c4a6a0866ece6e766b
+       b2sums = 
0624ea8ea25432b9eef08ada9a88f3ca17695a72e7c14ef85ed0feaec7b5f09d76f58f4bf7993caf518061fdc22cc2bb2772ca7559489df1682d75315e299c87
 
 pkgname = galculator


=====================================
PKGBUILD
=====================================
@@ -7,7 +7,7 @@
 
 pkgname=galculator
 pkgver=2.1.4
-pkgrel=11
+pkgrel=12
 pkgdesc='GTK based scientific calculator'
 arch=(x86_64)
 url='https://github.com/galculator/galculator'
@@ -28,11 +28,13 @@ source=(
   "git+https://github.com/galculator/galculator.git#tag=v$pkgver";
   0001-Fix-multiple-definition-of-prefs-compile-error-with-.patch
   0002-Declare-function-parameters-as-required-by-C23.patch
+  galculator-sign-accel.patch
 )
 b2sums=(
   
4a204b3d459f0f9e9e7014e39d1420f975f3569e8f36acefd5b5ceb9bcec153435e5f7dd40aa9d678f98a54e979739b44494bad1f8910b645719c4946bfe6bbf
   
9ab69d9ab67edde7a2cc962013a7156194d822601429a7f62066c02a078c7fdc8d0811ca6400e72e35184e83c941a6c270c6976fd5cf75a7800194bd123b6c9d
   
8085ef6f869396f29d8385eccb2d14ff58ca99ab2a67de60ded3ba60a6ed0ad5601a76cc46528f617e9c97d52920e297eb777711bdff92c4a6a0866ece6e766b
+  
0624ea8ea25432b9eef08ada9a88f3ca17695a72e7c14ef85ed0feaec7b5f09d76f58f4bf7993caf518061fdc22cc2bb2772ca7559489df1682d75315e299c87
 )
 
 prepare() {
@@ -42,6 +44,10 @@ prepare() {
   git apply -3 
../0001-Fix-multiple-definition-of-prefs-compile-error-with-.patch
   git apply -3 ../0002-Declare-function-parameters-as-required-by-C23.patch
 
+  # Add keyboard accelerators for change sign button
+  # https://github.com/galculator/galculator/pull/75
+  git apply -3 ../galculator-sign-accel.patch
+  
   sed -i 's|$(datadir)/appdata|$(datadir)/metainfo|' Makefile.am
   sed -i 's/galculator.xpm//' pixmaps/Makefile.am
   autoreconf -fiv


=====================================
REUSE.toml
=====================================
@@ -28,6 +28,7 @@ SPDX-License-Identifier = "0BSD"
 path = [
     "0001-Fix-multiple-definition-of-prefs-compile-error-with-.patch",
     "0002-Declare-function-parameters-as-required-by-C23.patch",
+    "galculator-sign-accel.patch",
 ]
 SPDX-FileCopyrightText = "galculator contributors"
 SPDX-License-Identifier = "GPL-2.0-or-later"


=====================================
galculator-sign-accel.patch
=====================================
@@ -0,0 +1,23 @@
+From 915d841e7b39679511826e186568ac0be70b8701 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Ball=C3=B3=20Gy=C3=B6rgy?= <[email protected]>
+Date: Wed, 19 Aug 2026 18:59:51 +0200
+Subject: [PATCH] Add keyboard accelerators for change sign button
+
+Same as in the scientific view.
+---
+ ui/basic_buttons_gtk3.ui | 2 ++
+ 1 file changed, 2 insertions(+)
+
+diff --git a/ui/basic_buttons_gtk3.ui b/ui/basic_buttons_gtk3.ui
+index c72a1b2..a9d4056 100644
+--- a/ui/basic_buttons_gtk3.ui
++++ b/ui/basic_buttons_gtk3.ui
+@@ -263,6 +263,8 @@
+                     <property name="receives_default">False</property>
+                     <property name="tooltip_text" translatable="yes">Change 
sign</property>
+                     <property name="use_underline">True</property>
++                    <accelerator key="KP_Subtract" signal="clicked" 
modifiers="GDK_CONTROL_MASK"/>
++                    <accelerator key="minus" signal="clicked" 
modifiers="GDK_CONTROL_MASK"/>
+                     <signal name="can-activate-accel" 
handler="on_button_can_activate_accel" swapped="no"/>
+                     <signal name="released" 
handler="on_togglebutton_released" swapped="no"/>
+                     <signal name="clicked" handler="on_gfunc_button_clicked" 
swapped="no"/>



View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/galculator/-/commit/d6cd2d9f5d486c71f2b8a3e6c3f5f6a82fb12165

-- 
View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/galculator/-/commit/d6cd2d9f5d486c71f2b8a3e6c3f5f6a82fb12165
You're receiving this email because of your account on gitlab.archlinux.org. 
Manage all notifications: https://gitlab.archlinux.org/-/profile/notifications 
| Help: https://gitlab.archlinux.org/help


Reply via email to