Merge lp:~larsu/unity/lp883317 into lp:unity

Proposed by Lars Karlitski
Status: Merged
Approved by: Lars Karlitski
Approved revision: no longer in the source branch.
Merged at revision: 2286
Proposed branch: lp:~larsu/unity/lp883317
Merge into: lp:unity
Diff against target: 14 lines (+2/-1)
1 file modified
services/panel-service.c (+2/-1)
To merge this branch: bzr merge lp:~larsu/unity/lp883317
Reviewer Review Type Date Requested Status
Marco Trevisan (Treviño) Approve
Review via email: mp+101881@code.launchpad.net

Commit message

Force menu reposition on popup in case its contents have changed.

Fixes bug 883317.

Description of the change

Force menu reposition on popup in case its contents have changed.

Fixes bug 883317.

UNBLOCK

To post a comment you must log in.
Revision history for this message
Marco Trevisan (Treviño) (3v1n0) wrote :

Looks good to me, thanks.

review: Approve
Revision history for this message
Unity Merger (unity-merger) wrote :

No commit message specified.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'services/panel-service.c'
2--- services/panel-service.c 2012-03-21 12:31:11 +0000
3+++ services/panel-service.c 2012-04-13 09:39:00 +0000
4@@ -1720,8 +1720,9 @@
5 G_CALLBACK (on_active_menu_move_current), self);
6
7 gtk_menu_popup (priv->last_menu, NULL, NULL, positon_menu, self, 0, CurrentTime);
8+ gtk_menu_reposition (priv->last_menu);
9+
10 GdkWindow *gdkwin = gtk_widget_get_window (GTK_WIDGET (priv->last_menu));
11-
12 if (gdkwin != NULL)
13 {
14 gint left=0, top=0, width=0, height=0;