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

gtk-youtube-viewer: add option mainw_centered (default 0) to set the … #152

Merged
merged 1 commit into from
May 11, 2017
Merged

Conversation

tehlux
Copy link
Contributor

@tehlux tehlux commented May 10, 2017

…initial window position to 'center'

When starting gtk-youtube-viewer the window is created where I click the launcher (dock or panel) or run where the command (terminal). My personal preference is to have it start centered on the screen I usually just manually add a line to gtk-youtube-viewer after installation, where I set the initial position of the window to "center"

$mainw->set_position("center");

I don't know whether this is appreciated or considered useful or bloat but I thought I'd create a pull request which adds a new config option mainw_centered (0 or 1, defaults to 0) and have the centered position set after the window is resized to the size given in the config file (after which it is rerendered $mainw->reshow_with_initial_size;).

Feel free to reject.

@trizen trizen merged commit c975711 into trizen:master May 11, 2017
@trizen
Copy link
Owner

trizen commented May 11, 2017

I think it may be useful for more people, so I merged it. Thank you very much for your contribution.

@tehlux
Copy link
Contributor Author

tehlux commented May 11, 2017

thank you!

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