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

Partially addresses #1908 #2137

Closed
wants to merge 1 commit into from
Closed

Conversation

andia89
Copy link

@andia89 andia89 commented Jun 12, 2016

This allows changing the tray icon, like it was before, by changing icons in ~/.TelegramDesktop/tdata/ticons. Cf. #1908

@auchri
Copy link
Contributor

auchri commented Jun 12, 2016

Hi,
thanks for this pull request :)

Please read our contributing policy. You'll need to make a pull request with the "Signed-off-by:" signature being the last line of your commit message, like it is described in sign your work section. That will grant your work into the public domain.

(See travis build)

Signed-off-by: Andreas Angerer <[email protected]> (github: wa4557)
@john-preston
Copy link
Member

Unfortunately I've changed the way (the place where) the libraries are loaded, new version is available in the dev branch -- so this pull request won't merge. But I think I can add this by myself.

@andia89
Copy link
Author

andia89 commented Jun 17, 2016

Fine with me, as long as the feature gets added :)

else{
loadPixbuf(_trayIconImageGen());
_trayIcon = ps_gtk_status_icon_new_from_pixbuf(_trayPixbuf);
}
Copy link
Member

@john-preston john-preston Jun 21, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You've replaced a ..set_from_pixbuf(_trayIcon) call with a trayIcon = ...new_from...(), which means you create each time a new icon, just forgetting a pointer to the old one -- this should cause memory leaks and other bugs (for example, you don't connect callbacks, like it is done on 792 (old) / 820 (new) line. I think you need not only ..._new_from_file(), but both that one and ..._set_from_file().

@john-preston
Copy link
Member

I've added such code to the dev branch in the new files.

@github-actions
Copy link

github-actions bot commented Mar 4, 2021

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 4, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants