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

Create image from icon theme and adding a background to layout #88

Merged
merged 3 commits into from
Oct 19, 2022

Conversation

anaselli
Copy link
Contributor

This PR just fixes issue #86 and #87

@anaselli anaselli added the bug label Oct 17, 2022
@anaselli anaselli self-assigned this Oct 17, 2022
@@ -10,6 +10,7 @@
#include "YImage.h"
#include "ygtkimage.h"
#include <string.h>
#include <boost/filesystem.hpp>

static inline bool endsWith (const std::string &str1, const char *str2)
Copy link
Contributor

@shundhammer shundhammer Oct 17, 2022

Choose a reason for hiding this comment

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

JFYI: There is also boost::algorithm::ends_with() which might take some of the maintenance burden off your shoulders in the future.

https://techoverflow.net/2022/01/25/how-to-use-boost-string-algorithm-ends_with-a-minimal-example/

But it's your choice whether or not you want to use that.

I know those functions are a bit intimidating because they expect a range, and it's not quite clear to the average programmer how that works with strings. But as that example shows, it can be written in a very legible way.

Copy link
Contributor

@shundhammer shundhammer left a comment

Choose a reason for hiding this comment

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

LGTM

(again, I don't know much about Gtk)

@shundhammer shundhammer merged commit 85acdf2 into libyui:master Oct 19, 2022
@anaselli
Copy link
Contributor Author

Thanks, i was out yesterday and couldn't do it

@shundhammer
Copy link
Contributor

I was wondering if we need to give you permission to merge to that repository, and then I found that I don't seem to have permission to grant anybody permission. ;-)

@anaselli
Copy link
Contributor Author

:) i can merge, but I need at least one reviewer, don't know if it is why i am the committer or just because one of you is needed...

@anaselli anaselli deleted the createImageAndBackground branch November 1, 2022 10:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants