Merge lp:~donadigo/wingpanel/fix-side-popover-expanding into lp:~wingpanel-devs/wingpanel/trunk

Proposed by Adam Bieńkowski
Status: Merged
Approved by: Danielle Foré
Approved revision: 129
Merged at revision: 129
Proposed branch: lp:~donadigo/wingpanel/fix-side-popover-expanding
Merge into: lp:~wingpanel-devs/wingpanel/trunk
Diff against target: 13 lines (+0/-4)
1 file modified
src/PanelWindow.vala (+0/-4)
To merge this branch: bzr merge lp:~donadigo/wingpanel/fix-side-popover-expanding
Reviewer Review Type Date Requested Status
Kirill Romanov (community) Approve
Danielle Foré Approve
Djax code Approve
Review via email: mp+297832@code.launchpad.net

Commit message

* Fix rare side expanding popovers.

Description of the change

Fixes rare side expanding popovers.

To reproduce, open the indicator first time after the wingpanel loaded, and it should expand only to the side as having no space to show all of it's contents, if it didn't work, just restart wingpanel to try again.

This branch just makes sure that after setting visible_popover variable the update_panel_dimensions is called so the popover is ready to show and expand.

To post a comment you must log in.
Revision history for this message
Rico Tzschichholz (ricotz) wrote :
Revision history for this message
Kirill Romanov (djaler1) wrote :

I tested this branch. It works well, the problem is resolved.

review: Approve (excellent)
Revision history for this message
Djax (parnold-x) wrote :

Not sure on this. Do you really need a new signal? The set_expand method should handle the expanding and shrinking. If something in update_panel_dimension is needed in addition this should be added to the expand method.
Also as rico mentioned you reverted the code for following the primary monitor on two display setups. Was this intentional?

review: Needs Information
Revision history for this message
Adam Bieńkowski (donadigo) wrote :

I did not revert anything, I just made the changes to the branch, and commited. I don't know why this happened.

Revision history for this message
Rico Tzschichholz (ricotz) wrote :

Better redo this branch and make sure to commit only the intended changes.

129. By Adam Bieńkowski

Fix rare expanding popover to the side

Revision history for this message
Adam Bieńkowski (donadigo) wrote :

Branch redone & updated to djax's suggestions.

Revision history for this message
Djax (parnold-x) wrote :

Code looks good. I can't reproduce the origin problem so if this fixes it I would say go merge it.

review: Approve (code)
Revision history for this message
Danielle Foré (danrabbit) wrote :

As far as I can tell, this works as intended. I can't reproduce the issue any longer.

review: Approve
Revision history for this message
Kirill Romanov (djaler1) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'src/PanelWindow.vala'
2--- src/PanelWindow.vala 2016-06-13 13:54:25 +0000
3+++ src/PanelWindow.vala 2016-06-19 10:49:02 +0000
4@@ -151,10 +151,6 @@
5 }
6
7 public void set_expanded (bool expanded) {
8- if (this.expanded == expanded) {
9- return;
10- }
11-
12 if (expanded) {
13 Services.BackgroundManager.get_default ().remember_window ();
14

Subscribers

People subscribed via source and target branches