WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: geany missing icons  (Read 1467 times)

Offline GNUser

  • Hero Member
  • *****
  • Posts: 1343
geany missing icons
« on: March 20, 2023, 06:31:26 AM »
I use geany.tcz in TCL14 x86_64. It was working perfectly until a few days ago. Now icons are missing:


The .dep file includes the new gtk-update-icon-cache.tcz extension, which is loaded.
The startup script seems correct:
Code: [Select]
$ cat /usr/local/tce.installed/geany
#!/bin/sh
gtk-update-icon-cache -q -f -t /usr/local/share/icons/hicolor
gtk-update-icon-cache -q -f -t /usr/local/share/icons/Tango
Even if I manually run the commands in startup script, icons are still missing. Ideas?
« Last Edit: March 20, 2023, 06:50:25 AM by GNUser »

Offline GNUser

  • Hero Member
  • *****
  • Posts: 1343
Re: geany missing icons
« Reply #1 on: March 20, 2023, 07:13:11 AM »
This is what I see when I start geany from a terminal:

Code: [Select]
$ geany

(geany:13602): Gtk-WARNING **: 10:09:37.721: Error loading theme icon 'document-new' for stock: Icon 'document-new' not present in theme Adwaita

(geany:13602): Gtk-WARNING **: 10:09:37.724: Error loading theme icon 'document-open' for stock: Icon 'document-open' not present in theme Adwaita

(geany:13602): Gtk-WARNING **: 10:09:37.724: Error loading theme icon 'document-save' for stock: Icon 'document-save' not present in theme Adwaita

(geany:13602): Gtk-WARNING **: 10:09:37.724: Error loading theme icon 'document-revert' for stock:

(geany:13602): Gtk-WARNING **: 10:09:37.724: Error loading theme icon 'window-close' for stock: Icon 'window-close' not present in theme Adwaita

(geany:13602): Gtk-WARNING **: 10:09:37.725: Error loading theme icon 'go-previous' for stock:

(geany:13602): Gtk-WARNING **: 10:09:37.725: Error loading theme icon 'go-next' for stock:

(geany:13602): Gtk-WARNING **: 10:09:37.725: Error loading theme icon 'edit-clear' for stock:

(geany:13602): Gtk-WARNING **: 10:09:37.725: Error loading theme icon 'edit-find' for stock: Icon 'edit-find' not present in theme Adwaita

(geany:13602): Gtk-WARNING **: 10:09:37.725: Error loading theme icon 'edit-clear' for stock:

(geany:13602): Gtk-WARNING **: 10:09:37.725: Error loading theme icon 'go-jump' for stock:

(geany:13602): Gtk-WARNING **: 10:09:37.726: Error loading theme icon 'system-run' for stock: Icon 'system-run' not present in theme Adwaita

(geany:13602): Gtk-WARNING **: 10:09:37.726: Error loading theme icon 'window-close' for stock: Icon 'window-close' not present in theme Adwaita

(geany:13602): Gtk-WARNING **: 10:09:37.741: Error loading theme icon 'window-close' for stock: Icon 'window-close' not present in theme Adwaita

Maybe gtk-update-icon-cache.tcz or gtk3.tcz is missing a dependency (some utility that enables applications to find icons)? (Just a wild uneducated guess because graphics in general and gtk* in particular are not my forte.)
« Last Edit: March 20, 2023, 07:16:35 AM by GNUser »

Offline GNUser

  • Hero Member
  • *****
  • Posts: 1343
Re: geany missing icons
« Reply #2 on: March 20, 2023, 07:22:48 AM »
gtk3's file selection dialog is also missing icons.

I figured it out: adwaita-icon-theme.tcz is not being loaded by any applications, even though gtk3 and geany both need it.

Either gtk3.tcz or geany.tcz needs to have adwaita-icon-theme.tcz in its .dep file. I think it makes more sense to add adwaita-icon-theme.tcz to gtk3.tcz.dep since it is needed for gtk3's file selection dialog.

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11178
Re: geany missing icons
« Reply #3 on: March 20, 2023, 07:48:44 AM »
Hi GNUser
What happens if you only load  humanity-icon-theme.tcz  or  lxde-icon-theme.tcz  instead?
Does installing just one of those also fix the issue?

Offline GNUser

  • Hero Member
  • *****
  • Posts: 1343
Re: geany missing icons
« Reply #4 on: March 20, 2023, 07:56:50 AM »
Hi Rich.
What happens if you only load  humanity-icon-theme.tcz  or  lxde-icon-theme.tcz  instead?
Even if I load them both, gtk3's file selection dialog and geany are not happy and show placeholders where icons should be.

Loading adwaita-icon-theme.tcz fixes both gtk3's file selection dialog and geany.

Offline GNUser

  • Hero Member
  • *****
  • Posts: 1343
Re: geany missing icons
« Reply #5 on: March 20, 2023, 11:08:09 AM »
Hi Juanito. I investigated some more. What caused the breakage for me is that gtk2.tcz.dep used to include adwaita-icon-theme.tcz. Now it doesn't. Since gtk2.tcz.dep was the only .dep file on my system that included adwaita-icon-theme.tcz, the theme is no longer getting loaded, causing geany and gtk3's file selection dialog to be sad pandas.

It's clear that gtk3 (e.g., file selection dialog) and geany both need adwaita-icon-theme somewhere in their dependency trees. The real question is: What's the best place to put it?

EDIT: My vote is to add it to gtk3.tcz.dep, and to add it back into gtk2.tcz.dep.
« Last Edit: March 20, 2023, 11:26:51 AM by GNUser »

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11178
Re: geany missing icons
« Reply #6 on: March 20, 2023, 11:45:24 AM »
Hi GNUser
Hi Rich.
What happens if you only load  humanity-icon-theme.tcz  or  lxde-icon-theme.tcz  instead?
Even if I load them both, gtk3's file selection dialog and geany are not happy and show placeholders where icons should be. ...

I just noticed a couple of things that may have interfered with that test:
humanity-icon-theme.tcz.dep  contained  hicolor-icon-theme.tcz  instead of  gtk-update-icon-cache.tcz.
lxde-icon-theme.tcz  does not contain a  /usr/local/tce.installed/lxde-icon-theme  startup script.

I fixed the  humanity-icon-theme.tcz.dep  file.

Offline GNUser

  • Hero Member
  • *****
  • Posts: 1343
Re: geany missing icons
« Reply #7 on: March 20, 2023, 11:59:05 AM »
Hi Rich. I rebooted, ensured adwaita-icon-theme was not loaded, removed old version of humanity-icon-theme, and downloaded+loaded your fixed version of the latter:
Code: [Select]
bruno@x230:~$ tce-status -i | grep icon
gtk-update-icon-cache
hicolor-icon-theme
bruno@x230:~$ ce
bruno@x230:/etc/sysconfig/tcedir$ cd optional
bruno@x230:/etc/sysconfig/tcedir/optional$ rm humanity-icon*
bruno@x230:/etc/sysconfig/tcedir/optional$ tce-load -wi humanity-icon-theme
humanity-icon-theme.tcz.dep OK
Downloading: humanity-icon-theme.tcz
Connecting to repo.tinycorelinux.net (128.127.66.77:80)
saving to 'humanity-icon-theme.tcz'
humanity-icon-theme. 100% |********************************| 5728k  0:00:00 ETA
'humanity-icon-theme.tcz' saved
humanity-icon-theme.tcz: OK
geany and gtk3's file selection dialog still sad pandas.

adwaita-icon-theme must have some kind of privileged status with gtk3 and gtk3-dependent applications.