194
194
if (y + h) > monitor.y + monitor.height:
195
195
y -= (y + h) - (monitor.y + monitor.height)
202
197
elif orient == gnomeapplet.ORIENT_LEFT: # Panel on right
204
199
if (y + h) > monitor.y + monitor.height:
205
200
y -= (y + h) - (monitor.y + monitor.height)
212
202
elif orient == gnomeapplet.ORIENT_DOWN: # Panel on top
214
204
if (x + w) > monitor.x + monitor.width:
215
205
x -= (x + w) - (monitor.x + monitor.width)
221
209
if (x + w) > monitor.x + monitor.width:
222
210
x -= (x + w) - (monitor.x + monitor.width)
226
214
self.set_gravity(gravity)