f42157fdd7
Made GTK3 AppIndicator dependencies optional and only define AppIndicator macros when the dependency is found.
...
Added compile-time selection to use AppIndicator when available and fall back to GtkStatusIcon otherwise, keeping the status-icon backend available for non-AppIndicator builds (including GTK3 fallback).
2026-02-05 11:25:07 -07:00
9e9a0be80d
Ensure gtkutil.h derives HAVE_GTK3 from GTK_MAJOR_VERSION when missing so GTK3/GTK4 builds select the correct typedefs and declarations in Windows builds that include gtkutil.h directly.
...
Link libX11 on non-Windows builds regardless of GTK2/GTK3 to satisfy the X11 symbols used in gtkutil.c, fixing the GTK2 linker failure.
2026-02-05 08:14:59 -07:00
0dd25cb631
Set the GTK program name/class to the desktop ID before initialization to ensure window-to-desktop-entry mapping uses the correct identifier.
...
Updated the desktop file’s StartupWMClass to match the desktop ID for consistent icon matching.
2026-02-05 02:05:48 -07:00
eb46631a7d
Added GTK utility helpers for box/grid creation and attachment that map GTK3 layout settings while preserving GTK2 fallbacks.
...
Updated multiple GTK UI layout paths (setup, server list, notify, ban list, join dialog, and menu) to use the new helpers for GTK3-safe box/grid creation and attachment behavior.
Added GTK3-safe attach option definitions and updated helper signatures to avoid GTK2-only types/macros in public headers.
Updated gtkutil grid-attachment helpers to use the new attach option type in alignment/expansion logic.
Switched banlist grid attachments to the new helper option flags for GTK3 builds.
2026-02-05 01:59:15 -07:00
e187252afd
Scoped GTK2 action-area layout to #if !HAVE_GTK3 in the quit dialog while keeping GTK3 action widget usage unchanged.
...
Switched the join dialog OK button to gtk_dialog_add_action_widget() for GTK3 while preserving GTK2 action-area packing and layout.
2026-02-05 00:04:07 -07:00
0349e44856
Guarded the GTK3/Wayland redraw path in gtk_xtext_render_page with #if HAVE_GTK3 so GTK2 builds render immediately instead of waiting for expose events.
2026-02-05 00:03:35 -07:00
45300a233b
Fixed GTK2 build guard in gtkutil_tray_icon_supported by using #if HAVE_GTK3 so GTK2 builds skip the GTK3-only GDK_IS_X11_DISPLAY check.
2026-02-04 21:07:49 -07:00
65f417cf7d
Added a GTK3 version fallback in sexy-spell-entry.c so Windows builds use the GTK3 code paths even when HAVE_GTK3 isn’t defined by config headers.
...
Avoided MSVC unused-variable warnings in setup.c by scoping GTK2-only locals to GTK2 code paths.
2026-02-04 21:03:04 -07:00
deepend-tildeclub
fb952dd209
Add GTK version check in fe-gtk.h
...
Added a fallback in the GTK frontend header to derive HAVE_GTK3 from GTK_MAJOR_VERSION when the macro is missing, so Windows GTK3 builds don’t compile GTK2-only code paths by mistake.
2026-02-04 15:34:24 -07:00
deepend-tildeclub
572e2173c3
Merge pull request #54 from ZoiteChat/master
...
sync with master
2026-02-04 14:46:48 -07:00
752b10273b
Updated the gtkobject.h include guard to rely on GTK_MAJOR_VERSION, preventing GTK3 Windows build failures when HAVE_GTK3 isn’t defined.
2026-02-04 14:42:34 -07:00
9aba312c8e
Resolved the merge conflict in STS capability handling by keeping the clearer warning message for missing values.
2026-02-04 13:13:51 -07:00
983ae5337b
Added a diagnostic message when an STS capability token is missing its value, while keeping the ignore behavior intact.
2026-02-04 12:57:07 -07:00
f58785c2e0
Added an explicit diagnostic when an STS capability token lacks a value while keeping the ignore policy unchanged.
2026-02-04 12:42:22 -07:00
3d030a96b7
Updated sts_handle_capability to return FALSE after logging the no‑TLS warning, so the insecure upgrade path doesn’t stop capability negotiation; it still returns TRUE only when an STS upgrade/reconnect is initiated or already in progress.
...
Confirmed inbound_cap_ls only returns early when sts_upgrade_triggered is set by sts_handle_capability, which now only happens for real upgrade/reconnect initiation or in‑progress upgrades.
2026-02-04 12:42:04 -07:00
2ecf1c18fb
Added STS value parsing in CAP ACK handling so sts= capability values are applied immediately before toggling capabilities.
2026-02-04 12:41:32 -07:00
eae5a209d3
Updated STS parsing to ignore preload tokens that include a value while preserving duplicate-preload rejection for valid tokens.
2026-02-04 11:58:13 -07:00
78a00b5b88
Updated STS policy handling to preserve any existing stored port on secure updates rather than overwriting it from the current TLS port, keeping secure-path updates focused on duration/preload.
2026-02-04 11:57:54 -07:00
b9bc65e3c2
Updated STS parsing to only accept preload when it appears without a value, ignoring tokens like preload=0.
2026-02-04 11:39:20 -07:00
3d8d3958ea
Updated STS parsing to treat duplicate port, duration, or preload keys as invalid by returning FALSE immediately when repeats are encountered.
2026-02-04 11:35:40 -07:00
b09e6a5405
Updated STS policy handling to require an active connection port when already on TLS, ignoring any advertised port token before storing the profile.
2026-02-04 10:30:13 -07:00
89a8f3eb0a
Updated STS handling to require an explicit port in insecure-connection capability upgrades, ignoring incomplete policies without upgrading.
2026-02-04 10:19:26 -07:00
deepend-tildeclub
8606e505d1
Adjust Windows build paths for gvsbuild deps
2026-02-03 12:59:31 -07:00
872c5d6572
Switched tray menu icon defines to use GTK3 icon names when GTK3 is enabled, avoiding deprecated GTK stock IDs on Windows builds.
...
Added GtkStatusIcon function prototypes for GTK3 Windows builds when deprecated APIs are hidden, preventing implicit declaration errors.
2026-02-03 12:06:04 -07:00
11b11c9166
Guarded AppIndicator includes and GTK3 tray integration so Windows builds skip libappindicator, while Windows uses the status icon tray backend instead.
...
Enabled Windows tray menu handling paths to match the status icon backend on WIN32, even when GTK3 is enabled.
2026-02-03 11:52:22 -07:00
415066345a
Fixed the GTK3 input-style toggle to remove the CSS provider and reset cached theme/color state when the preference is disabled, preventing stale styling from persisting or blocking a clean re-apply later.
2026-02-03 11:15:52 -07:00
ffa7afd09c
adjustment for windows builds
2026-02-02 15:53:38 -07:00
7dd47dbd2e
Adjust for GTK3 github actions compile testing.
...
fixed gtk2 compiling.
2026-02-01 15:23:36 -07:00
e5673e9a7b
fix compile errors with GTK3 and Wayland. Now compiles/Runs using GTK3+Wayland.
2026-02-01 14:04:56 -07:00
8abc95205a
Replaced GTK3 palette font styling with CSS-compliant properties derived from PangoFontDescription, avoiding the deprecated Pango font: syntax in generated CSS.
...
Added a GTK3-only helper to translate Pango font fields into font-family, font-size, font-style, font-weight, font-variant, and font-stretch CSS declarations while preserving GTK2 behavior under #if !HAVE_GTK3.
Reused the GTK3 font CSS helper in the main UI font styling path to eliminate remaining Pango font: shorthand usage that triggers GTK3 theme parsing warnings.
Exposed the GTK3 font CSS helper in gtkutil so callers can emit CSS-compliant font properties consistently.
2026-01-31 16:37:15 -07:00
d8a8e6ce73
dded GTK3 draw handling while keeping GTK2 expose handling wrapped under #if !HAVE_GTK3 for the spell entry widget.
...
Updated gtk_entry_find_position to use GTK3-safe layout offsets and cursor position APIs while preserving GTK2-only field access behind #if !HAVE_GTK3.
2026-01-31 16:22:35 -07:00
e44e801e3a
Replaced the GTK3 G_DECLARE_DERIVABLE_TYPE usage in sexy-spell-entry.h with explicit typedefs/macros so the SexySpellEntry instance struct (and priv) remains visible in GTK3 builds.
...
Replaced the GTK3 G_DECLARE_DERIVABLE_TYPE usage with explicit GtkXText typedefs/macros to keep the instance struct visible in GTK3 builds and avoid missing member errors.
2026-01-31 16:00:49 -07:00
5170e037b5
Guarded the GTK2-only set_scroll_adjustments_signal assignment in GtkXText class initialization to avoid GTK3 build errors while preserving GTK2 behavior.
2026-01-31 15:47:49 -07:00
b121fa7287
Ensured GTK3 buttons created via gtkutil_button always display their images by enabling gtk_button_set_always_show_image when an icon is set.
2026-01-31 15:35:43 -07:00
29ac0f9ee6
Added a GTK3 CSS font provider helper and updated emoji font application to avoid deprecated override APIs in GTK3 builds.
...
Switched GTK3 setup color previews, entry styling, and user list palette updates to use gtkutil_apply_palette instead of deprecated GTK3 overrides.
2026-01-31 13:49:06 -07:00
1fb1865aca
Switched palette type selection and color conversion helpers to use the HAVE_GTK3 guard consistently in palette definitions and helpers.
...
Updated GTK3-specific palette color storage handling in DCC, notify, and user list views to align with HAVE_GTK3 guards.
Standardized setup color application and dialog logic to use HAVE_GTK3 branches for GTK3/GTK2 separation.
2026-01-31 13:38:05 -07:00
d314856f82
Updated the GTK3 rawlog scrolled window to set expansion and pack it explicitly while leaving GTK2 behavior unchanged, keeping the button box packed at the bottom.
2026-01-31 13:27:21 -07:00
0a0dbd384c
Added GTK3 icon theme change handling to refresh themed icons and reapply the current tray icon state after theme updates.
...
Disconnects the GTK3 icon theme signal during backend cleanup to avoid stale handlers.
2026-01-31 13:24:04 -07:00
3ef9540a57
Updated the About dialog to use the GTK3 license enum and kept the manual license text for non-GTK3 builds, removing the outdated comment.
2026-01-31 13:13:31 -07:00
84647201b1
Added GTK3 input style state tracking (theme, dark mode, colors, and preference) so the CSS provider reloads when those values change, while preserving GTK2 one-time RC parsing
2026-01-31 13:07:54 -07:00
f31ef7cfe2
Added GTK3-only CSS styling for alternating rows in the fkeys treeview and set a widget name to target the rules.
...
Wrapped gtk_tree_view_set_rules_hint so it only applies to non-GTK3 builds.
2026-01-31 13:03:14 -07:00
9af54f5ed7
Added a shared size-request helper plus GTK3 preferred-size vfuncs to reuse the existing sizing logic while keeping GTK2’s size_request path intact.
...
Guarded the GTK2 size_request assignment and wired the new GTK3 preferred-size handlers in class init.
2026-01-31 12:59:58 -07:00
5788bd90e2
Updated the tab context menu popup to use GTK3 gtk_menu_popup_at_pointer with GTK2 fallback in maingui.c.
...
Updated the emoji menu popup to use GTK3 gtk_menu_popup_at_widget with GTK2 fallback in maingui.c.
2026-01-31 12:57:05 -07:00
729b1eb8de
Explicitly show GTK3 menu item widgets (image, label, box) after building the menu item to ensure labels/icons display reliably.
2026-01-31 12:42:35 -07:00
9a92fa33a8
Made the cursor/adwaita RC strings available for GTK3 and derive the caret color from the cursor RC string when building CSS equivalents.
...
Updated the GTK3 input CSS generation to include base/foreground colors, caret color, and the Adwaita/Yaru background-image override while applying the provider to the screen.
2026-01-31 12:25:56 -07:00
5c8f50a9f5
Added GTK3 tray icon fallback caching to concrete file paths using bundled pixmaps for missing themed icons and wired the check into themed icon resolution for app indicator usage.
2026-01-31 12:12:55 -07:00
56845a64d9
Added a shared render helper and GTK3 draw handler with clip handling while keeping GTK2 expose wiring behind build guards in xtext.c.
...
Added a stored GTK3 draw cairo context to the widget struct and initialized it during setup.
2026-01-31 12:09:02 -07:00
36a369fac8
Ensured GTK3 icon menu items show their child widgets by calling gtk_widget_show_all(item) after assembling the box in create_icon_menu.
2026-01-31 12:02:20 -07:00
a5d1dfe81f
Added a GTK3 CSS provider path in create_input_style to mirror GTK2 input base/foreground colors, caret color, and Adwaita/Yaru background-image workaround, while preserving GTK2 RC parsing behavior.
2026-01-31 11:56:37 -07:00
946a39c361
Updated the disabled drag-motion block to traverse parents with gtk_widget_get_parent() and use GTK3-safe paned child accessors while retaining legacy fields for non-GTK3 builds.
2026-01-31 11:36:47 -07:00