Bug 393219

Summary: Icons in gvim's toolbar in plasma only have large spacing, width and height
Product: [Plasma] Breeze Reporter: Shlomi Fish <shlomif>
Component: IconsAssignee: visual-bugs-null
Status: RESOLVED FIXED    
Severity: normal CC: kainz.a, nate, plasma-bugs-null
Priority: NOR    
Version First Reported In: 5.12.2   
Target Milestone: ---   
Platform: Mageia RPMs   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: The script to clean the env vars and run gvim.
Screenshot of the bad gvim display on plasma 5
A good gvim toolbar on jwm.

Description Shlomi Fish 2018-04-17 09:14:47 UTC
Icons in gvim's toolbar in plasma only have large spacing, width and height. It is fine in JWM and starting gvim -f with a script that unsets almost all env vars does not help.
Comment 1 Shlomi Fish 2018-04-17 09:16:04 UTC
Created attachment 112066 [details]
The script to clean the env vars and run gvim.
Comment 2 Shlomi Fish 2018-04-17 09:21:01 UTC
Created attachment 112067 [details]
Screenshot of the bad gvim display on plasma 5
Comment 3 Shlomi Fish 2018-04-17 09:25:36 UTC
Created attachment 112068 [details]
A good gvim toolbar on jwm.
Comment 4 David Edmundson 2018-04-17 10:37:13 UTC
What's gvim written in?

If you're not sure, show me

lddtree `which gvim`
Comment 5 Shlomi Fish 2018-04-17 12:48:29 UTC
(In reply to David Edmundson from comment #4)
> What's gvim written in?
> 
> If you're not sure, show me
> 
> lddtree `which gvim`

looks like it is gtk+ 3:

/usr/bin/gvim (interpreter => /lib64/ld-linux-x86-64.so.2)
    libgtk-3.so.0 => /lib64/libgtk-3.so.0
        libgmodule-2.0.so.0 => /lib64/libgmodule-2.0.so.0
        libXi.so.6 => /lib64/libXi.so.6
            libXext.so.6 => /lib64/libXext.so.6
        libXfixes.so.3 => /lib64/libXfixes.so.3
        libcairo-gobject.so.2 => /lib64/libcairo-gobject.so.2
        libatk-1.0.so.0 => /lib64/libatk-1.0.so.0
        libatk-bridge-2.0.so.0 => /lib64/libatk-bridge-2.0.so.0
            libatspi.so.0 => /lib64/libatspi.so.0
            libdbus-1.so.3 => /lib64/libdbus-1.so.3
                libsystemd.so.0 => /lib64/libsystemd.so.0
                    libgcrypt.so.20 => /lib64/libgcrypt.so.20
                        libgpg-error.so.0 => /lib64/libgpg-error.so.0
                    librt.so.1 => /lib64/librt.so.1
                    liblzma.so.5 => /lib64/liblzma.so.5
                    liblz4.so.1 => /lib64/liblz4.so.1
        libepoxy.so.0 => /lib64/libepoxy.so.0
        libpangoft2-1.0.so.0 => /lib64/libpangoft2-1.0.so.0
            libharfbuzz.so.0 => /lib64/libharfbuzz.so.0
                libgraphite2.so.3 => /lib64/libgraphite2.so.3
            libfreetype.so.6 => /lib64/libfreetype.so.6
                libbz2.so.1 => /lib64/libbz2.so.1
                libpng16.so.16 => /lib64/libpng16.so.16
                libz.so.1 => /lib64/libz.so.1
        libfontconfig.so.1 => /lib64/libfontconfig.so.1
            libxml2.so.2 => /lib64/libxml2.so.2
            libuuid.so.1 => /lib64/libuuid.so.1
    libgdk-3.so.0 => /lib64/libgdk-3.so.0
        libXinerama.so.1 => /lib64/libXinerama.so.1
        libXrandr.so.2 => /lib64/libXrandr.so.2
            libXrender.so.1 => /lib64/libXrender.so.1
        libXcursor.so.1 => /lib64/libXcursor.so.1
        libXcomposite.so.1 => /lib64/libXcomposite.so.1
        libXdamage.so.1 => /lib64/libXdamage.so.1
        libxkbcommon.so.0 => /lib64/libxkbcommon.so.0
        libwayland-cursor.so.0 => /lib64/libwayland-cursor.so.0
        libwayland-egl.so.1 => /lib64/libwayland-egl.so.1
        libwayland-client.so.0 => /lib64/libwayland-client.so.0
            libffi.so.6 => /lib64/libffi.so.6
    libpangocairo-1.0.so.0 => /lib64/libpangocairo-1.0.so.0
    libpango-1.0.so.0 => /lib64/libpango-1.0.so.0
        libthai.so.0 => /lib64/libthai.so.0
            libdatrie.so.1 => /lib64/libdatrie.so.1
        libfribidi.so.0 => /lib64/libfribidi.so.0
    libcairo.so.2 => /lib64/libcairo.so.2
        libpixman-1.so.0 => /lib64/libpixman-1.so.0
        libEGL.so.1 => /lib64/libEGL.so.1
            libxcb-dri2.so.0 => /lib64/libxcb-dri2.so.0
            libX11-xcb.so.1 => /lib64/libX11-xcb.so.1
            libxcb-dri3.so.0 => /lib64/libxcb-dri3.so.0
            libxcb-xfixes.so.0 => /lib64/libxcb-xfixes.so.0
            libxcb-present.so.0 => /lib64/libxcb-present.so.0
            libxcb-sync.so.1 => /lib64/libxcb-sync.so.1
            libxshmfence.so.1 => /lib64/libxshmfence.so.1
            libgbm.so.1 => /lib64/libgbm.so.1
            libwayland-server.so.0 => /lib64/libwayland-server.so.0
            libexpat.so.1 => /lib64/libexpat.so.1
            libdrm.so.2 => /lib64/libdrm.so.2
            libglapi.so.0 => /lib64/libglapi.so.0
        libxcb-shm.so.0 => /lib64/libxcb-shm.so.0
        libxcb.so.1 => /lib64/libxcb.so.1
            libXau.so.6 => /lib64/libXau.so.6
            libXdmcp.so.6 => /lib64/libXdmcp.so.6
                libbsd.so.0 => /lib64/libbsd.so.0
        libxcb-render.so.0 => /lib64/libxcb-render.so.0
        libGL.so.1 => /lib64/libGL.so.1
            libxcb-glx.so.0 => /lib64/libxcb-glx.so.0
            libXxf86vm.so.1 => /lib64/libXxf86vm.so.1
    libgdk_pixbuf-2.0.so.0 => /lib64/libgdk_pixbuf-2.0.so.0
    libgio-2.0.so.0 => /lib64/libgio-2.0.so.0
        libresolv.so.2 => /lib64/libresolv.so.2
        libmount.so.1 => /lib64/libmount.so.1
            libblkid.so.1 => /lib64/libblkid.so.1
    libgobject-2.0.so.0 => /lib64/libgobject-2.0.so.0
    libglib-2.0.so.0 => /lib64/libglib-2.0.so.0
        libpcre.so.1 => /lib64/libpcre.so.1
    libSM.so.6 => /lib64/libSM.so.6
    libICE.so.6 => /lib64/libICE.so.6
    libXt.so.6 => /lib64/libXt.so.6
    libX11.so.6 => /lib64/libX11.so.6
    libm.so.6 => /lib64/libm.so.6
    libtinfo.so.6 => /lib64/libtinfo.so.6
    libacl.so.1 => /lib64/libacl.so.1
    libgpm.so.2 => /lib64/libgpm.so.2
    libdl.so.2 => /lib64/libdl.so.2
    libperl.so.5.26 => /lib64/libperl.so.5.26
        libnsl.so.1 => /lib64/libnsl.so.1
        libcrypt.so.1 => /lib64/libcrypt.so.1
        libutil.so.1 => /lib64/libutil.so.1
    libpthread.so.0 => /lib64/libpthread.so.0
    libc.so.6 => /lib64/libc.so.6
    libtcl8.6.so => /lib64/libtcl8.6.so
    libruby.so.2.5 => /lib64/libruby.so.2.5
Comment 6 David Edmundson 2018-04-17 12:54:10 UTC
Can you play with changing your GTK3 theme in the relevant system settings module.

If it's caused by breeze-gtk, set the status back to unconfirmed and move the product to "breeze" component "gtk"

If it still happens under the default gtk3 (adwaita?) then it's nothing that Plasma, and you'll have to talk to gvim.
Comment 7 Shlomi Fish 2018-04-17 13:21:25 UTC
(In reply to David Edmundson from comment #6)
> Can you play with changing your GTK3 theme in the relevant system settings
> module.
> 
> If it's caused by breeze-gtk, set the status back to unconfirmed and move
> the product to "breeze" component "gtk"
> 
> If it still happens under the default gtk3 (adwaita?) then it's nothing that
> Plasma, and you'll have to talk to gvim.

Changing the gtk3 theme in sys settings only changes the colours - not the icons themselves or the spacing. Moreover, based on strace, it seems that breeze is still being used on plasma5 whereas it isnt on jwm, where the toolbar is sane. So it is a p5-specific issue.
Comment 8 Shlomi Fish 2018-04-17 13:26:28 UTC
For the record, the problem also happens in a new unix user on plasma 5 via startx.
Comment 9 Shlomi Fish 2018-04-20 19:40:17 UTC
Remove NEEDSinfo because the info was provided.
Comment 10 Nate Graham 2021-03-10 03:20:54 UTC
This was a bug I recall in Breeze icons that got fixed a while back.