Solaar/lib/solaar/ui
Peter Wu dded8504e6 Fix window positioning of main windows
Previously, the intent was likely to position the receiver window near the
status icon. It did so by calling move followed by present. According to the
Gtk documentation, move() may fail if the window is hidden before.

Therefore present the window *after* determining the position, but *before*
moving it. (presenting the window before getting the position gives a Gtk
warning and has unpredictable behavior wrt. the window position).

As window positioning is now enabled, add additional logic to prevent overlap
of windows: position the first window near the status icon and others on the
left. This is not idea, e.g. when the status icon is on the left side of the
screen, but the idea of positioning windows near to each other is broken anyway.
2013-05-05 11:18:29 +02:00
..
__init__.py better error dialog on receiver permission error; fixes #17 2013-05-05 10:35:03 +02:00
about.py split the about window into its own module 2013-05-04 12:01:28 +02:00
action.py split the about window into its own module 2013-05-04 12:01:28 +02:00
config_panel.py replaced some deprecated GObject calls with GLib 2013-04-30 11:47:30 +02:00
icons.py simplified window/icon code, reworked how device updates are signalled 2013-04-30 19:44:03 +02:00
indicate.py proper debian packaging, dropper stdeb 2013-01-05 11:48:35 +02:00
main_window.py Fix window positioning of main windows 2013-05-05 11:18:29 +02:00
notify.py split the about window into its own module 2013-05-04 12:01:28 +02:00
pair_window.py replaced some deprecated GObject calls with GLib 2013-04-30 11:47:30 +02:00
status_icon.py create and destroy windows on demand 2013-05-04 12:20:51 +02:00