Commit Graph

26 Commits (2af08bdbe30d4982cf9ed85de42ca5cd80bcf75c)

Author SHA1 Message Date
Jeffrey C. Ollie 6ae333869e
zig: switch all uses of callconv(.C) to callconv(.c) 2025-08-05 10:32:03 -05:00
Leah Amelia Chen ce015899f3
gtk: add "remember choice" toggle for clipboard confirmation dialog 2025-06-28 17:06:40 +02:00
Qwerasd 2384bd69cc style: use decl literals
This commit changes a LOT of areas of the code to use decl literals
instead of redundantly referring to the type.

These changes were mostly driven by some regex searches and then manual
adjustment on a case-by-case basis.

I almost certainly missed quite a few places where decl literals could
be used, but this is a good first step in converting things, and other
instances can be addressed when they're discovered.

I tested GLFW+Metal and building the framework on macOS and tested a GTK
build on Linux, so I'm 99% sure I didn't introduce any syntax errors or
other problems with this. (fingers crossed)
2025-05-26 21:50:14 -06:00
Jeffrey C. Ollie e8c845b758
core: fixup callconv(.C) -> callconv(.c)
https://ziglang.org/download/0.14.0/release-notes.html#Calling-Convention-Enhancements-and-setAlignStack-Replaced
2025-05-07 08:41:09 -05:00
Jeffrey C. Ollie 75cc4b29fd
gtk: require blueprint-compiler 0.16 for building
Changes:

1. Require `blueprint-compiler` 0.16.0 (or newer) for building from
   a git checkout. With #6822 distributions that can't meet that
   requirement can use generated source tarballs to build.
2. Remove all `.ui` files as they are unnecessary.
3. Simplify the `Builder` interface since raw `.ui` files are no
   longer used.
4. Removed build-time check of raw `.ui` files.
2025-04-23 10:35:10 -05:00
Leah Amelia Chen f659e70938
gtk: clean up C remnants and `@ptrCast`s
Some `@ptrCast`s are unavoidable in the codebase but I've gotten rid of
every one that's unnecessary.
2025-03-21 20:15:59 +01:00
Jeffrey C. Ollie 5bf10dce12
c804cd3dbb0274f3271736e0b8f279795bdff394 2025-03-18 14:14:50 -05:00
Leah Amelia Chen 1ee9c85954
gtk: port inspector & key handling to zig-gobject 2025-03-18 12:35:41 +01:00
Maciej Bartczak bd617c52e9 code review:
- implement blueprints for Adwaita 1.2
- use postifx notation for casting gtk widgets
- fix formatting
2025-03-05 21:03:02 +01:00
Maciej Bartczak 7123d4e055 gtk: blur the content view instead of using a Revealer widget 2025-03-05 21:03:02 +01:00
Maciej Bartczak 1f695c2646 gtk: implement sensitive content reveal mechanism when showing paste confirmation in secure input mode 2025-03-05 21:02:58 +01:00
Jeffrey C. Ollie 62dcddb315
gtk: fix missing defer 2025-02-25 13:46:50 -06:00
Jeffrey C. Ollie 0638eca633
gtk: use versioned directories to store blueprint files 2025-02-25 13:30:44 -06:00
Jeffrey C. Ollie 3f847de964
gtk: switch clipboard confirmation to zig-gobject and blueprints
Note that for Debian 12, the blueprints must be compiled on a distro
with a newer version of `blueprint-compiler` and the raw UI XML
committed to git. Debian 12 includes `blueprint-compiler` 0.6.0 which
doesn't support compiling `adw.MessageDialog` even though the version of
`libadwaita` supports it.
2025-02-25 13:30:44 -06:00
Daniel Fox d79a02db44
Add destructive/suggested action classes 2025-01-06 09:25:42 -08:00
Daniel Fox 4fb253a300
Expose clipboard cancel button and focus it 2025-01-06 09:06:10 -08:00
Daniel Fox d3973b8fad
Set the paste button in the GTK dialog as default 2025-01-06 09:06:10 -08:00
Jeffrey C. Ollie 51c42795fc gtk: enable window-title-font-family 2025-01-04 20:20:52 -08:00
Jeffrey C. Ollie 063868b311
gtk: add class names to the rest of the windows 2025-01-03 14:08:00 -06:00
Daniel Fox 41719aa48c
Set the paste preview to monospace 2024-12-31 14:26:03 -08:00
kaizo bdeb93fe87 Fix clipboard confirmation window typo 2024-12-30 15:23:16 -05:00
Khang Nguyen Duy cb67fbd08d gtk: pass surface to clipboard window by reference instead of by value
The surface might be mutated during the clipboard confirmation
(resized in my case), leading to the copied cursor page_pin being
invalidated.
2024-12-12 00:21:59 +07:00
Mitchell Hashimoto 9409e3072f
apprt/gtk: remove usingnamespace 2024-08-16 14:58:04 -07:00
Gregory Anders 98b43007a0 core: use ClipboardRequestType instead of ClipboardPromptReason
Instead of making a separate enum that must be translated from the
ClipboardRequest type, simply re-use ClipboardRequest to determine the
clipboard confirmation reason.
2023-11-10 23:12:39 -05:00
Gregory Anders 9d3385703d gtk: fix memory leak in GTK clipboard confirmation window 2023-11-10 23:12:39 -05:00
Gregory Anders 960a1bb091 gtk: implement OSC 52 prompts 2023-11-10 23:12:39 -05:00