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

Type checking for g_variant_get calls #44

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

skystrife
Copy link

Currently the calls to g_variant_get() just assume that the format string works, but don't check that this is in fact the case.

On my system, the results are all string types (since there's an error), but the code was continuing as if nothing happened. With this change, it correctly falls back to using the xbacklight backend.

(This also has inconsequential whitespace changes; I can re-make the PR without those if you want. They are a separate commit.)

This avoids trying to read things as "(u)" when they're "(s)" for example.
@esoleyman
Copy link
Contributor

I like the changes. I have been waiting on poliva to release a new version for the past 6 months. I hope he will be able to see the PR and merge.

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