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

Icons don't show on FreeBSD #1

Closed
mike-pt opened this issue Aug 26, 2014 · 6 comments
Closed

Icons don't show on FreeBSD #1

mike-pt opened this issue Aug 26, 2014 · 6 comments

Comments

@mike-pt
Copy link

mike-pt commented Aug 26, 2014

Builds and installs successfully but when I run in the tray the icons are not shown, however they are indeed installed!

@ericbsd
Copy link
Member

ericbsd commented Aug 27, 2014

You need to have Gnome or MATE icon install to have Icon working.

On Tue, Aug 26, 2014 at 8:58 PM, Mike notifications@github.com wrote:

Builds and installs successfully but when I run in the tray the icons are
not shown, however they are indeed installed!


Reply to this email directly or view it on GitHub
#1.

Eric Turgeon__GhostBSD project leader
www.ghostbsd.org

Cité de la grâce Member
www.citedelagrace.com
Matthieu 6:33 (LSG)Cherchez premièrement le royaume et la justice de Dieu;
et toutes ces choses vous seront données par-dessus.
Matthew 6:33 (KJV)But seek ye first the kingdom of God, and his
righteousness; and all these things shall be added unto you.

@mike-pt
Copy link
Author

mike-pt commented Aug 29, 2014

Sorry for the late reply, I have gnome icons installed and tried with different themes like Tango and Clearlooks, I'm using Lumina btw (fluxbox based) and the only other DE I have installed is KDE.

In any case I see the gtk icons on midori for example, and I thoug in networkmgr the icons are providede by the package it self... the tray should show a signal meter, aren't these provided by the package?

tks

@mike-pt
Copy link
Author

mike-pt commented Aug 29, 2014

I do see the icons were installed:
ll /usr/local/share/networkmgr/icons/
total 36
drwxr-xr-x 2 root wheel 15B Aug 14 00:51 24
-rwxr-xr-x 1 root wheel 267B Aug 14 00:51 signal_bars_0.png
-rwxr-xr-x 1 root wheel 277B Aug 14 00:51 signal_bars_1.png
-rwxr-xr-x 1 root wheel 280B Aug 14 00:51 signal_bars_2.png
-rwxr-xr-x 1 root wheel 280B Aug 14 00:51 signal_bars_3.png
-rwxr-xr-x 1 root wheel 1.0K Aug 14 00:51 signal_bars_4.png
-rwxr-xr-x 1 root wheel 267B Aug 14 00:51 signal_bars_5.png

@mike-pt
Copy link
Author

mike-pt commented Aug 29, 2014

w8, I think I get it now.... did look into all the code but:

if bar > 75:
img.set_from_icon_name(sgnal100, gtk.ICON_SIZE_MENU)
elif bar > 50:
img.set_from_icon_name(sgnal75, gtk.ICON_SIZE_MENU)
elif bar > 25:
img.set_from_icon_name(sgnal50, gtk.ICON_SIZE_MENU)
elif bar > 5:
img.set_from_icon_name(sgna25, gtk.ICON_SIZE_MENU)

set_from_icon_name expects my theme to have those icons or else it will show the default "none"

@mike-pt
Copy link
Author

mike-pt commented Aug 29, 2014

I've change in my local install to use set_from_file, wich works fine for me, another aproach would be to install the icons maybe? but since they won't be reused maybe doing it like I that is the best in this case...
At least on freebsd!

Tks

@ericbsd
Copy link
Member

ericbsd commented Nov 30, 2014

I did and update to use the new set of Icon using set_from_file.

@ericbsd ericbsd closed this as completed Nov 30, 2014
ericbsd pushed a commit that referenced this issue Dec 29, 2021
Sourcery refactored master branch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants