Bug 456345 - [GTK3] Toolbars, Editor tabs, status line way too large
Summary: [GTK3] Toolbars, Editor tabs, status line way too large
Status: RESOLVED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 4.5   Edit
Hardware: PC Linux
: P3 normal with 2 votes (vote)
Target Milestone: 4.6 M2   Edit
Assignee: Eric Williams CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 470171 494609 497135 (view as bug list)
Depends on:
Blocks:
 
Reported: 2014-12-30 09:18 EST by Andrey Loskutov CLA
Modified: 2018-05-11 16:38 EDT (History)
15 users (show)

See Also:


Attachments
toolbar comparison Eclipse 4.4 vs 4.5 (53.54 KB, image/png)
2014-12-30 09:18 EST, Andrey Loskutov CLA
no flags Details
Comparison between un-patched and patched toolbars (50.38 KB, image/png)
2015-07-20 11:47 EDT, Eric Williams CLA
no flags Details
GNOME3 comparison between un-patched and patched toolbars (48.22 KB, image/png)
2015-07-20 13:54 EDT, Eric Williams CLA
no flags Details
Comparison of toolbars and tabs between Gtk3 and Gtk2 (45.39 KB, image/png)
2015-07-21 10:27 EDT, Eric Williams CLA
no flags Details
Updated comparison between Gtk3 and Gtk2 (46.02 KB, image/png)
2015-07-21 10:35 EDT, Eric Williams CLA
no flags Details
GNOME3 comparison between Gtk2 and Gtk3 (50.38 KB, image/png)
2015-07-21 14:12 EDT, Eric Williams CLA
no flags Details
GNOME3 post-buttons fixed toolbar vertical comparison Gtk3 (60.28 KB, image/png)
2015-07-24 13:23 EDT, Eric Williams CLA
no flags Details
GNOME3 post-buttons fixed toolbar horizontal comparison Gtk3 (67.43 KB, image/png)
2015-07-24 13:23 EDT, Eric Williams CLA
no flags Details
GNOME3 post-buttons fixed toolbar comparison Gtk3 vs. Gtk2 (69.39 KB, image/png)
2015-07-24 15:12 EDT, Eric Williams CLA
no flags Details
With patch some elements are missing. (41.52 KB, image/png)
2015-07-28 17:17 EDT, Leo Ufimtsev CLA
no flags Details
Regular child eclipse. (42.28 KB, image/png)
2015-07-28 17:17 EDT, Leo Ufimtsev CLA
no flags Details
Quick access cuts off toolbar line (20.56 KB, image/png)
2015-07-30 10:13 EDT, Eric Williams CLA
no flags Details
Comparison between Gtk2, Gtk3 unpatched, and Gtk3 patched with Quick Access fix (97.57 KB, image/png)
2015-07-30 15:06 EDT, Eric Williams CLA
no flags Details
Eclipse 4.5.1 Mars under Kubuntu 15.10 with GTK2 and adjusted gtkrc (65.34 KB, image/png)
2016-02-13 12:29 EST, Gunter Ohrner CLA
no flags Details
GTK3 (9.36 KB, image/png)
2016-05-06 15:17 EDT, Sergey Prigogin CLA
no flags Details
GTK2 (8.87 KB, image/png)
2016-05-06 15:17 EDT, Sergey Prigogin CLA
no flags Details
GTK3 with Unity (6.62 KB, image/png)
2016-05-06 16:02 EDT, Sergey Prigogin CLA
no flags Details
GTK3 with Cinnamon (8.39 KB, image/png)
2016-05-06 16:03 EDT, Sergey Prigogin CLA
no flags Details
Eclipse vs gedit (25.25 KB, image/png)
2016-05-08 01:55 EDT, Sergey Prigogin CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andrey Loskutov CLA 2014-12-30 09:18:37 EST
Created attachment 249662 [details]
toolbar comparison Eclipse 4.4 vs 4.5

See the attached picture comparing Eclipse 4.4 (default to GTK2) and Eclipse 4.5 (default to GTK3). 

Eclipse on GTK3 uses 19 pixel more of vertical screen space (!!!) only because the buttons and editor tab area are too large. Additional few pixels are wasted on rendering the fat status line.

This should be fixed.
Comment 1 Alexander Kurtakov CLA 2015-01-19 03:37:29 EST
Toolbars too wide has been fixed in latest 4.5.
Comment 2 Andrey Loskutov CLA 2015-03-29 11:01:08 EDT
(In reply to Alexander Kurtakov from comment #1)
> Toolbars too wide has been fixed in latest 4.5.

I can't see any change on 4.5.0.N20150326-2000 compared with the screenshot. Toolbars are still too high, editor tabs too.
Comment 3 Eclipse Genie CLA 2015-06-12 14:46:44 EDT
New Gerrit change created: https://git.eclipse.org/r/50127
Comment 4 Andrey Loskutov CLA 2015-06-15 11:00:44 EDT
*** Bug 470171 has been marked as a duplicate of this bug. ***
Comment 5 Eric Williams CLA 2015-07-20 11:47:16 EDT
Created attachment 255302 [details]
Comparison between un-patched and patched toolbars
Comment 6 Eric Williams CLA 2015-07-20 11:49:05 EDT
(In reply to Eric Williams from comment #5)
> Created attachment 255302 [details]
> Comparison between un-patched and patched toolbars

This screenshot shows the patch I am currently working on: notice the size (vertical padding) on the bottom toolbar and tabs vs. the top.
Comment 7 Leo Ufimtsev CLA 2015-07-20 13:22:41 EDT
(In reply to comment #6)
> (In reply to Eric Williams from comment #5)
> > Created attachment 255302 [details]
> > Comparison between un-patched and patched toolbars
> 
> This screenshot shows the patch I am currently working on: notice the size
> (vertical padding) on the bottom toolbar and tabs vs. the top.

+1
I like the slim look.
Comment 8 Eric Williams CLA 2015-07-20 13:54:55 EDT
Created attachment 255306 [details]
GNOME3 comparison between un-patched and patched toolbars
Comment 9 Eric Williams CLA 2015-07-20 13:55:22 EDT
(In reply to Eric Williams from comment #8)
> Created attachment 255306 [details]
> GNOME3 comparison between un-patched and patched toolbars

This screenshot shows the patch I am currently working on when implemented on GNOME3: again, notice the size (vertical padding) on the bottom toolbar and tabs vs. the top.
Comment 10 Lars Vogel CLA 2015-07-20 15:01:54 EDT
(In reply to Leo Ufimtsev from comment #7)
> (In reply to comment #6)
> > (In reply to Eric Williams from comment #5)
> > > Created attachment 255302 [details]
> > > Comparison between un-patched and patched toolbars
> > 
> > This screenshot shows the patch I am currently working on: notice the size
> > (vertical padding) on the bottom toolbar and tabs vs. the top.
> 
> +1
> I like the slim look.

+1, but could IMHO even more slim.
Comment 11 Leo Ufimtsev CLA 2015-07-20 17:53:49 EDT
(In reply to comment #10)
> +1, but could IMHO even more slim.

@Eric, would you be able to do a Gtk2 vs Gtk3 comparison with the patch, to see if there is any difference? (maybe there is some component that still has some padding on it).
Comment 12 Teodor Shaterov CLA 2015-07-21 03:33:52 EDT
It looks much better, but I also think that it could be even slimmer than that.
Comment 13 Eric Williams CLA 2015-07-21 10:27:44 EDT
Created attachment 255336 [details]
Comparison of toolbars and tabs between Gtk3 and Gtk2
Comment 14 Eric Williams CLA 2015-07-21 10:35:23 EDT
Created attachment 255337 [details]
Updated comparison between Gtk3 and Gtk2
Comment 15 Eric Williams CLA 2015-07-21 10:39:14 EDT
(In reply to Leo Ufimtsev from comment #11)
> @Eric, would you be able to do a Gtk2 vs Gtk3 comparison with the patch, to
> see if there is any difference? (maybe there is some component that still
> has some padding on it).

I have attached a screenshot to compare/contrast. Notice the tabs are still slightly larger in Gtk2 than in Gtk3, and the toolbar is also markedly larger in Gtk2 than in Gtk3.

Personally I think the Gtk3 screenshot looks the most consistent: the toolbar and editor tabs are proportional in size relative to each other.
Comment 16 Lars Vogel CLA 2015-07-21 11:01:16 EDT
(In reply to Eric Williams from comment #15)
> Personally I think the Gtk3 screenshot looks the most consistent: the
> toolbar and editor tabs are proportional in size relative to each other.

+1, looks beautiful.
Comment 17 Andrey Loskutov CLA 2015-07-21 12:19:03 EDT
(In reply to Eric Williams from comment #15)
> (In reply to Leo Ufimtsev from comment #11)
> > @Eric, would you be able to do a Gtk2 vs Gtk3 comparison with the patch, to
> > see if there is any difference? (maybe there is some component that still
> > has some padding on it).
> 
> I have attached a screenshot to compare/contrast. Notice the tabs are still
> slightly larger in Gtk2 than in Gtk3, and the toolbar is also markedly
> larger in Gtk2 than in Gtk3.

Smaller is better :)

> Personally I think the Gtk3 screenshot looks the most consistent: the
> toolbar and editor tabs are proportional in size relative to each other.

Is it expected that each button has now very strong border? For example the small view menu triangle and maximize/minimize buttons? Looks weird.
Comment 18 Eric Williams CLA 2015-07-21 12:59:31 EDT
(In reply to Andrey Loskutov from comment #17)
> Is it expected that each button has now very strong border? For example the
> small view menu triangle and maximize/minimize buttons? Looks weird.

That is due to my Xfce theme (Albatross), which does not "smooth over" buttons. Both the default Xfce and GNOME3 themes have the correct (and expected) toolbar button behavior: the button border is only displayed when the mouse hovers over the button.
Comment 19 Andrey Loskutov CLA 2015-07-21 13:39:47 EDT
(In reply to Eric Williams from comment #18)
> (In reply to Andrey Loskutov from comment #17)
> > Is it expected that each button has now very strong border? For example the
> > small view menu triangle and maximize/minimize buttons? Looks weird.
> 
> That is due to my Xfce theme (Albatross), which does not "smooth over"
> buttons. Both the default Xfce and GNOME3 themes have the correct (and
> expected) toolbar button behavior: the button border is only displayed when
> the mouse hovers over the button.

OK, can we see the GTK2/GTK3 comparison with default Gnome theme (Adwaita), which is what most users will have by default? Just to make sure we don't compare apples with oranges.
Comment 20 Eric Williams CLA 2015-07-21 14:12:50 EDT
Created attachment 255342 [details]
GNOME3 comparison between Gtk2 and Gtk3
Comment 21 Eric Williams CLA 2015-07-21 14:19:27 EDT
(In reply to Andrey Loskutov from comment #19)
> OK, can we see the GTK2/GTK3 comparison with default Gnome theme (Adwaita),
> which is what most users will have by default? Just to make sure we don't
> compare apples with oranges.

I have attached a screenshot that makes the Gtk2 vs. Gtk3 comparison on GNOME3. The difference is not as pronounced in the toolbar but still visible. In general I find the toolbar to be larger in GNOME than other desktop environments (Xfce, for example).
Comment 22 Leo Ufimtsev CLA 2015-07-21 14:26:59 EDT
(In reply to comment #21)

> I have attached a screenshot that makes the Gtk2 vs. Gtk3 comparison on GNOME3.
> The difference is not as pronounced in the toolbar but still visible. 

I did a pixel comparison. On Gtk3 the Toolbar is ~2 pixels smaller in height  than on Gtk2. I like that, +1.
Comment 23 Andrey Loskutov CLA 2015-07-21 14:38:28 EDT
(In reply to Leo Ufimtsev from comment #22)
> (In reply to comment #21)
> 
> > I have attached a screenshot that makes the Gtk2 vs. Gtk3 comparison on GNOME3.
> > The difference is not as pronounced in the toolbar but still visible. 
> 
> I did a pixel comparison. On Gtk3 the Toolbar is ~2 pixels smaller in height
> than on Gtk2. I like that, +1.

This is OK, BUT look at the width!

The toolbar width on GTK2 is 715, on GTK3 808 pixel. This is 93 pixel too wide, so -93 (for each pixel).
Comment 24 Eric Williams CLA 2015-07-21 15:06:51 EDT
(In reply to Andrey Loskutov from comment #23)
> This is OK, BUT look at the width!
> 
> The toolbar width on GTK2 is 715, on GTK3 808 pixel. This is 93 pixel too
> wide, so -93 (for each pixel).

Do you mean the entire width of the toolbar? Or the width of the toolbar up until the buttons end?
Comment 25 Andrey Loskutov CLA 2015-07-21 15:08:30 EDT
(In reply to Eric Williams from comment #24)
> (In reply to Andrey Loskutov from comment #23)
> > This is OK, BUT look at the width!
> > 
> > The toolbar width on GTK2 is 715, on GTK3 808 pixel. This is 93 pixel too
> > wide, so -93 (for each pixel).
> 
> Do you mean the entire width of the toolbar? Or the width of the toolbar up
> until the buttons end?

From the first button ("new") on the left side to the last button (navigation triangle) on the right side.
Comment 26 Eric Williams CLA 2015-07-21 15:11:18 EDT
(In reply to Andrey Loskutov from comment #25)
> From the first button ("new") on the left side to the last button
> (navigation triangle) on the right side.

Ah I see. This seems to be a GNOME specific issue as far as I can tell. On Xfce the toolbar is drastically smaller, seemingly due to less padding in between buttons/smaller buttons overall. I will look into this further.
Comment 27 Eric Williams CLA 2015-07-23 16:01:20 EDT
(In reply to Eric Williams from comment #26)
> This seems to be a GNOME specific issue as far as I can tell. On
> Xfce the toolbar is drastically smaller, seemingly due to less padding in
> between buttons/smaller buttons overall. I will look into this further.

I have confirmed this. The buttons in GNOME are almost double the size of that in Xfce, mainly due to a lot of padding/space around the button, whereas in Xfce the buttons sit "shoulder to shoulder", without any padding in between.

I will see if I can fix this, but will include it in a commit separate from the toolbar width patch.
Comment 28 Eric Williams CLA 2015-07-24 13:23:18 EDT
Created attachment 255408 [details]
GNOME3 post-buttons fixed toolbar vertical comparison Gtk3
Comment 29 Eric Williams CLA 2015-07-24 13:23:57 EDT
Created attachment 255409 [details]
GNOME3 post-buttons fixed toolbar horizontal comparison Gtk3
Comment 30 Eric Williams CLA 2015-07-24 13:42:27 EDT
@All,

I have added 2 new screenshots that reflect the current state of this patch.

I have resized the toolbar buttons in Gtk3, including menu buttons, toggle buttons, and drop down buttons. Previously these buttons had 8px of horizontal padding, and 5-6px of vertical padding. I have made the following adjustments:

Buttons (menu, toggle, and push): vertical padding reduced to 2px on the top, and 3px on the bottom. Horizontal padding has been adjusted to 4px on both the right and the left.

Arrow button (drop down menu) padding has been reduced to 0px on all four sides.

The following toolbar measurements were taken when launching a child Eclipse (i.e. full toolbar but no debug buttons): 

toolbar width patched is 680px, 
toolbar width unpatched is 829px, 
toolbar and tab height patched is 79px, and
toolbar and tab height unpatched is 99px.

So far this yields a 149px (!) difference in horizontal size, and a 20px difference in vertical size.

Obviously the button padding can be adjusted, but I think it looks pretty optimal with these parameters. Thoughts?
Comment 31 Andrey Loskutov CLA 2015-07-24 14:11:41 EDT
(In reply to Eric Williams from comment #30)
> The following toolbar measurements were taken when launching a child Eclipse
> (i.e. full toolbar but no debug buttons): 
> 
> toolbar width patched is 680px, 
> toolbar width unpatched is 829px, 
> toolbar and tab height patched is 79px, and
> toolbar and tab height unpatched is 99px.
> 
> So far this yields a 149px (!) difference in horizontal size, and a 20px
> difference in vertical size.

Can you please post the comparison "patched gtk3" with gtk2?

> Obviously the button padding can be adjusted, but I think it looks pretty
> optimal with these parameters. Thoughts?

I like the current result, this is a huge improvement over original state!

The width seems to be optimal now, the height of the toolbar is still a bit too high compared with gtk2 version.
Comment 32 Eric Williams CLA 2015-07-24 15:12:24 EDT
Created attachment 255412 [details]
GNOME3 post-buttons fixed toolbar comparison Gtk3 vs. Gtk2
Comment 33 Eric Williams CLA 2015-07-24 15:17:30 EDT
(In reply to Andrey Loskutov from comment #31)
> Can you please post the comparison "patched gtk3" with gtk2?

Certainly, please see above. As you can see, the toolbar in Gtk2 is still larger than in Gtk3, while the height from tab to toolbar is *very slightly* smaller in Gtk3 than in Gtk2.

> The width seems to be optimal now, the height of the toolbar is still a bit
> too high compared with gtk2 version.

Right now the height in Gtk2 vs. Gtk3 is on par. Personally I think more can be trimmed, and I am investigating. There seems to be quite a bit of space allocated to the SWT_FIXED area upon which the toolbar sits. This accounts for the padding between the tops/bottoms of the buttons vs. where the menus/tabs actually start.
Comment 34 Leo Ufimtsev CLA 2015-07-27 10:27:38 EDT
Looks pretty.
Comment 35 Leo Ufimtsev CLA 2015-07-28 17:17:11 EDT
Created attachment 255496 [details]
With patch some elements are missing.

With the patch, some buttons and the perspectives are missing on my Gtk3 build. Does this occur for you?
I tested with a blank child eclipse.
Comment 36 Leo Ufimtsev CLA 2015-07-28 17:17:52 EDT
Created attachment 255497 [details]
Regular child eclipse.

For comparison.
Comment 37 Lars Vogel CLA 2015-07-28 17:25:57 EDT
(In reply to Leo Ufimtsev from comment #35)
> Created attachment 255496 [details]
> With patch some elements are missing.
> 
> With the patch, some buttons and the perspectives are missing on my Gtk3
> build. Does this occur for you?
> I tested with a blank child eclipse.

Quick access seems also missing in your screenshot
Comment 38 Eric Williams CLA 2015-07-29 10:56:17 EDT
(In reply to Leo Ufimtsev from comment #35)
> Created attachment 255496 [details]
> With patch some elements are missing.
> 
> With the patch, some buttons and the perspectives are missing on my Gtk3
> build. Does this occur for you?
> I tested with a blank child eclipse.

Thank you for pointing this out. I didn't encounter this when originally testing, but after upgrading my Eclipse from rawhide, I have noticed the error.

The padding patch in ToolBar.java seems to be at fault: having padding-bottom and padding-top values of 0px causes issues in Control.java. Gtk rounds px values, so anything less than 0.5px will cause the error. I have adjusted the padding-bottom and padding-top values to 1px, which is the lowest amount of padding I can add.

The padding patch for GtkMenuButton causes no issues when a padding size of 0px is chosen. I will keep this as it greatly reduces the size of the toolbar.
Comment 39 Eric Williams CLA 2015-07-30 10:13:38 EDT
Created attachment 255540 [details]
Quick access cuts off toolbar line

It seems with the reduction in toolbar padding, an adjustment for the Quick Access bar is also needed. At the moment, the Quick Access bar cuts the bottom line of the toolbar. I will adjust the padding accordingly and post some screenshots.
Comment 40 Eric Williams CLA 2015-07-30 15:06:12 EDT
Created attachment 255553 [details]
Comparison between Gtk2, Gtk3 unpatched, and Gtk3 patched with Quick Access fix

I have adjusted the padding values such that the Quick Access text entry now fits into the toolbar properly. This screenshot is a comparison, on GNOME3, of the toolbar height between Gtk3 (patched and unpatched), and Gtk2.

Gtk2 had the highest height at 96px, Gtk3 unpatched had a height of 93px, and Gtk3 with my patch applied had a height of 82px. Note that height, in this case, includes both the toolbar and the tabs.
Comment 42 Alexander Kurtakov CLA 2015-08-18 15:08:08 EDT
Thanks for the patch. Pushed to master.
Comment 43 Lars Vogel CLA 2015-08-18 15:50:11 EDT
(In reply to Alexander Kurtakov from comment #42)
> Thanks for the patch. Pushed to master.

Nice. Is this potentially something for 4.5.1 or 4.5.2?
Comment 44 Teodor Shaterov CLA 2015-08-25 03:29:39 EDT
How can we test the change? Is there a SNAPSHOT version or something like this?
Comment 45 Eric Williams CLA 2015-08-26 10:46:32 EDT
(In reply to Teodor Shaterov from comment #44)
> How can we test the change? Is there a SNAPSHOT version or something like
> this?

For the time being, you would have to clone the SWT git repository and and run a child Eclipse based on the SWT from the git repo.

You can find a comprehensive guide on how to do this here:
http://leoufimtsev.github.io./org/swt-dev.html#orgheadline20
("Checking out SWT repos for development") 
and
http://leoufimtsev.github.io./org/swt-dev.html#orgheadline27
("Build GTK SO files").

You can then run a child Eclipse and have it use the SWT project in your workspace instead of the SWT .jar. This will let you see changes to SWT immediately.
Comment 46 Lars Vogel CLA 2015-08-26 10:48:37 EDT
(In reply to Teodor Shaterov from comment #44)
> How can we test the change? Is there a SNAPSHOT version or something like
> this?

Alternatively to Eric description from comment 45 you can also download the latest I-Build from http://download.eclipse.org/eclipse/downloads/ which should contain the changes.
Comment 47 Eric Williams CLA 2015-08-26 10:51:19 EDT
(In reply to Lars Vogel from comment #46)
> (In reply to Teodor Shaterov from comment #44)
> > How can we test the change? Is there a SNAPSHOT version or something like
> > this?
> 
> Alternatively to Eric description from comment 45 you can also download the
> latest I-Build from http://download.eclipse.org/eclipse/downloads/ which
> should contain the changes.

Ah, I did not know that. This is is much easier. :)
Comment 48 Teodor Shaterov CLA 2015-11-09 08:54:46 EST
I see a target milestone 4.6 M2. Does this mean that the fix will we available when the mentioned version is released?
Comment 49 Eric Williams CLA 2015-11-09 08:58:27 EST
(In reply to Teodor Shaterov from comment #48)
> I see a target milestone 4.6 M2. Does this mean that the fix will we
> available when the mentioned version is released?

Yes, it's already in M2, but M3 is the latest:
http://download.eclipse.org/eclipse/downloads/drops4/S-4.6M3-201510291100/
Comment 50 Gunter Ohrner CLA 2016-02-13 12:29:26 EST
Created attachment 259742 [details]
Eclipse 4.5.1 Mars under Kubuntu 15.10 with GTK2 and adjusted gtkrc

As an interim workaround to make Eclipse better usable until the GTK3 is rolled out, the following suggestions helped me: 

* https://gist.github.com/andrioli/3825078

My Eclipse start script, utilising the linked gtkrc file, looks as follows:

*********************************
#! /bin/sh

export SWT_GTK3=0
export GTK2_RC_FILES="$HOME"/.gtkrc-2.0:"$HOME"/.gtkrc-eclipse

eclipse-4.5 -vmargs -Xmx2048m -XX:MinHeapFreeRatio=5 -XX:MaxHeapFreeRatio=10 -D"java.library.path=/usr/lib/x86_64-linux-gnu/jni/" # -Dorg.eclipse.swt.browser.DefaultType=mozilla
*********************************

You can see the results in the attached screenshot.
Comment 51 Sergey Prigogin CLA 2016-05-06 15:17:22 EDT
Created attachment 261524 [details]
GTK3

The toolbar, editor tabs and status bar are still significantly larger than with GTK2.
Comment 52 Sergey Prigogin CLA 2016-05-06 15:17:55 EDT
Created attachment 261525 [details]
GTK2
Comment 53 Eric Williams CLA 2016-05-06 15:18:52 EDT
(In reply to Sergey Prigogin from comment #51)
> Created attachment 261524 [details]
> GTK3
> 
> The toolbar, editor tabs and status bar are still significantly larger than
> with GTK2.

Which build of Eclipse is this?
Comment 54 Sergey Prigogin CLA 2016-05-06 15:23:12 EDT
The attachments in comment #51 and comment #52 were obtained using Eclipse SDK 4.6.0.I20160506-1030 under KDE 4.13.3 on Ubuntu 14.04.1
Comment 55 Eric Williams CLA 2016-05-06 15:29:50 EDT
(In reply to Sergey Prigogin from comment #54)
> The attachments in comment #51 and comment #52 were obtained using Eclipse
> SDK 4.6.0.I20160506-1030 under KDE 4.13.3 on Ubuntu 14.04.1

Does the bug reproduce under any window manager/desktop environment other than KDE? Also Ubuntu 14.04 uses GTK3.10, it's possible the CSS might not work that far back.
Comment 56 Sergey Prigogin CLA 2016-05-06 16:01:35 EDT
(In reply to Eric Williams from comment #55)

Under Unitity and Cinnamon the sizes are OK.
Comment 57 Sergey Prigogin CLA 2016-05-06 16:02:46 EDT
Created attachment 261528 [details]
GTK3 with Unity
Comment 58 Sergey Prigogin CLA 2016-05-06 16:03:21 EDT
Created attachment 261529 [details]
GTK3 with Cinnamon
Comment 59 Alexander Kurtakov CLA 2016-05-07 08:54:52 EDT
Sergey, would you please open Eclipse and another Gtk application under KDE and look whether sizes are the same? What SWT does is trying to remove padding/borders and etc. but if the theme used sets the size of the widget too big (not through some padding/border) there is nothing to be done on SWT side.
Comment 60 Sergey Prigogin CLA 2016-05-08 01:55:27 EDT
Created attachment 261536 [details]
Eclipse vs gedit

As you can see the Eclipse toolbar has extra vertical margin. Given that Eclipse toolbar icons are smaller than the gedit ones, the toolbar should be smaller accordingly.
Comment 61 Dani Megert CLA 2016-05-12 06:22:21 EDT
Is someone planning to fix this for RC2?
Comment 62 Alexander Kurtakov CLA 2016-05-12 07:02:20 EDT
(In reply to Dani Megert from comment #61)
> Is someone planning to fix this for RC2?

Not from my side. Workaround would be to use the gtk theme that unity/cinnamon uses.
Comment 63 Dani Megert CLA 2016-05-12 07:49:28 EDT
(In reply to Alexander Kurtakov from comment #62)
> (In reply to Dani Megert from comment #61)
> > Is someone planning to fix this for RC2?
> 
> Not from my side. Workaround would be to use the gtk theme that
> unity/cinnamon uses.

So, maybe better mark this fixed again and open a new one for the specific issue/case.
Comment 64 Alexander Kurtakov CLA 2016-05-12 08:34:00 EDT
Marking this one as resolved.
Sergey, Please open a new bug with the full details - Operating system, desktop environment used, gtk theme used, gtk version used. Theme specific bugs (and I'm pretty sure this is one such based on your cinnamon/unity findings) should be handled differently and by someone digging into the theme used to find what/how happens. Although considering you reported with Gtk 3.10 under KDE (thus I assume Oxygen theme) and that newer versions of Gtk dropped support for the theming draw engine (so themes are only css nowadays) it would have very low priority.
Comment 65 Sergey Prigogin CLA 2016-05-12 18:37:30 EDT
(In reply to Alexander Kurtakov from comment #64)

Filed bug 493589. The wrong sizes don't appear to be theme-specific. At least they are the same in Oxygen and in Klassik.
Comment 66 Andrey Loskutov CLA 2016-06-01 09:45:08 EDT
*** Bug 494609 has been marked as a duplicate of this bug. ***
Comment 67 Eric Williams CLA 2018-05-11 16:38:04 EDT
*** Bug 497135 has been marked as a duplicate of this bug. ***