Using more meaningful constants

This commit is contained in:
Pierre Pronchery 2009-07-15 12:21:00 +00:00
parent 5f611aa548
commit 8e76ec8d2b

View File

@ -40,6 +40,11 @@ struct _Panel
};
/* constants */
#define PANEL_BORDER_WIDTH 4
#define PANEL_ICON_SIZE 48
/* prototypes */
static int _panel_exec(Panel * panel, char * command);
@ -219,8 +224,8 @@ static void _on_menu_position(GtkMenu * menu, gint * x, gint * y,
#endif
if(req.height <= 0)
return;
*x = 4;
*y = panel->height - 52 - req.height;
*x = PANEL_BORDER_WIDTH;
*y = panel->height - PANEL_BORDER_WIDTH - PANEL_ICON_SIZE - req.height;
*push_in = TRUE;
}