Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2010-05

Editor tabs too big when "close button on tab" is enabled

7 messages · 4 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Graeme Geldenhuys

Hi

Did anybody else notice this too? If so, I'll create a bug report for it then. On my system using my theme (Ubuntu 8.04.2 with Bluecurve theme), the Lazarus editor tabs are about 8 pixels bigger (higher) than general GTK2/Gnome applications with tabs (eg: compared to gEdit).

Regards, - Graeme - _______________________________________________ fpGUI - a cross-platform Free Pascal GUI toolkit http://opensoft.homeip.net/fpgui/

Reply by email

Henry Vermaak
to Graeme Geldenhuys
Graeme Geldenhuys wrote 7 lines
Hi Did anybody else notice this too? ?If so, I'll create a bug report for it then. ?On my system using my theme (Ubuntu 8.04.2 with Bluecurve theme), the Lazarus editor tabs are about 8 pixels bigger (higher) than general GTK2/Gnome applications with tabs (eg: compared to gEdit).

Yes, mine are 4 pixels higher, the bevel around the "x" is also noticeably bigger in the ide. Do these get drawn manually?

Henry

Reply by email

Mattias Gärtner
to Henry Vermaak

Zitat von Henry Vermaak :

Show quoted text 11 lines
On 14 May 2010 11:41, Graeme Geldenhuys wrote: > Hi > > Did anybody else notice this too? ?If so, I'll create a bug report for > it then. ?On my system using my theme (Ubuntu 8.04.2 with Bluecurve > theme), the Lazarus editor tabs are about 8 pixels bigger (higher) > than general GTK2/Gnome applications with tabs (eg: compared to > gEdit). Yes, mine are 4 pixels higher, the bevel around the "x" is also noticeably bigger in the ide. Do these get drawn manually?
No. It's a gtk button with modified style
style^.xthickness := 0;
style^.ythickness := 0;

Maybe the style is later replaced by the gtk. The firefox buttons are also bigger than gedit's. Probably gedit uses a special. Have to look into gedit code ...

Mattias

Reply by email

Henry Vermaak
to Mattias Gärtner

2010/5/14 Mattias G?rtner :

Show quoted text 12 lines
Zitat von Henry Vermaak : > > Yes, mine are 4 pixels higher, the bevel around the "x" is also > noticeably bigger in the ide. ?Do these get drawn manually? No. It's a gtk button with modified style style^.xthickness := 0; style^.ythickness := 0; Maybe the style is later replaced by the gtk. The firefox buttons are also bigger than gedit's. Probably gedit uses a special. Have to look into gedit code ...

That's weird, my Firefox buttons are the same as Gedit's, but the overall tab height is smaller in Firefox. I think Firefox removes the default inner-border of some controls, since they can get the buttons smaller than default (older) gtk without the text clipping (something which is redundant in newer gtk versions, since the text centering works different now).

Henry

Reply by email

Graeme Geldenhuys
to Mattias Gärtner: Zitat von Henry Vermaak : No. It's a gtk button with modified style style^.xthickness :=…

2010/5/14 Mattias G?rtner :

Maybe the style is later replaced by the gtk. The firefox buttons are also bigger than gedit's. Probably gedit uses a special. Have to look into gedit code ...

Nope, it seems to be a Lazarus IDE issue. I tried various other GTK2/Gnome apps. All other apps I tested have the same tab height (with and without close button), only Lazarus IDE doesn't. Apps tested: gEdit, Geany IDE, gTranslator, Nautilus Preference dialog, Nero Linux, etc...

Regards, - Graeme - _______________________________________________ fpGUI - a cross-platform Free Pascal GUI toolkit http://opensoft.homeip.net/fpgui/

Reply by email

Paul Ishenin
to Mattias Gärtner: Zitat von Henry Vermaak : No. It's a gtk button with modified style style^.xthickness :=…
Mattias G?rtner wrote 7 lines
No. It's a gtk button with modified style style^.xthickness := 0; style^.ythickness := 0; Maybe the style is later replaced by the gtk. The firefox buttons are also bigger than gedit's. Probably gedit uses a special. Have to look into gedit code ...

I already took that xthinkness, ythickness from the gedit code a year ago :)

Best regards,
Paul Ishenin.

Reply by email