| Summary: | [GTK3] Cannot reduce column width by dragging | ||
|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | Sergey Prigogin <eclipse.sprigogin> |
| Component: | SWT | Assignee: | Sravan Kumar Lakkimsetti <sravankumarl> |
| Status: | RESOLVED FIXED | QA Contact: | Arun Thondapu <arunkumar.thondapu> |
| Severity: | major | ||
| Priority: | P3 | CC: | akurtakov, arunkumar.thondapu, bsd, daniel_megert, malaperle, tparker |
| Version: | 4.4 | Flags: | akurtakov:
luna+
akurtakov: review+ |
| Target Milestone: | 4.4.1 | ||
| Hardware: | PC | ||
| OS: | Linux | ||
| Whiteboard: | |||
|
Description
Sergey Prigogin
The problem is specific to SWT with GTK 3. It goes away whith SWT_GTK3=0. This looks like this problem got introduced by bug 424891 which was delivered in Luna M6 Sergey, is that with Ubuntu Precise (12.04) ? (In reply to Marc-Andre Laperle from comment #3) > Sergey, is that with Ubuntu Precise (12.04) ? Yes. *** Bug 437566 has been marked as a duplicate of this bug. *** There are two types of sizes in GTK3 widgets. Minimum size and natural size. The minimum size is the base minimum size allocated to the widget. but the natural size is the size which we set using set_fixed_width call. In bug 424891 to show the files properties table we added minimum size to the columns. This solved the problem but it caused a setting of minimum size in all the tables. This is causing this problem Our code to calulate size of a control is based on the minimum sizes. so setting the minimum width resolved bug 424891. The solution I am proposing here is to shift the calucaltion control size using the natural size. This will provide the default size (calculated based on the fixed sizes set programatically)for a control and will resolve both the problems. I have tested this using the control examples and snippets. Also tested the file permissions case The patch is uploaded to gerrit at https://git.eclipse.org/r/#/c/28734/ Tested again and with the proposed patch Table in ControlExample has its width totally wrong - even one column is not visible. (In reply to Alexander Kurtakov from comment #7) > Tested again and with the proposed patch Table in ControlExample has its > width totally wrong - even one column is not visible. Hi Alex, Thank you for the test. I missed one more change in the original patch. that is causing the problem you are facing. I have uploaded a new patch to the gerrit request. Please use the new patch and let me know your comments on this. Thanks Sravan the patch was pushed to master through http://git.eclipse.org/c/platform/eclipse.platform.swt.git/commit/?id=807366ceccc074335641488dd09c21024735cd07 Thank Alex for the review Submitted a gerrit patch for 4.4 maintenance branch https://git.eclipse.org/r/30014 Backport approved. |