Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build menu: images missing? #2302

Closed
lpaulsen93 opened this issue Sep 15, 2019 · 4 comments
Closed

build menu: images missing? #2302

lpaulsen93 opened this issue Sep 15, 2019 · 4 comments

Comments

@lpaulsen93
Copy link
Contributor

On looking at the build code I noticed the following table:

static struct BuildMenuItemSpec {
	const gchar	*stock_id;
	const gint	 key_binding;
	const guint	 build_grp;
	const guint	 build_cmd;
	const gchar	*fix_label;
	Callback *cb;
} build_menu_specs[] = {
	{GTK_STOCK_CONVERT, GEANY_KEYS_BUILD_COMPILE, GBO_TO_GBG(GEANY_GBO_COMPILE),
		GBO_TO_CMD(GEANY_GBO_COMPILE), NULL, on_build_menu_item},
	{GEANY_STOCK_BUILD, GEANY_KEYS_BUILD_LINK, GBO_TO_GBG(GEANY_GBO_BUILD),
		GBO_TO_CMD(GEANY_GBO_BUILD), NULL, on_build_menu_item},
	{NULL, -1, MENU_FT_REST,
		GBO_TO_CMD(GEANY_GBO_BUILD) + 1, NULL, on_build_menu_item},

    /*...more entries... */

As I understand the code images are loaded from the stock IDs (e.g. GTK_STOCK_CONVERT). But on my system I do not see any images in the build menu (tested on GTK2 and 3). My question: do other people see any images in the build menu? Might this be a desktop issue?

@codebrainz
Copy link
Member

geany_build_menu

@lpaulsen93
Copy link
Contributor Author

@codebrainz: Thanks. I use Ubuntu 18.04.3, Gnome desktop. What OS do you use?

@codebrainz
Copy link
Member

Ubuntu 18.04.3 with xubuntu-desktop and paper-icon-theme.

Didn't GNOME disable all icons in menus so that you had to install some kind of tool for tweaking the setting back? Do you have icons in the other menus?

@lpaulsen93
Copy link
Contributor Author

You are right! Executing the command

gsettings set org.gnome.settings-daemon.plugins.xsettings overrides "{'Gtk/ButtonImages': <1>, 'Gtk/MenuImages': <1>}"

and a reboot fixed the problem. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants