Sign in Join

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

Mailing lists / lazarus / 2013-05

Regressions in GTK2 interface ?

43 messages · 14 people · –

Reply by email Subscribe to this list Your subscription

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

Juha Manninen

I am having 2 visual problems in my Lazarus IDE built with GTK2 on Linux Mint 64-bit.

1. Menus don't show icons. Main menu and popup menus have the same problems.

2. The hint on an editor tab showing the whole file name is cut in half. The end part of the text is covered with black. There was a bug like this some years ago.

With QT interface it works well.
Does anybody else see this problem?

Juha

Mattias Gaertner
to Juha Manninen
Show quoted text 11 lines
I am having 2 visual problems in my Lazarus IDE built with GTK2 on Linux Mint 64-bit. 1. Menus don't show icons. Main menu and popup menus have the same problems. 2. The hint on an editor tab showing the whole file name is cut in half. The end part of the text is covered with black. There was a bug like this some years ago. With QT interface it works well. Does anybody else see this problem?

gtk apps normally do not show icons in menus.

Change Application.ShowMenuGlyphs to sbgAlways

Mattias

zeljko
to Mattias Gaertner
Mattias Gaertner wrote 18 lines
On Thu, 9 May 2013 18:12:00 +0300 Juha Manninen wrote: > I am having 2 visual problems in my Lazarus IDE built with GTK2 on > Linux Mint 64-bit. > > 1. Menus don't show icons. Main menu and popup menus have the same problems. > > 2. The hint on an editor tab showing the whole file name is cut in > half. The end part of the text is covered with black. > There was a bug like this some years ago. > > With QT interface it works well. > Does anybody else see this problem? gtk apps normally do not show icons in menus. Change Application.ShowMenuGlyphs to sbgAlways

In gtk2 theme settings that could be enabled too (don't know exactly what property it should be).

zeljko

Junior
to zeljko

in the program TWEAK has an option to activate the menu images and buttons of the programs implemented in the system.

zeljko wrote 33 lines
On 05/09/2013 05:16 PM, Mattias Gaertner wrote: > On Thu, 9 May 2013 18:12:00 +0300 > Juha Manninen wrote: > >> I am having 2 visual problems in my Lazarus IDE built with GTK2 on >> Linux Mint 64-bit. >> >> 1. Menus don't show icons. Main menu and popup menus have the same >> problems. >> >> 2. The hint on an editor tab showing the whole file name is cut in >> half. The end part of the text is covered with black. >> There was a bug like this some years ago. >> >> With QT interface it works well. >> Does anybody else see this problem? > > gtk apps normally do not show icons in menus. > > Change Application.ShowMenuGlyphs to sbgAlways In gtk2 theme settings that could be enabled too (don't know exactly what property it should be). zeljko -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Unknown author
to Junior

Hi,
had the same problem with missing icons with GTK some time ago, I think I resolved the issue with

update-mime-database ~/.local/share/mime

but I can't remember exactly...

d.l.i.w

Juha Manninen
to Unknown author

I have KDE here. I found a setting for GTK applications in KDE control center but unfortunately it made no difference.
I am also getting hundreds of messages like this:

(lazarus:9608): Gdk-WARNING **: Attempt to draw a drawable with depth 24 to a drawable with depth 32

I guess it is related to the problem.

update-mime-database ~/.local/share/mime

The syntax was right but it made no difference either.

Anyway this is not a big problem. I mostly use QT bindings myself and it works well.
It is enough to know that the problem is in my machine configuration and not a bug in GTK2 bindings.

Juha

Mark Morgan Lloyd
to Juha Manninen
Juha Manninen wrote 12 lines
I have KDE here. I found a setting for GTK applications in KDE control center but unfortunately it made no difference. On 5/10/13, wrote: > update-mime-database ~/.local/share/mime The syntax was right but it made no difference either. Anyway this is not a big problem. I mostly use QT bindings myself and it works well. It is enough to know that the problem is in my machine configuration and not a bug in GTK2 bindings.

I've got a main menu with some LEDs on it as icons, x86 Debian 6 "Squeeze" KDE, LCL 1.1 R39139. Don't think I had to do anything outrageous to get it working on GTK2, but (from memory) it doesn't work on Qt.

Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues]
tim launchbury

Hi all

I have the same problem as Juha with the menu icons having dissapeared. This is on 64 bit Mageia Linux with the latest lazarus and fpc from svn. Also I have noticed that in the object inspector if I try to change the colour of a component, the list of colours is corrupted so that the boxes with the colours all look the same, almost as though they were drawn with ink and someone has spilled water on it.

Regards

Tim

Mattias Gaertner
to tim launchbury
Show quoted text 5 lines
Hi all I have the same problem as Juha with the menu icons having dissapeared. This is on 64 bit Mageia Linux with the latest lazarus and fpc from svn.

Do you use KDE or Gnome?
Do you run the gtk2 or the qt version of Lazarus?
When has it worked?

Mattias

patspiper
to tim launchbury: Hi all I have the same problem as Juha with the menu icons having dissapeared. This is on…
tim launchbury wrote 8 lines
Hi all I have the same problem as Juha with the menu icons having dissapeared. This is on 64 bit Mageia Linux with the latest lazarus and fpc from svn. Also I have noticed that in the object inspector if I try to change the colour of a component, the list of colours is corrupted so that the boxes with the colours all look the same, almost as though they were drawn with ink and someone has spilled water on it.

My Lazarus IDE menu has icons, and the OI colour selector is fine.

Ubuntu 11.04
Lazarus 1.1 r41161 FPC 2.6.3 i386-linux-gtk 2
and
Lazarus 1.1 r41161 FPC 2.7.1 i386-linux-gtk 2

Michael Van Canneyt
to patspiper
patspiper wrote 15 lines
On 13/05/13 08:51, tim launchbury wrote: > Hi all > > I have the same problem as Juha with the menu icons having dissapeared. > This is on 64 bit Mageia Linux with the latest lazarus and fpc from svn. > Also I have noticed that in the object inspector if I try to change the > colour of a component, the list of colours is corrupted so that the > boxes with the colours all look the same, almost as though they were > drawn with ink and someone has spilled water on it. My Lazarus IDE menu has icons, and the OI colour selector is fine. Ubuntu 11.04 Lazarus 1.1 r41161 FPC 2.6.3 i386-linux-gtk 2 and Lazarus 1.1 r41161 FPC 2.7.1 i386-linux-gtk 2

My lazarus has no icons in menu, GTK widgetset, KDE, x86_64 ubuntu. Revision 40173.

Michael.

Mattias Gaertner
to patspiper: My Lazarus IDE menu has icons, and the OI colour selector is fine. Ubuntu 11.04 Lazarus…
Show quoted text 15 lines
On 13/05/13 08:51, tim launchbury wrote: > Hi all > > I have the same problem as Juha with the menu icons having dissapeared. > This is on 64 bit Mageia Linux with the latest lazarus and fpc from svn. > Also I have noticed that in the object inspector if I try to change the > colour of a component, the list of colours is corrupted so that the > boxes with the colours all look the same, almost as though they were > drawn with ink and someone has spilled water on it. My Lazarus IDE menu has icons, and the OI colour selector is fine. Ubuntu 11.04 Lazarus 1.1 r41161 FPC 2.6.3 i386-linux-gtk 2 and Lazarus 1.1 r41161 FPC 2.7.1 i386-linux-gtk 2

Thanks.

For those who think that their gtk settings is treated wrong by the LCL and want to debug it:

The code is in
lcl/interfaces/gtk2/gtk2themes.pas

function TGtk2ThemeServices.GetOption
and
procedure MenuImagesChange

Mattias

Luca Olivetti
to Mattias Gaertner: On Mon, 13 May 2013 06:51:18 +0100 Do you use KDE or Gnome? Do you run the gtk2 or the qt…

Al 13/05/13 09:37, En/na Mattias Gaertner ha escrit:

Show quoted text 12 lines
On Mon, 13 May 2013 06:51:18 +0100 "tim launchbury" wrote: > > Hi all > > I have the same problem as Juha with the menu icons having dissapeared. > This is on 64 bit Mageia Linux with the latest lazarus and fpc from svn. Do you use KDE or Gnome? Do you run the gtk2 or the qt version of Lazarus? When has it worked?

I'm not the original poster but I'm using mageia 2 64 bits too and I just noticed the same problem (but with lazarus 1.0.8), however, the colours in the colour selection combo-box are not washed up, they're just transparent (I can see through the text that lies below). I'm using kde and the gtk2 version of Lazarus.
Kde applications have icons in the menus, as do other gtk2 applications (like, e.g. thunderbird)

Bye

Luca Olivetti Wetron Automation Technology http://www.wetron.es Tel. +34 935883004 Fax +34 935883007
Mattias Gaertner
to Michael Van Canneyt: My lazarus has no icons in menu, GTK widgetset, KDE, x86_64 ubuntu. Revision 40173.…
Show quoted text 22 lines
On Mon, 13 May 2013, patspiper wrote: > On 13/05/13 08:51, tim launchbury wrote: >> Hi all >> >> I have the same problem as Juha with the menu icons having dissapeared. >> This is on 64 bit Mageia Linux with the latest lazarus and fpc from svn. >> Also I have noticed that in the object inspector if I try to change the >> colour of a component, the list of colours is corrupted so that the >> boxes with the colours all look the same, almost as though they were >> drawn with ink and someone has spilled water on it. > My Lazarus IDE menu has icons, and the OI colour selector is fine. > > Ubuntu 11.04 > Lazarus 1.1 r41161 FPC 2.6.3 i386-linux-gtk 2 > and > Lazarus 1.1 r41161 FPC 2.7.1 i386-linux-gtk 2 My lazarus has no icons in menu, GTK widgetset, KDE, x86_64 ubuntu. Revision 40173.

gtk has a boolean flag 'gtk-menu-images' to control it. By default it is false.

Mattias

Paul Ishenin
to Mattias Gaertner: On Mon, 13 May 2013 11:24:14 +0300 Thanks. For those who think that their gtk settings is…
Mattias Gaertner wrote 6 lines
The code is in lcl/interfaces/gtk2/gtk2themes.pas function TGtk2ThemeServices.GetOption and procedure MenuImagesChange

That's my code. It checks the next style options:

1) For button images. It creates a button with default options and looks for 'gtk-button-images' option.

2) For menu images. It create a menu item with default options and looks for 'gtk-menu-images' option.

It also listens for those option changes.

I remember I tested this rather much on some ubuntu.

Btw, if you want you can change this default behavior by:

a) changing your theme settings
b) changing in IDE options (if you want this for IDE) / changing in TApplicationProperties object.

Best regards,
Paul Ishenin

Luca Olivetti
to Mattias Gaertner: On Mon, 13 May 2013 11:24:14 +0300 Thanks. For those who think that their gtk settings is…

Al 13/05/13 10:35, En/na Mattias Gaertner ha escrit:

Show quoted text 10 lines
For those who think that their gtk settings is treated wrong by the LCL and want to debug it: The code is in lcl/interfaces/gtk2/gtk2themes.pas function TGtk2ThemeServices.GetOption and procedure MenuImagesChange

I created an application with a menu, put a breakpoint on those functions and they are not called.
Just to be sure breakpoints are working, I also put one in InitThemes and it stops there as it should.

Bye

Luca Olivetti Wetron Automation Technology http://www.wetron.es Tel. +34 935883004 Fax +34 935883007
Mattias Gaertner
to Luca Olivetti: Al 13/05/13 09:37, En/na Mattias Gaertner ha escrit: I'm not the original poster but I'm…
Show quoted text 16 lines
Al 13/05/13 09:37, En/na Mattias Gaertner ha escrit: > On Mon, 13 May 2013 06:51:18 +0100 > "tim launchbury" wrote: > >> >> Hi all >> >> I have the same problem as Juha with the menu icons having dissapeared. >> This is on 64 bit Mageia Linux with the latest lazarus and fpc from svn. > > Do you use KDE or Gnome? > Do you run the gtk2 or the qt version of Lazarus? > When has it worked? I'm not the original poster but I'm using mageia 2 64 bits too and I just noticed the same problem (but with lazarus 1.0.8),

Try another theme or use a tool like dconf to change 'menus-have-icons', which is internally 'gtk-menu-images'.

however, the colours in the colour selection combo-box are not washed up, they're just transparent (I can see through the text that lies below).

This is not related.

I'm using kde and the gtk2 version of Lazarus. Kde applications have icons in the menus, as do other gtk2 applications (like, e.g. thunderbird)

Maybe Mageia did something special for thunderbird.

Mattias

Luca Olivetti
to Luca Olivetti: Al 13/05/13 10:35, En/na Mattias Gaertner ha escrit: I created an application with a…

Al 13/05/13 10:51, En/na Luca Olivetti ha escrit:

Show quoted text 17 lines
Al 13/05/13 10:35, En/na Mattias Gaertner ha escrit: > > For those who think that their gtk settings is treated wrong by the > LCL and want to debug it: > > The code is in > lcl/interfaces/gtk2/gtk2themes.pas > > function TGtk2ThemeServices.GetOption > and > procedure MenuImagesChange I created an application with a menu, put a breakpoint on those functions and they are not called. Just to be sure breakpoints are working, I also put one in InitThemes and it stops there as it should.

I added a TApplicationProperties to the form, set ShowMenuGlyphs to sbgSystem, now GetOption is called and the result is 1, however no glyphs are shown.

Bye

Luca Olivetti Wetron Automation Technology http://www.wetron.es Tel. +34 935883004 Fax +34 935883007
Juha Manninen
to Mattias Gaertner: On Mon, 13 May 2013 10:36:39 +0200 Try another theme or use a tool like dconf to change…
From Patrick Chevalley : If using the default Gtk theme oxygen-gtk there is no icon. By setting another theme (Clearlooks, qtcurve) all the menu have an icon.

I can confirm that. All the problem are gone after switching to "Raleigh" Gtk2 theme (I don't have other choices there. Clearlooks etc. are KDE themes).

These output lines were clearly related to the problem, they are also gone now :

(lazarus:10785): Gdk-WARNING **: Attempt to draw a drawable with depth 24 to a drawable with depth 32

The other problems, namely the dim Color dropdown list and the cut-off file name in editor tab's hint, are also cured by changing the Gtk2 theme in KDE.

I guess this happens only with KDE 4.10.x. I updated my Mint 14 for KDE 4.10 and the problem may have started then. It is not dependent on Lazarus revision.
Can others confirm to have KDE 4.10?

Juha

Mattias Gaertner wrote 45 lines
On Mon, 13 May 2013 10:36:39 +0200 Luca Olivetti wrote: > Al 13/05/13 09:37, En/na Mattias Gaertner ha escrit: > > On Mon, 13 May 2013 06:51:18 +0100 > > "tim launchbury" wrote: > > > >> > >> Hi all > >> > >> I have the same problem as Juha with the menu icons having > >> dissapeared. > >> This is on 64 bit Mageia Linux with the latest lazarus and fpc from > >> svn. > > > > Do you use KDE or Gnome? > > Do you run the gtk2 or the qt version of Lazarus? > > When has it worked? > > I'm not the original poster but I'm using mageia 2 64 bits too and I > just noticed the same problem (but with lazarus 1.0.8), Try another theme or use a tool like dconf to change 'menus-have-icons', which is internally 'gtk-menu-images'. > however, the > colours in the colour selection combo-box are not washed up, they're > just transparent (I can see through the text that lies below). This is not related. > I'm using kde and the gtk2 version of Lazarus. > Kde applications have icons in the menus, as do other gtk2 applications > (like, e.g. thunderbird) Maybe Mageia did something special for thunderbird. Mattias -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Luca Olivetti
to Paul Ishenin: 13.05.2013 17:04, Luca Olivetti ?????: Maybe you can find something useful here:…

Al 13/05/13 11:34, En/na Paul Ishenin ha escrit:

Show quoted text 9 lines
13.05.2013 17:04, Luca Olivetti ?????: > I added a TApplicationProperties to the form, set ShowMenuGlyphs to > sbgSystem, now GetOption is called and the result is 1, however no > glyphs are shown. Maybe you can find something useful here: http://lazarus-dev.blogspot.ru/2009/05/changes-with-button-glyphs.html

Yes, I remembered something similar, that's why I added it. However, even with the default setting (sbgAlways) the menu glyphs aren't shown (glyphs in buttons are OK).

Bye

Luca Olivetti Wetron Automation Technology http://www.wetron.es Tel. +34 935883004 Fax +34 935883007
Luca Olivetti
to Juha Manninen: I can confirm that. All the problem are gone after switching to "Raleigh" Gtk2 theme (I…

Al 13/05/13 11:37, En/na Juha Manninen ha escrit:

I guess this happens only with KDE 4.10.x. I updated my Mint 14 for KDE 4.10 and the problem may have started then. It is not dependent on Lazarus revision. Can others confirm to have KDE 4.10?

kde 4.8.5 in mageia 2.

Bye

Luca Olivetti Wetron Automation Technology http://www.wetron.es Tel. +34 935883004 Fax +34 935883007
Mattias Gaertner
to Juha Manninen: Menu icons are good. Why would somebody not want them? Anyway, it seems other GTK apps…
On 5/13/13, Mattias Gaertner wrote: > I can not get menu icons under Ubuntu, even if I want, which I don't. Menu icons are good. Why would somebody not want them?

They are too small to recognize what they mean.

Anyway, it seems other GTK apps like Gimp respect a setting : "Show icons in GTK menus" in KDE control center. Lazarus does not. Something is different.

See Zeljko's mail.

Mattias

tim launchbury
to Mattias Gaertner: On Mon, 13 May 2013 06:51:18 +0100 Do you use KDE or Gnome? Do you run the gtk2 or the qt…
Show quoted text 21 lines
On Mon, 13 May 2013 06:51:18 +0100 "tim launchbury" wrote: > > Hi all > > I have the same problem as Juha with the menu icons having > dissapeared. This is on 64 bit Mageia Linux with the latest lazarus > and fpc from svn. Do you use KDE or Gnome? Do you run the gtk2 or the qt version of Lazarus? When has it worked? Mattias -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

I am using the gtk2 version. I have only recently changed to a 64 bit OS. Previously I was using Mandriva 2012 32bit on the same hardware and everything worked fine. I am using xfce.

Regards

Tim

Juha Manninen
to tim launchbury

Based on Tim's and Luca's posts KDE is not related to the problem. However 64-bit OS is related. Can others confirm it?

Anyone else saw these lines in stderr :

(lazarus:10785): Gdk-WARNING **: Attempt to draw a drawable with depth 24 to a drawable with depth 32

They show in the same console you started Lazarus from.

Juha

zeljko
to Mattias Gaertner: On Mon, 13 May 2013 12:32:10 +0200 Does that mean we have to call…
Mattias Gaertner wrote 19 lines
On Mon, 13 May 2013 12:32:10 +0200 zeljko wrote: > On 05/13/2013 10:30 AM, Michael Van Canneyt wrote: >> >> >> On Mon, 13 May 2013, patspiper wrote: >> >> >> My lazarus has no icons in menu, GTK widgetset, KDE, x86_64 ubuntu. >> Revision 40173. > > http://stackoverflow.com/questions/8989833/gtk-menu-with-icons Does that mean we have to call gtk_image_menu_item_set_always_show_image(menu_item,1); ?

That routine is avaliable from gtk-2.16, and we are still supporting minimum = 2.8.

z.

Graeme Geldenhuys
to Juha Manninen: Menu icons are good. Why would somebody not want them? Anyway, it seems other GTK apps…
Juha Manninen wrote
Menu icons are good. Why would somebody not want them?

As Mattias said, they are too small, and often the action based on the icon (if you can make out what the picture is) isn't well represented. And then the most obvious one... the menu item already has clear readable text, telling the user exactly what the menu item does. So why do you need two things (icon and text) to tell a user what a menu item does?

Toolbars are obviously a different matter, because often they don't have any text next to them - so the icon is all you have to go on. This is never the case with menus though - you always have the text part.

Regards,
- Graeme -

fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/
tim launchbury
to Juha Manninen: Based on Tim's and Luca's posts KDE is not related to the problem. However 64-bit OS is…
Show quoted text 17 lines
Based on Tim's and Luca's posts KDE is not related to the problem. However 64-bit OS is related. Can others confirm it? Anyone else saw these lines in stderr : (lazarus:10785): Gdk-WARNING **: Attempt to draw a drawable with depth 24 to a drawable with depth 32 They show in the same console you started Lazarus from. Juha -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

I can confirm that I also get this message

Tim

Graeme Geldenhuys
to tim launchbury: Hi all I have the same problem as Juha with the menu icons having dissapeared. This is on…
tim launchbury wrote
I have the same problem as Juha with the menu icons having dissapeared.

I'm running JWM (Joe's Window Manager) under 64-bit FreeBSD. Menu icons are (unfortunately) still visible in all Gnome and KDE applications on my system.

Switching to a Gnome 2 desktop environment, Lazarus (compiled with GTK2 interface) correctly adheres to the Gnome gconf setting - just like all the other GTK2 apps. So I can't reproduce the issue here.

Regards,
- Graeme -

fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/
Mattias Gaertner
to Graeme Geldenhuys
Show quoted text 11 lines
Graeme Geldenhuys hat am 13. Mai 2013 um 16:09 geschrieben: On 2013-05-13 06:51, tim launchbury wrote: > > I have the same problem as Juha with the menu icons having dissapeared. I'm running JWM (Joe's Window Manager) under 64-bit FreeBSD. Menu icons are (unfortunately) still visible in all Gnome and KDE applications on my system.

What happens if you set Tools / Options / Desktop / Show glyphs for menus to "always" and restart the IDE?

Switching to a Gnome 2 desktop environment, Lazarus (compiled with GTK2 interface) correctly adheres to the Gnome gconf setting - just like all the other GTK2 apps. So I can't reproduce the issue here.

Mattias

Luca Olivetti
to tim launchbury: On Mon, 13 May 2013 16:12:07 +0300 I can confirm that I also get this message Tim

Al 13/05/13 16:03, En/na tim launchbury ha escrit:

Show quoted text 14 lines
On Mon, 13 May 2013 16:12:07 +0300 Juha Manninen wrote: > Based on Tim's and Luca's posts KDE is not related to the problem. > However 64-bit OS is related. Can others confirm it? > > Anyone else saw these lines in stderr : > > (lazarus:10785): Gdk-WARNING **: Attempt to draw a drawable with > depth 24 to a drawable with depth 32 > > They show in the same console you started Lazarus from. I can confirm that I also get this message

Me too.

Bye

Luca Olivetti Wetron Automation Technology http://www.wetron.es Tel. +34 935883004 Fax +34 935883007
Luca Olivetti
to Paul Ishenin: 13.05.13, 17:52, Luca Olivetti ?????: Ok. Then check how DrawMenuItemIcon works and debug…

Al 13/05/13 14:04, En/na Paul Ishenin ha escrit:

Show quoted text 7 lines
13.05.13, 17:52, Luca Olivetti ?????: > Yes, I remembered something similar, that's why I added it. However, > even with the default setting (sbgAlways) the menu glyphs aren't shown > (glyphs in buttons are OK). Ok. Then check how DrawMenuItemIcon works and debug it in gtk2proc.inc

I tried but I can't: as soon as I click on the menu, the breakpoint inside DrawMenuItemIcon triggers but then I cannot use the mouse or the keyboard.
I had to switch to another tty to kill gdb.

Bye

Luca Olivetti Wetron Automation Technology http://www.wetron.es Tel. +34 935883004 Fax +34 935883007
Graeme Geldenhuys
to Luca Olivetti: Al 13/05/13 16:03, En/na tim launchbury ha escrit: Me too. Bye Luca Olivetti Wetron…
Luca Olivetti wrote 5 lines
>> >> Anyone else saw these lines in stderr : >> >> (lazarus:10785): Gdk-WARNING **: Attempt to draw a drawable with >> depth 24 to a drawable with depth 32

I'm under 64-bit FreeBSD, and Lazarus (trunk) compiled with LCL-GTK2. I do not see any such output when I start Lazarus IDE.

Regards,
- Graeme -

fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/
Graeme Geldenhuys
to Mattias Gaertner: What happens if you set Tools / Options / Desktop / Show glyphs for menus to "always" and…
Mattias Gaertner wrote
What happens if you set Tools / Options / Desktop / Show glyphs for menus to "always" and restart the IDE?

You understood me wrong. :) Lazarus IDE displays the menu icons correctly, when you compare it to other GTK applications. If I disable/enable the showing of glyphs in the IDE, the IDE acts as it should.

The issue on my system is that I can't disable button and menu icons for _all_ GTK2 apps under JWM - probably because DBUS, or GConf or whatever GTK/Gnome uses isn't loaded in just a X11 Window Manager environment (no desktop environment is loaded). This has nothing to do with Lazarus though.

When I do run Gnome 2 (whole desktop environment), Lazarus IDE does work as it should. So like you, I can't reproduce the issue the original poster mentioned.

Regards,
- Graeme -

fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/
Jesus Reyes
to Juha Manninen: Menu icons are good. Why would somebody not want them? Anyway, it seems other GTK apps…

--- El lun 13-may-13, Juha Manninen escribi?:

Show quoted text 18 lines
De: Juha Manninen Asunto: Re: [Lazarus] Regressions in GTK2 interface ? A: "Lazarus mailing list" Fecha: lunes, 13 de mayo de 2013, 5:24 On 5/13/13, Mattias Gaertner wrote: > I can not get menu icons under Ubuntu, even if I want, which I don't. Menu icons are good. Why would somebody not want them? Anyway, it seems other GTK apps like Gimp respect a setting : ? "Show icons in GTK menus" in KDE control center. Lazarus does not. Something is different. Juha

Here, kubuntu 13.04 64bit, Lazarus show icons only when "Show icons in GTK buttons" is checked in "gtk applications style" (my translation from spanish), it ignores "Show icons in GTK menus" setting :D

Jesus Reyes A.

Juha Manninen
to Jesus Reyes
Jesus Reyes wrote
Here, kubuntu 13.04 64bit, Lazarus show icons only when "Show icons in GTK buttons" is checked in "gtk applications style" (my translation from spanish), it ignores "Show icons in GTK menus" setting :D

Ok. This was not the problem though. I have enabled both of those settings.

Juha

Luca Olivetti
to Juha Manninen: I can confirm that. All the problem are gone after switching to "Raleigh" Gtk2 theme (I…

Al 13/05/13 11:37, En/na Juha Manninen ha escrit:

Show quoted text 16 lines
>From Patrick Chevalley : > If using the default Gtk theme oxygen-gtk there is no icon. > By setting another theme (Clearlooks, qtcurve) all the menu have an icon. I can confirm that. All the problem are gone after switching to "Raleigh" Gtk2 theme (I don't have other choices there. Clearlooks etc. are KDE themes). These output lines were clearly related to the problem, they are also gone now : (lazarus:10785): Gdk-WARNING **: Attempt to draw a drawable with depth 24 to a drawable with depth 32 The other problems, namely the dim Color dropdown list and the cut-off file name in editor tab's hint, are also cured by changing the Gtk2 theme in KDE.

Just tried with with lazarus-1.0.10 and I can say these problems are only there with oxygen-gtk.
The only problem is that the Raleigh theme is hideous :-/ especially in a kde desktop.

Bye

Luca Olivetti Wetron Automation Technology http://www.wetron.es Tel. +34 935883004 Fax +34 935883007