gtk-youtube-viewer: add option mainw_centered (default 0) to set the … #152
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
…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
or1
, defaults to0
) 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.