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

Code reorganization #12

Closed
franglais125 opened this issue May 26, 2017 · 11 comments
Closed

Code reorganization #12

franglais125 opened this issue May 26, 2017 · 11 comments

Comments

@franglais125
Copy link
Owner

Hi @lucatrv, @konkor, @AravK and anyone else!

I just committed the last bit of a code reorganization I have been doing. You can find the changes here:
https://github.com/franglais125/apt-update-indicator/tree/reorganization. This separates the main file into smaller files and classes. Hopefully it will help with maintainability and extensibility.

I have implemented a new monitor that check for changes in the apt and dpkg directories. Hence the indicator will update itself after applying updates/checking for updates, etc.!

Before committing this to the master branch and releasing a new version, I wanted to get some feedback to make sure that I didn't introduce regressions and that things are going smoothly.

To test the new branch (to be merged soon I hope):

git clone https://github.com/franglais125/apt-update-indicator
cd apt-update-indicator
git checkout reorganization
make && make install

Further suggestions are welcome of course.

Best, and thanks!
Fran

@lucatrv
Copy link

lucatrv commented May 26, 2017

Hi, I followed your instructions to install the reorganization branch, but it still shows version 13, is it normal?

Thanks
Luca

@franglais125
Copy link
Owner Author

Yes, sorry, I should have changed the version to -1 in the metadata.json.

I'll fix this before merging.

@franglais125
Copy link
Owner Author

I just pushed a small fix.

To update:

git checkout reorganization
git pull
make && make install

@konkor
Copy link

konkor commented May 27, 2017

Looks like all fine but i'm on Debian and updates aren't so frequent.

@franglais125
Copy link
Owner Author

Thanks for the feedback! I added the changes to master.

I'll wait a few days before uploading to extensions.gnome.org to see if anything else pops up.

@lucatrv
Copy link

lucatrv commented May 27, 2017

It seems to work fine for me as well (Debian 8)

@franglais125
Copy link
Owner Author

How is the icon size now? Did it improve? I made it 25% bigger.

@ghost
Copy link

ghost commented May 27, 2017 via email

@franglais125
Copy link
Owner Author

@AravK Yeah, now the indicator will update itself every time the apt cache (or dpkg) is updated. This is not a CPU intensive task, it essentially simply runs apt list --upgradable in the background.

As for the icon size, we can easily change that. @lucatrv what do you think?

If you want to test a different size, you can simply modify this integer: https://github.com/franglais125/apt-update-indicator/blob/master/indicator.js#L80

Thanks again!

@lucatrv
Copy link

lucatrv commented May 27, 2017

The icon size looks good on my PC now with iconSize = 20, or even up to 22.
Thanks

@franglais125
Copy link
Owner Author

Thank you all for your feedback!

I just uploaded a new version to extensions.gnome.org. It will be ready to be updated once it passes review. You can of course install it from git if you prefer!

Cheers

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

No branches or pull requests

3 participants