Bug 509503 - [GTK3] Virtual table can't calculate sizes
Summary: [GTK3] Virtual table can't calculate sizes
Status: CLOSED DUPLICATE of bug 531048
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 4.7   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-SWT-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: triaged
Depends on:
Blocks:
 
Reported: 2016-12-20 03:06 EST by Thomas Singer CLA
Modified: 2018-03-27 09:48 EDT (History)
2 users (show)

See Also:


Attachments
Sample code to reproduce (2.13 KB, text/plain)
2016-12-20 03:06 EST, Thomas Singer CLA
no flags Details
Screenshot on Windows 10 (3.36 KB, image/png)
2016-12-20 03:07 EST, Thomas Singer CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Singer CLA 2016-12-20 03:06:06 EST
Please run attached sample on Windows and on Linux (tried Windows 10 and Ubuntu 16.10 with standard Unity desktop). On Windows the popup (e.g. for completion) shows correct values, on Linux it is empty.
Comment 1 Thomas Singer CLA 2016-12-20 03:06:28 EST
Created attachment 265963 [details]
Sample code to reproduce
Comment 2 Thomas Singer CLA 2016-12-20 03:07:35 EST
Created attachment 265964 [details]
Screenshot on Windows 10
Comment 3 Thomas Singer CLA 2016-12-20 03:09:18 EST
On Linux also dozens of lines

(SWT:4484): GLib-CRITICAL **: g_base64_encode_step: assertion 'in != NULL' failed

are printed irritating users.
Comment 4 Eric Williams CLA 2016-12-20 10:46:58 EST
This works on GTK2 but not GTK3. On GTK3 a very thin, empty window with a scrollbar shows up. On GTK2 it looks similar to the Windows 10 screenshot.

I do not, however, see the warnings when running on GTK3.
Comment 5 Eric Williams CLA 2018-03-20 12:40:51 EDT
I can no longer reproduce this issue: on GTK3 the snippet looks just like Windows. I even see column width = 40 printed to the console.

Thomas can you confirm using 4.8 M6?
Comment 6 Thomas Singer CLA 2018-03-21 03:40:02 EDT
(In reply to Eric Williams from comment #5)
> I can no longer reproduce this issue: on GTK3 the snippet looks just like
> Windows. I even see column width = 40 printed to the console.
> 
> Thomas can you confirm using 4.8 M6?

I've tried with SWT 4.8 M6 on Fedora 27 and with SWT_GTK3=1 it prints

column width = 0

but with SWT_GTK3=0 it prints

column width = 67

so this bug still exists in 4.8 M6.
Comment 7 Eric Williams CLA 2018-03-21 10:02:44 EDT
(In reply to Thomas Singer from comment #6)
> (In reply to Eric Williams from comment #5)
> > I can no longer reproduce this issue: on GTK3 the snippet looks just like
> > Windows. I even see column width = 40 printed to the console.
> > 
> > Thomas can you confirm using 4.8 M6?
> 
> I've tried with SWT 4.8 M6 on Fedora 27 and with SWT_GTK3=1 it prints
> 
> column width = 0
> 
> but with SWT_GTK3=0 it prints
> 
> column width = 67
> 
> so this bug still exists in 4.8 M6.

Sorry, I was running my snippets on the master branch. After further investigation I've determined that this issue has been fixed by the fix for bug 531048.

*** This bug has been marked as a duplicate of bug 531048 ***
Comment 8 Thomas Singer CLA 2018-03-27 05:38:13 EDT
Yes, the table columns are now wide enough with the latest master commit.

But for some weird reason the right-click does not close the window any more.
Comment 9 Leo Ufimtsev CLA 2018-03-27 09:48:49 EDT
(In reply to Thomas Singer from comment #8)
> Yes, the table columns are now wide enough with the latest master commit.
> 
> But for some weird reason the right-click does not close the window any more.

Hmm. I just tested on latest master, snippet closes for me?

Does the close listener work on other widgets for you? e.g button.
Do you have anything that could mess with your mouse listener?