You are not logged in.

#1 2014-08-25 21:14:34

to7m
Member
From: Norwich, UK
Registered: 2013-09-16
Posts: 15

Gedit menu icons not appearing

I assume something's missing, but I can't figure out what. The icons in other programs such as GtkHash are present, though some were broken at one point (probably fixed by an upgrade). I tried installing a bunch of things including the gnome package group, and tried various themes as threads about similar problems suggest. Could it be because gdk-pixbuf2 is out-of-date?

tuNX08k.png

Thanks smile

Offline

#2 2014-08-25 21:43:58

ooo
Member
Registered: 2013-04-10
Posts: 1,637

Re: Gedit menu icons not appearing

support for menu icons was removed from gtk3 at some point. other applications still using gtk2 can stil display them

Offline

#3 2014-08-26 22:24:12

to7m
Member
From: Norwich, UK
Registered: 2013-09-16
Posts: 15

Re: Gedit menu icons not appearing

The gap indicate that something responsible for drawing the program expects there to be icons - does this mean the gap will go away in a future update?

Offline

#4 2014-08-26 22:33:23

Blenderudit
Member
Registered: 2014-08-26
Posts: 5

Re: Gedit menu icons not appearing

What I would do is to use dconf and see if there is an option to disable the icons.
However, it seems that you are not using a gnome-based desktop, so I cannot guarantee that it will work.

Offline

#5 2014-08-26 22:58:22

ooo
Member
Registered: 2013-04-10
Posts: 1,637

Re: Gedit menu icons not appearing

sorry, I remembered wrong. They only disabled menu icons by default at gtk3.10, and didn't remove the feature completely.
you can still enable them via settings.ini: https://wiki.archlinux.org/index.php/GTK%2B#GTK.2B_3.x

Offline

#6 2014-08-27 17:39:09

to7m
Member
From: Norwich, UK
Registered: 2013-09-16
Posts: 15

Re: Gedit menu icons not appearing

I don't seem to have an /etc/dconf directory, so am having trouble following dconf instruction - I'll investigate this soon.

I tried adding

gtk-icon-theme-name = gnome

to a couple of settings.ini files (one in /usr/share/gtk-3.0, other in /usr/share/themes/Adwaita/gtk-3.0 (I'm using Adwaita for now)) and that didn't seem to change anything. Images in menus is ticked in Xfce's Appearance settings.

echo $XDG_CONFIG_HOME

echoes nothing, so maybe there are some missing links or something?

Offline

#7 2014-08-27 18:05:05

ooo
Member
Registered: 2013-04-10
Posts: 1,637

Re: Gedit menu icons not appearing

XDG_CONFIG_HOME is /home/username/.config/, it is mentioned in that wiki section.

the setting that should enable menuicons in $XDG_CONFIG_HOME/gtk-3.0/settings.ini would be:

gtk-menu-images=1

sorry that I didn't mention this, I thought the name of the setting on that example would be self-explanatory

also, just to clarify the settings.ini file has nothing to do with dconf. use dconf-editor if you want to edit dconf setting.
Although I couldn't find anything in dconf that would enable menu icons, so settings.ini seems to be the only way.

Last edited by ooo (2014-08-27 18:10:36)

Offline

#8 2014-08-27 19:47:37

Blenderudit
Member
Registered: 2014-08-26
Posts: 5

Re: Gedit menu icons not appearing

ooo wrote:

Although I couldn't find anything in dconf that would enable menu icons, so settings.ini seems to be the only way.

You are right. I remember an entry called menu_have_icons in org.gnome.desktop.interface, but it was removed since then. Sorry about that!

Offline

#9 2014-08-28 09:20:08

to7m
Member
From: Norwich, UK
Registered: 2013-09-16
Posts: 15

Re: Gedit menu icons not appearing

I made a file in /home/to7m/.config/gtk-3.0 called settings.ini, containing gtk-menu-images=1, and that didn't make the icons appear.

I then tried

export XDG_CONFIG_HOME=~/.config
export XDG_CONFIG_HOME=~/.config/

which didn't make the icons appear either, but now

echo $XDG_CONFIG_HOME

has an output big_smile

Also, this issue affects guvcview, which seems to be GTK2.

Offline

#10 2019-01-06 03:46:08

leomp12
Member
Registered: 2019-01-02
Posts: 16

Re: Gedit menu icons not appearing

Both gtk-menu-images and gtk-button-images params were deprecated but still not ignored.
You can try with params below on your ~/.gtkrc-2.0 and ~/.config/gtk-3.0/settings.ini:

gtk-button-images=1
gtk-menu-images=1

P.S.: the XDG_CONFIG_HOME env variable (no direct relation with the icons) is undefined by default and the dir ~/.config is already used by default, so the steps you did just doesn't changed nothing tongue

Last edited by leomp12 (2019-01-06 04:15:27)

Offline

#11 2019-01-06 04:20:21

2ManyDogs
Forum Moderator
Registered: 2012-01-15
Posts: 4,645

Re: Gedit menu icons not appearing

This topic is four years old. Please do not necrobump.

Closing.


How to post. A sincere effort to use modest and proper language and grammar is a sign of respect toward the community.

Offline

Board footer

Powered by FluxBB