Fix the overlay's position a set offset.

40 pixels from the right edge of the screen.
This commit is contained in:
Simon Gomizelj 2012-05-31 22:27:24 -04:00
parent a204100856
commit 578856ed9e
1 changed files with 1 additions and 1 deletions

View File

@ -155,7 +155,7 @@ static gboolean position_overlay_cb(GtkOverlay *overlay, GtkWidget *widget, GdkR
GtkRequisition req;
gtk_widget_get_preferred_size(widget, NULL, &req);
alloc->x = 2 * main_alloc.width / 3 - req.width / 2;
alloc->x = main_alloc.width - req.width - 40;
alloc->y = 0;
alloc->width = MIN(main_alloc.width, req.width);
alloc->height = MIN(main_alloc.height, req.height);