power statistics dialog not centered inside unity-greeter

Bug #1048585 reported by Antti Kaijanmäki on 2012-09-10
18
This bug affects 3 people
Affects Status Importance Assigned to Milestone
gnome-power
New
Undecided
Unassigned
indicator-power
Invalid
Undecided
Unassigned
gnome-power-manager (Ubuntu)
High
Unassigned
indicator-power (Ubuntu)
Undecided
Unassigned

Bug Description

When activating the battery menu item inside unity-greeter session a dialog is shown where the user is able to see the power statistic details. This dialog is positioned to the top left corner of the screen. It should be positioned to the center of the screen.

To fix this a gtk_window_set_position(GTK_WIN_POS_CENTER_ALWAYS); needs to be added somewhere.

[expected results]
the dialog shows in the center of the screen

[actual results]
the dialog shows in the top left corner of the screen

Related branches

Matthew Paul Thomas (mpt) wrote :

The dialog should be centered. The same is true for all dialogs opened at the login screen.

Changed in indicator-power (Ubuntu):
status: New → Incomplete
status: Incomplete → New
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in indicator-power (Ubuntu):
status: New → Confirmed
Lars Karlitski (larsu) on 2012-09-10
Changed in indicator-power:
importance: Undecided → High
assignee: nobody → Charles Kerr (charlesk)
milestone: none → 12.10.2
status: New → Confirmed
Charles Kerr (charlesk) wrote :

I can reproduce the behavior, but it's not an indicator-power issue. i-p is invoking g_spawn_command_line_async("gnome-power-statistics").

Wellark suggests this might be fixed by adding a call to gtk_window_set_position at http://git.gnome.org/browse/gnome-power-manager/tree/src/gpm-statistics.c#n1937

Changed in indicator-power:
status: Confirmed → Invalid
Changed in indicator-power (Ubuntu):
status: Confirmed → Invalid
Changed in indicator-power:
assignee: Charles Kerr (charlesk) → nobody
milestone: 12.10.2 → none
Charles Kerr (charlesk) on 2012-09-10
Changed in gnome-power-manager (Ubuntu):
importance: Undecided → High
Changed in indicator-power:
importance: High → Undecided
Changed in gnome-power-manager (Ubuntu):
milestone: none → ubuntu-12.10-beta-2
Charles Kerr (charlesk) wrote :

Wellark's suggestion works... I've created a simple patch to add it.

Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in gnome-power-manager (Ubuntu):
status: New → Confirmed
Martin Pitt (pitti) wrote :

Can you please send this to an upstream bugzilla report as well? Thanks!

Antti Kaijanmäki (kaijanmaki) wrote :

Did this go in to beta2 or not?

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers