Skip to content

Conversation

@amartya4256
Copy link
Contributor

@amartya4256 amartya4256 commented Dec 9, 2025

This PR provides a new API setAutoscaleDisabled to provide a better means of disabling autoscaling at widget level across all the platforms. The current implementation is intended to return a false when this method is called in cocoa and GTK and only perform an action win32 and return since we do not support widget level autoscaling control on GTK and cocoa yet.

The convention of the method is as follows:

  1. Takes a boolean parameter for disabling or enabling autoscale
  2. returns true if successful (in case of win32) otherwise false (in case of GTK and cocoa)

Things to be done:

  • Usage of different autoscaling modes as enabled, disabled and disabled_cascaded, etc
  • Testing with GEF to see how it impacts.

@eclipse-platform-bot
Copy link
Contributor

eclipse-platform-bot commented Dec 9, 2025

This pull request changes some projects for the first time in this development cycle.
Therefore the following files need a version increment:

binaries/org.eclipse.swt.win32.win32.x86_64/META-INF/MANIFEST.MF

Warning

🚧 This PR cannot be modified by maintainers because edits are disabled or it is created from an organization repository. To obtain the required changes apply the git patch manually as an additional commit.

Git patch
From 985988b5290c07034647310b3fdbf3bbb5212354 Mon Sep 17 00:00:00 2001
From: Eclipse Platform Bot <platform-bot@eclipse.org>
Date: Tue, 30 Dec 2025 08:42:22 +0000
Subject: [PATCH] Version bump(s) for 4.39 stream


diff --git a/binaries/org.eclipse.swt.win32.win32.x86_64/META-INF/MANIFEST.MF b/binaries/org.eclipse.swt.win32.win32.x86_64/META-INF/MANIFEST.MF
index 84f618f2b6..3dccebb562 100644
--- a/binaries/org.eclipse.swt.win32.win32.x86_64/META-INF/MANIFEST.MF
+++ b/binaries/org.eclipse.swt.win32.win32.x86_64/META-INF/MANIFEST.MF
@@ -3,7 +3,7 @@ Fragment-Host: org.eclipse.swt;bundle-version="[3.128.0,4.0.0)"
 Bundle-Name: %fragmentName
 Bundle-Vendor: %providerName
 Bundle-SymbolicName: org.eclipse.swt.win32.win32.x86_64; singleton:=true
-Bundle-Version: 3.132.0.qualifier
+Bundle-Version: 3.132.100.qualifier
 Bundle-ManifestVersion: 2
 Bundle-Localization: fragment
 Export-Package: 
-- 
2.52.0

Further information are available in Common Build Issues - Missing version increments.

@github-actions
Copy link
Contributor

github-actions bot commented Dec 9, 2025

Test Results

  176 files  ±0    176 suites  ±0   26m 55s ⏱️ +41s
4 672 tests ±0  4 650 ✅ ±0  22 💤 ±0  0 ❌ ±0 
  482 runs  ±0    476 ✅ ±0   6 💤 ±0  0 ❌ ±0 

Results for commit 85a74d1. ± Comparison against base commit 383ed2a.

♻️ This comment has been updated with latest results.

@HeikoKlare
Copy link
Contributor

@amartya4256 can you please add a meaningful title and description to the PR, even if it's still a draft?

@amartya4256 amartya4256 changed the title WIP Add setAutoscaleDisabled API to provide a better means to disabling autoscaling at widget level Dec 9, 2025
@amartya4256 amartya4256 force-pushed the amartya4256/set_autoscale_disabled_api branch 2 times, most recently from cb3cc53 to 2a1545f Compare December 23, 2025 09:44
@akoch-yatta akoch-yatta force-pushed the amartya4256/set_autoscale_disabled_api branch from 2a1545f to f5b90b2 Compare December 30, 2025 08:38
@amartya4256 amartya4256 force-pushed the amartya4256/set_autoscale_disabled_api branch 6 times, most recently from fa19cec to 8ff51cb Compare January 2, 2026 13:39
This commit adds an API to set Autoscaling Modes using the new enum
AutoscalingMode with types Enabled, Disabled and Disabled_Inherited.
Moreover, it also provides an API Shell#getNativeZoom to still make the
consumer be able to obtain the actual zoom at a screen. These features
are only enabled on win32 and will not perform any action on other
platforms if called.
@amartya4256 amartya4256 force-pushed the amartya4256/set_autoscale_disabled_api branch from 8ff51cb to 85a74d1 Compare January 2, 2026 13:58
@amartya4256 amartya4256 marked this pull request as ready for review January 2, 2026 14:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Concept] Proper implementation of autoscale disablement for part of the application

3 participants