ghostbsd / networkmgr

NetworkMgr is a Python GTK3 network manager for FreeBSD, GhostBSD, TrueOS and DragonFlyBSD
BSD 3-Clause "New" or "Revised" License
94 stars 30 forks source link

Icons don't show on FreeBSD #1

Closed mike-pt closed 9 years ago

mike-pt commented 10 years ago

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

ericbsd commented 10 years ago

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 https://github.com/GhostBSD/networkmgr/issues/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 commented 10 years ago

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 commented 10 years ago

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 commented 10 years ago

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 commented 10 years ago

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 commented 9 years ago

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