Skip to content

Provides support to minimize to system tray#21

Merged
jonian merged 2 commits intohardpixel:masterfrom
andrecbarros:master
Dec 3, 2020
Merged

Provides support to minimize to system tray#21
jonian merged 2 commits intohardpixel:masterfrom
andrecbarros:master

Conversation

@andrecbarros
Copy link
Copy Markdown
Contributor

devdocs-desktop now can be iconified/deiconified to system tray.

@jonian
Copy link
Copy Markdown
Member

jonian commented Nov 27, 2020

Hi @andrecbarros, thank you for your contribution! This is a very nice feature to add.

The only issue I see is that ctrl + and ctrl + are used by devdocs web-app to scroll to top/bottom of the docs.

Since devdocs-desktop does not have it's own settings window (yet), can we set ctrl + meta + up/down as shortucts?

@andrecbarros
Copy link
Copy Markdown
Contributor Author

Yes, will change it.

Modify iconify shortcut to be Ctrl+Alt+PgUp or Ctrl+Alt+PgDn
@andrecbarros
Copy link
Copy Markdown
Contributor Author

andrecbarros commented Nov 28, 2020 via email

@jonian
Copy link
Copy Markdown
Member

jonian commented Dec 1, 2020

@andrecbarros is this ready to merge? I tried your branch and the shortcuts are not working. Maybe I did something wrong.

@andrecbarros
Copy link
Copy Markdown
Contributor Author

andrecbarros commented Dec 2, 2020 via email

@andrecbarros
Copy link
Copy Markdown
Contributor Author

andrecbarros commented Dec 2, 2020 via email

@jonian
Copy link
Copy Markdown
Member

jonian commented Dec 2, 2020

I misunderstood the shortcuts, it works fine! I think this should be merged as is and we can add settings for shortcuts in another PR, after I create a settings screen.

What do you think?

@andrecbarros
Copy link
Copy Markdown
Contributor Author

andrecbarros commented Dec 3, 2020 via email

@jonian jonian merged commit bae374c into hardpixel:master Dec 3, 2020
@jonian
Copy link
Copy Markdown
Member

jonian commented Dec 6, 2020

I have to revert this since it relies on the deprecated Gtk.StatusIcon. I really liked this feature and I think it should be implemented using the recommendation from the GTK docs.

Gtk.StatusIcon has been deprecated in 3.14. You should consider using notifications or more modern platform-specific APIs instead. GLib provides the Gio.Notification API which works well with Gtk.Application on multiple platforms and environments, and should be the preferred mechanism to notify the users of transient status updates. See this HowDoI for code examples.

Related docs here.

@andrecbarros
Copy link
Copy Markdown
Contributor Author

andrecbarros commented Dec 6, 2020 via email

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

Successfully merging this pull request may close these issues.

2 participants