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

[Taskbar] Add name field #1240

Closed
wants to merge 2 commits into from
Closed

Conversation

WillPower3309
Copy link

Implements:
#982
#1028
#1135

Realize as I was finishing this that this is basically an alternative solution to #1221 , however decided to post this as a PR anyway, as it seems less intrusive as an alternate solution.


/* Method 1 - get the correct icon name from the desktop file */
static std::string get_from_desktop_app_info(const std::string &app_id)
Glib::RefPtr<Gio::DesktopAppInfo> gen_app_info(const std::string app_id)
Copy link
Contributor

Choose a reason for hiding this comment

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

Why gen* instead of get*?

@@ -383,6 +390,15 @@ void Task::handle_app_id(const char *app_id)
{
app_id_ = app_id;

Glib::RefPtr<Gio::DesktopAppInfo> app_info = gen_app_info(app_id);
Copy link
Contributor

Choose a reason for hiding this comment

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

In case missing icon and name options it will cost unnecessary overhead. And it will be searched twice, as app_info was't saved.

@WillPower3309
Copy link
Author

Closed due to #1221 being merged

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