Skip to content
This repository has been archived by the owner on Dec 30, 2020. It is now read-only.

Figure out systray icon tooltip on linux #15

Open
qdot opened this issue Mar 2, 2017 · 5 comments
Open

Figure out systray icon tooltip on linux #15

qdot opened this issue Mar 2, 2017 · 5 comments

Comments

@qdot
Copy link
Owner

qdot commented Mar 2, 2017

I'm not real sure how to set a tooltip for the systray icon itself on linux/gtk. libappnotifcation had many threads fighting about this in 2010-2011, then silence. I'm not sure if other projects are using a combination of GtkStatusIcon and libappindicator or what. Looked at the Parcellite source code and it wasn't a ton of help.

@jonhoo
Copy link

jonhoo commented Mar 2, 2017

The Go implementation of gtk just uses gtk_status_icon_set_tooltip_text both for gtk2 and gtk3. Unfortunately it seems gtk_status_icon_set_tooltip_text is deprecated since gtk 3.14. After that, it seems they're using gtk_entry_set_icon_tooltip_text instead.

@qdot qdot added this to the v0.2 - Linux Support milestone Mar 2, 2017
@qdot
Copy link
Owner Author

qdot commented Mar 2, 2017

... I have no idea why I didn't see that in go's systray. That should work for us, will get it implemented for the linux core branch before merge.

@jonhoo
Copy link

jonhoo commented May 4, 2017

@qdot Any progress on this? I'd really like linux-core to be merged so that I can stop using systray as a git dependency :)

@qdot
Copy link
Owner Author

qdot commented May 4, 2017

@jonhoo Oh, uh, wow, sorry. I am easily distractable, heh.

Are you using linux-core right now? I think most of the reason that branch was there was because of the gtk-sys api exposure stuff, which did finally get worked out. Assuming that's the case, I can go ahead and merge the branch at least so we can get it into crates.io, call that v0.2, and boot this to v0.3.

@jonhoo
Copy link

jonhoo commented May 4, 2017

Hehe, no worries! I know what that's like. Yes, I'm using linux-core for buzz, essentially because I'm only running it on Linux at the moment. Merging and then dealing with tooltip text in 0.3 seems perfectly reasonable!

qdot added a commit that referenced this issue May 4, 2017
Punting #15 (icon text for linux) back to v0.3 and releasing 0.2 so
that linux support is on crates.io.

Fixes #5
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants