Skip to content
This repository has been archived by the owner on Jun 8, 2021. It is now read-only.

Add new trait : GtkStatusIcon #6

Closed
GuillaumeGomez opened this issue Apr 1, 2015 · 9 comments
Closed

Add new trait : GtkStatusIcon #6

GuillaumeGomez opened this issue Apr 1, 2015 · 9 comments

Comments

@GuillaumeGomez
Copy link
Member

original.

EPashkin pushed a commit to EPashkin/gtk that referenced this issue Jun 20, 2015
@lidavidm
Copy link
Contributor

lidavidm commented Nov 3, 2015

Any progress on this? I'd be interested in working on this if not. I see there's already a bit of stuff in the codebase, though there's no trait for it yet.

@gkoz
Copy link
Member

gkoz commented Nov 3, 2015

Since GtkStatusIcon is not a widget it looks like you can already take advantage of the generator work: take this file, convert it to use the glib_wrapper! macro (change the pub type and impl StaticType bits similarly to this diff) and fix the commented out bits. I hope it's not too much at once ;) (I'm, not sure why the issue talks about a trait, because GtkStatusIcon doesn't seem to require adding any traits.)

This will take care of the class itself and then we can figure out the signals.

@lidavidm
Copy link
Contributor

lidavidm commented Nov 3, 2015

Ah, thanks! I have it working at a basic level now.

I also just realized that this is all deprecated...Apparently the replacement is GNotification, which doesn't look like a replacement at all. (Or using "platform-specific APIs".) There's also AppIndicator. All this is rather frustrating, but I guess it's irrelevant here.

@gkoz
Copy link
Member

gkoz commented Nov 3, 2015

I agree that there doesn't seem to be a satisfactory replacement so that deprecation is annoying.

@lidavidm lidavidm mentioned this issue Nov 3, 2015
4 tasks
@gkoz
Copy link
Member

gkoz commented Jan 21, 2016

I believe this has been obsoleted by #186 and then #221

@gkoz gkoz closed this as completed Jan 21, 2016
@jonhoo
Copy link

jonhoo commented Jul 21, 2016

Sorry to revive this old discussion, but is a viable alternative to GtkStatusIcon available anywhere? As @lidavidm points out, GNotification doesn't actually provide this feature (you can persist a notification, but that's about it), and isn't implemented in gtk-rs from what I can see. AppIndicator seems promising, but afaict, it's not a part of GTK, nor is there a Rust port for it? @gkoz, have you found anything that can fill this space following the deprecation?

@gkoz
Copy link
Member

gkoz commented Jul 21, 2016

@jonhoo sadly a replacement still doesn't seem to exist. A recent summary from Remmina supports this. Perhaps a Rust library could break new ground here if there was significant demand.

@jonhoo
Copy link

jonhoo commented Jul 21, 2016

That's very interesting, but also disheartening. Thanks for the link!

@efyang
Copy link
Contributor

efyang commented Jul 21, 2016

Perhaps one could modify this go library to be able to use callbacks and translate most of it to rust (as we already have bindings to winapi and cocoa), but we would still need good bindings to libappindicator to have linux support. It would be a pretty large amount of work to undertake.

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

5 participants